ath79: remove model name from LED labels
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar1022_iodata_wn-ag300dgr.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "iodata,wn-ag300dgr", "qca,ar9344";
10 model = "I-O DATA WN-AG300DGR";
11
12 aliases {
13 led-boot = &led_router;
14 led-failsafe = &led_router;
15 led-running = &led_router;
16 led-upgrade = &led_router;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_router: router {
23 label = "green:router";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 children {
29 label = "green:children";
30 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
31 };
32
33 eco {
34 label = "green:eco";
35 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
36 };
37
38 notification {
39 label = "amber:notification";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan2g {
44 label = "green:wlan2g";
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wlan5g {
50 label = "green:wlan5g";
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55
56 keys {
57 compatible = "gpio-keys";
58
59 eco {
60 label = "eco";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
62 linux,code = <BTN_1>;
63 debounce-interval = <60>;
64 };
65
66 router {
67 label = "router";
68 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
69 linux,code = <BTN_0>;
70 linux,input-type = <EV_SW>;
71 debounce-interval = <60>;
72 };
73
74 auto {
75 label = "auto";
76 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
77 linux,code = <BTN_0>;
78 linux,input-type = <EV_SW>;
79 debounce-interval = <60>;
80 };
81
82 wps {
83 label = "wps";
84 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
86 debounce-interval = <60>;
87 };
88
89 reset {
90 label = "reset";
91 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
93 debounce-interval = <60>;
94 };
95
96 children {
97 label = "children";
98 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
99 linux,code = <BTN_1>;
100 debounce-interval = <60>;
101 };
102 };
103 };
104
105 &ref {
106 clock-frequency = <25000000>;
107 };
108
109 &spi {
110 status = "okay";
111
112 num-cs = <1>;
113
114 flash@0 {
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <25000000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 partition@0 {
125 label = "u-boot";
126 reg = <0x000000 0x030000>;
127 read-only;
128 };
129
130 partition@30000 {
131 label = "u-boot-env";
132 reg = <0x030000 0x010000>;
133 read-only;
134 };
135
136 partition@40000 {
137 compatible = "denx,uimage";
138 label = "firmware";
139 reg = <0x040000 0xf10000>;
140 };
141
142 partition@f50000 {
143 label = "manufacture";
144 reg = <0xf50000 0x40000>;
145 read-only;
146 };
147
148 partition@f90000 {
149 label = "backup";
150 reg = <0xf90000 0x10000>;
151 read-only;
152 };
153
154 partition@fa0000 {
155 label = "storage";
156 reg = <0xfa0000 0x50000>;
157 read-only;
158 };
159
160 partition@ff0000 {
161 label = "art";
162 reg = <0xff0000 0x010000>;
163 read-only;
164 };
165 };
166 };
167 };
168
169 &mdio0 {
170 status = "okay";
171
172 phy0: ethernet-phy@0 {
173 reg = <0>;
174 phy-mode = "rgmii";
175
176 qca,ar8327-initvals = <
177 0x04 0x07a00000 /* PORT0 PAD MODE CTRL */
178 0x7c 0x000000fe /* PORT0_STATUS */
179 >;
180 };
181 };
182
183 &eth0 {
184 status = "okay";
185
186 pll-data = <0x06000000 0x00000101 0x00001616>;
187
188 phy-mode = "rgmii";
189 phy-handle = <&phy0>;
190
191 gmac-config {
192 device = <&gmac>;
193 rgmii-gmac0 = <1>;
194 };
195 };
196
197 &pcie {
198 status = "okay";
199 };
200
201 &uart {
202 status = "okay";
203 };
204
205 &usb {
206 status = "okay";
207 };
208
209 &usb_phy {
210 status = "okay";
211 };
212
213 &wmac {
214 status = "okay";
215
216 qca,no-eeprom;
217 };