bmips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm63167-sercomm-h500-s.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "bcm63268.dtsi"
6
7 / {
8 aliases {
9 led-boot = &led_power_green;
10 led-failsafe = &led_power_red;
11 led-running = &led_power_green;
12 led-upgrade = &led_power_green;
13 };
14
15 keys {
16 compatible = "gpio-keys-polled";
17 poll-interval = <100>;
18
19 wps {
20 label = "wps";
21 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_WPS_BUTTON>;
23 debounce-interval = <60>;
24 };
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 debounce-interval = <60>;
31 };
32 };
33 };
34
35 &ehci {
36 status = "okay";
37 };
38
39 &ethernet {
40 status = "okay";
41
42 nvmem-cells = <&macaddr_cferom_6a0>;
43 nvmem-cell-names = "mac-address";
44 };
45
46 &leds {
47 status = "okay";
48
49 pinctrl-names = "default";
50 pinctrl-0 = <&pinctrl_leds>;
51
52 led@0 {
53 reg = <0>;
54 label = "red:mobile";
55 };
56
57 led@1 {
58 reg = <1>;
59 label = "green:mobile";
60 };
61
62 led_power_red: led@8 {
63 reg = <8>;
64 function = LED_FUNCTION_POWER;
65 color = <LED_COLOR_ID_RED>;
66 panic-indicator;
67 };
68
69 led@9 {
70 reg = <9>;
71 label = "green:wifi";
72 };
73
74 led@12 {
75 reg = <12>;
76 label = "red:phone";
77 };
78
79 led@13 {
80 reg = <13>;
81 label = "red:wifi";
82 };
83
84 led@14 {
85 reg = <14>;
86 label = "red:internet";
87 };
88
89 led@15 {
90 reg = <15>;
91 label = "green:internet";
92 };
93
94 led@16 {
95 reg = <16>;
96 label = "green:phone";
97 };
98
99 led_power_green: led@17 {
100 reg = <17>;
101 function = LED_FUNCTION_POWER;
102 color = <LED_COLOR_ID_GREEN>;
103 };
104
105 led@23 {
106 reg = <23>;
107 label = "blue:mobile";
108 };
109 };
110
111 &mdio_int {
112 phy12: ethernet-phy@c {
113 compatible = "ethernet-phy-ieee802.3-c22";
114 reg = <12>;
115 };
116 };
117
118 &mdio_ext {
119 switch@1e {
120 compatible = "brcm,bcm53134";
121 reg = <30>;
122
123 dsa,member = <1 0>;
124
125 ports {
126 #address-cells = <1>;
127 #size-cells = <0>;
128
129 port@1 {
130 reg = <1>;
131 label = "lan3";
132 };
133
134 port@2 {
135 reg = <2>;
136 label = "lan2";
137 };
138
139 port@3 {
140 reg = <3>;
141 label = "lan1";
142 };
143
144 port@5 {
145 reg = <5>;
146 label = "wifi";
147
148 phy-mode = "rgmii";
149
150 fixed-link {
151 speed = <1000>;
152 full-duplex;
153 };
154 };
155
156 port@8 {
157 reg = <8>;
158
159 phy-mode = "rgmii-txid";
160 ethernet = <&switch0port4>;
161
162 fixed-link {
163 speed = <1000>;
164 full-duplex;
165 };
166 };
167 };
168 };
169 };
170
171 &nflash {
172 status = "okay";
173
174 nandcs@0 {
175 compatible = "brcm,nandcs";
176 reg = <0>;
177 nand-ecc-step-size = <512>;
178 nand-ecc-strength = <4>;
179 nand-on-flash-bbt;
180 brcm,nand-oob-sector-size = <64>;
181
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 partitions {
186 compatible = "fixed-partitions";
187 #address-cells = <1>;
188 #size-cells = <1>;
189
190 partition@0 {
191 label = "cferom";
192 reg = <0x0000000 0x0020000>;
193 read-only;
194
195 nvmem-layout {
196 compatible = "fixed-layout";
197 #address-cells = <1>;
198 #size-cells = <1>;
199
200 macaddr_cferom_6a0: macaddr@6a0 {
201 reg = <0x6a0 0x6>;
202 };
203 };
204 };
205
206 partition@20000 {
207 label = "part_map";
208 reg = <0x0020000 0x00a0000>;
209 read-only;
210 };
211
212 partition@c0000 {
213 label = "cferam1";
214 reg = <0x00c0000 0x0140000>;
215 read-only;
216 };
217
218 partition@200000 {
219 label = "cferam2";
220 reg = <0x0200000 0x0140000>;
221 read-only;
222 };
223
224 partition@6920000 {
225 label = "bootflag1";
226 reg = <0x6920000 0x0140000>;
227 };
228
229 partition@6a60000 {
230 label = "bootflag2";
231 reg = <0x6a60000 0x0140000>;
232 };
233
234 partition@520000 {
235 compatible = "sercomm,wfi";
236 label = "wfi";
237 reg = <0x0520000 0x6400000>;
238 };
239
240 partition@6ba0000 {
241 label = "xml_cfg";
242 reg = <0x6ba0000 0x0280000>;
243 read-only;
244 };
245
246 partition@6e20000 {
247 label = "app_data";
248 reg = <0x6e20000 0x0280000>;
249 read-only;
250 };
251 };
252 };
253 };
254
255 &ohci {
256 status = "okay";
257 };
258
259 &switch0 {
260 dsa,member = <0 0>;
261
262 ports {
263 port@3 {
264 reg = <3>;
265 label = "wan";
266
267 phy-handle = <&phy12>;
268 phy-mode = "gmii";
269 };
270
271 switch0port4: port@4 {
272 reg = <4>;
273 label = "extsw";
274
275 phy-mode = "rgmii-txid";
276
277 fixed-link {
278 speed = <1000>;
279 full-duplex;
280 };
281 };
282 };
283 };
284
285 &pinctrl {
286 pinctrl_leds: leds {
287 function = "led";
288 pins = "gpio0", "gpio1", "gpio8", "gpio9",
289 "gpio12", "gpio13", "gpio14", "gpio15",
290 "gpio16", "gpio17", "gpio23";
291 };
292 };
293
294 &uart0 {
295 status = "okay";
296 };
297
298 &usbh {
299 status = "okay";
300 };