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