ath79: replace generic button node names
[openwrt/openwrt.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 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 pinctrl-names = "default";
21 pinctrl-0 = <&jtag_disable_pins>;
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
27 };
28
29 right {
30 label = "button right";
31 linux,code = <BTN_0>;
32 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
33 };
34
35 left {
36 label = "button left";
37 linux,code = <BTN_1>;
38 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 // Colors from non-Lite versions
46
47 led_status: status {
48 label = "gl-ar300m:green:status";
49 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
50 };
51
52 led_lan: lan {
53 label = "gl-ar300m:green:lan";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 };
56
57 led_wlan: wlan {
58 label = "gl-ar300m:red:wlan";
59 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63
64 i2c: i2c {
65 compatible = "i2c-gpio";
66
67 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
68 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
69 };
70 };
71
72 &pcie0 {
73 status = "okay";
74 };
75
76 &spi {
77 status = "okay";
78 num-cs = <0>;
79
80 flash@0 {
81 compatible = "winbond,w25q128", "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <25000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x000000 0x040000>;
93 read-only;
94 };
95
96 partition@1 {
97 label = "u-boot-env";
98 reg = <0x040000 0x010000>;
99 };
100
101 partition@2 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x050000 0xfa0000>;
105 };
106
107 art: partition@3 {
108 label = "art";
109 reg = <0xff0000 0x010000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &uart {
117 status = "okay";
118 };
119
120 &usb0 {
121 #address-cells = <1>;
122 #size-cells = <0>;
123 status = "okay";
124 };
125
126 &usb_phy {
127 status = "okay";
128 };
129
130 &eth0 {
131 status = "okay";
132 mtd-mac-address = <&art 0x0>;
133 phy-handle = <&swphy4>;
134 };
135
136 &eth1 {
137 mtd-mac-address = <&art 0x0>;
138 mtd-mac-address-increment = <1>;
139 };
140
141 &wmac {
142 status = "okay";
143 mtd-cal-data = <&art 0x1000>;
144 };