ath79: add status LED on GL.iNet AR300M
[openwrt/staging/jogo.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar300m.dtsi
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca953x.dtsi"
7
8 / {
9 aliases {
10 led-boot = &led_status;
11 led-failsafe = &led_status;
12 led-running = &led_status;
13 led-upgrade = &led_status;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&jtag_disable_pins>;
21
22 button0 {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
26 };
27
28 button1 {
29 label = "button right";
30 linux,code = <BTN_0>;
31 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32 };
33
34 button3 {
35 label = "button left";
36 linux,code = <BTN_1>;
37 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 usb {
45 label = "gl-ar300m:green:usb";
46 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
47 trigger-sources = <&hub_port>;
48 linux,default-trigger = "usbport";
49 };
50
51 wlan {
52 label = "gl-ar300m:green:wlan";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56
57 lan {
58 label = "gl-ar300m:green:lan";
59 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
60 };
61
62 led_status: status {
63 label = "gl-ar300m:green:status";
64 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
65 };
66 };
67 };
68
69 &pcie0 {
70 status = "okay";
71 };
72
73 &uart {
74 status = "okay";
75 };
76
77 &usb0 {
78 #address-cells = <1>;
79 #size-cells = <0>;
80 status = "okay";
81
82 hub_port: port@1 {
83 reg = <1>;
84 #trigger-source-cells = <0>;
85 };
86 };
87
88 &usb_phy {
89 status = "okay";
90 };
91
92 &eth0 {
93 status = "okay";
94 mtd-mac-address = <&art 0x0>;
95 phy-handle = <&swphy4>;
96 };
97
98 &eth1 {
99 mtd-mac-address = <&art 0x6>;
100 };
101
102 &wmac {
103 status = "okay";
104 mtd-cal-data = <&art 0x1000>;
105 mtd-mac-address = <&art 0x1002>;
106 };