bmips: add missing switch cpu label
[openwrt/staging/noltari.git] / target / linux / bmips / dts / bcm6362.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
5 #include <dt-bindings/clock/bcm6362-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6362-interrupt-controller.h>
9 #include <dt-bindings/reset/bcm6362-reset.h>
10 #include <dt-bindings/soc/bcm6362-pm.h>
11
12 / {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "brcm,bcm6362";
16
17 aliases {
18 nflash = &nflash;
19 pinctrl = &pinctrl;
20 serial0 = &uart0;
21 serial1 = &uart1;
22 spi0 = &lsspi;
23 spi1 = &hsspi;
24 };
25
26 chosen {
27 bootargs = "earlycon";
28 stdout-path = "serial0:115200n8";
29 };
30
31 clocks {
32 periph_osc: periph-osc {
33 compatible = "fixed-clock";
34
35 #clock-cells = <0>;
36
37 clock-frequency = <50000000>;
38 clock-output-names = "periph";
39 };
40
41 hsspi_osc: hsspi-osc {
42 compatible = "fixed-clock";
43
44 #clock-cells = <0>;
45
46 clock-frequency = <400000000>;
47 clock-output-names = "hsspi_osc";
48 };
49 };
50
51 cpus {
52 #address-cells = <1>;
53 #size-cells = <0>;
54 mips-hpt-frequency = <200000000>;
55
56 cpu@0 {
57 compatible = "brcm,bmips4350", "mips,mips4Kc";
58 device_type = "cpu";
59 reg = <0>;
60 };
61
62 cpu@1 {
63 compatible = "brcm,bmips4350", "mips,mips4Kc";
64 device_type = "cpu";
65 reg = <1>;
66 };
67 };
68
69 cpu_intc: interrupt-controller {
70 #address-cells = <0>;
71 compatible = "mti,cpu-interrupt-controller";
72
73 interrupt-controller;
74 #interrupt-cells = <1>;
75 };
76
77 memory@0 {
78 device_type = "memory";
79 reg = <0 0>;
80 };
81
82 ubus {
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 compatible = "simple-bus";
87 ranges;
88
89 periph_clk: clock-controller@10000004 {
90 compatible = "brcm,bcm6362-clocks";
91 reg = <0x10000004 0x4>;
92 #clock-cells = <1>;
93 };
94
95 pll_cntl: syscon@10000008 {
96 compatible = "syscon", "simple-mfd";
97 reg = <0x10000008 0x4>;
98 native-endian;
99
100 syscon-reboot {
101 compatible = "syscon-reboot";
102 offset = <0x0>;
103 mask = <0x1>;
104 };
105 };
106
107 periph_rst: reset-controller@10000010 {
108 compatible = "brcm,bcm6345-reset";
109 reg = <0x10000010 0x4>;
110 #reset-cells = <1>;
111 };
112
113 ext_intc: interrupt-controller@10000018 {
114 #address-cells = <1>;
115 compatible = "brcm,bcm6345-ext-intc";
116 reg = <0x10000018 0x4>;
117
118 interrupt-controller;
119 #interrupt-cells = <2>;
120
121 interrupts = <BCM6362_IRQ_EXT0>,
122 <BCM6362_IRQ_EXT1>,
123 <BCM6362_IRQ_EXT2>,
124 <BCM6362_IRQ_EXT3>;
125 };
126
127 periph_intc: interrupt-controller@10000020 {
128 #address-cells = <1>;
129 compatible = "brcm,bcm6345-l1-intc";
130 reg = <0x10000020 0x10>,
131 <0x10000030 0x10>;
132
133 interrupt-controller;
134 #interrupt-cells = <1>;
135
136 interrupt-parent = <&cpu_intc>;
137 interrupts = <2>, <3>;
138 };
139
140 wdt: watchdog@1000005c {
141 compatible = "brcm,bcm7038-wdt";
142 reg = <0x1000005c 0xc>;
143
144 clocks = <&periph_osc>;
145
146 timeout-sec = <30>;
147 };
148
149 gpio_cntl: syscon@10000080 {
150 compatible = "brcm,bcm6362-gpio-sysctl",
151 "syscon", "simple-mfd";
152 reg = <0x10000080 0x80>;
153 ranges = <0 0x10000080 0x80>;
154 native-endian;
155
156 gpio: gpio@0 {
157 compatible = "brcm,bcm6362-gpio";
158 reg-names = "dirout", "dat";
159 reg = <0x0 0x8>, <0x8 0x8>;
160
161 gpio-controller;
162 gpio-ranges = <&pinctrl 0 0 48>;
163 #gpio-cells = <2>;
164 };
165
166 pinctrl: pinctrl@18 {
167 compatible = "brcm,bcm6362-pinctrl";
168 reg = <0x18 0x10>, <0x38 0x4>;
169
170 pinctrl_usb_device_led: usb_device_led-pins {
171 function = "usb_device_led";
172 pins = "gpio0";
173 };
174
175 pinctrl_sys_irq: sys_irq-pins {
176 function = "sys_irq";
177 pins = "gpio1";
178 };
179
180 pinctrl_serial_led: serial_led-pins {
181 pinctrl_serial_led_clk: serial_led_clk-pins {
182 function = "serial_led_clk";
183 pins = "gpio2";
184 };
185
186 pinctrl_serial_led_data: serial_led_data-pins {
187 function = "serial_led_data";
188 pins = "gpio3";
189 };
190 };
191
192 pinctrl_robosw_led_data: robosw_led_data-pins {
193 function = "robosw_led_data";
194 pins = "gpio4";
195 };
196
197 pinctrl_robosw_led_clk: robosw_led_clk-pins {
198 function = "robosw_led_clk";
199 pins = "gpio5";
200 };
201
202 pinctrl_robosw_led0: robosw_led0-pins {
203 function = "robosw_led0";
204 pins = "gpio6";
205 };
206
207 pinctrl_robosw_led1: robosw_led1-pins {
208 function = "robosw_led1";
209 pins = "gpio7";
210 };
211
212 pinctrl_inet_led: inet_led-pins {
213 function = "inet_led";
214 pins = "gpio8";
215 };
216
217 pinctrl_spi_cs2: spi_cs2-pins {
218 function = "spi_cs2";
219 pins = "gpio9";
220 };
221
222 pinctrl_spi_cs3: spi_cs3-pins {
223 function = "spi_cs3";
224 pins = "gpio10";
225 };
226
227 pinctrl_ntr_pulse: ntr_pulse-pins {
228 function = "ntr_pulse";
229 pins = "gpio11";
230 };
231
232 pinctrl_uart1_scts: uart1_scts-pins {
233 function = "uart1_scts";
234 pins = "gpio12";
235 };
236
237 pinctrl_uart1_srts: uart1_srts-pins {
238 function = "uart1_srts";
239 pins = "gpio13";
240 };
241
242 pinctrl_uart1: uart1-pins {
243 pinctrl_uart1_sdin: uart1_sdin-pins {
244 function = "uart1_sdin";
245 pins = "gpio14";
246 };
247
248 pinctrl_uart1_sdout: uart1_sdout-pins {
249 function = "uart1_sdout";
250 pins = "gpio15";
251 };
252 };
253
254 pinctrl_adsl_spi: adsl_spi-pins {
255 pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
256 function = "adsl_spi_miso";
257 pins = "gpio16";
258 };
259
260 pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
261 function = "adsl_spi_mosi";
262 pins = "gpio17";
263 };
264
265 pinctrl_adsl_spi_clk: adsl_spi_clk-pins {
266 function = "adsl_spi_clk";
267 pins = "gpio18";
268 };
269
270 pinctrl_adsl_spi_cs: adsl_spi_cs-pins {
271 function = "adsl_spi_cs";
272 pins = "gpio19";
273 };
274 };
275
276 pinctrl_ephy0_led: ephy0_led-pins {
277 function = "ephy0_led";
278 pins = "gpio20";
279 };
280
281 pinctrl_ephy1_led: ephy1_led-pins {
282 function = "ephy1_led";
283 pins = "gpio21";
284 };
285
286 pinctrl_ephy2_led: ephy2_led-pins {
287 function = "ephy2_led";
288 pins = "gpio22";
289 };
290
291 pinctrl_ephy3_led: ephy3_led-pins {
292 function = "ephy3_led";
293 pins = "gpio23";
294 };
295
296 pinctrl_ext_irq0: ext_irq0-pins {
297 function = "ext_irq0";
298 pins = "gpio24";
299 };
300
301 pinctrl_ext_irq1: ext_irq1-pins {
302 function = "ext_irq1";
303 pins = "gpio25";
304 };
305
306 pinctrl_ext_irq2: ext_irq2-pins {
307 function = "ext_irq2";
308 pins = "gpio26";
309 };
310
311 pinctrl_ext_irq3: ext_irq3-pins {
312 function = "ext_irq3";
313 pins = "gpio27";
314 };
315
316 pinctrl_nand: nand-pins {
317 function = "nand";
318 group = "nand_grp";
319 };
320 };
321 };
322
323 uart0: serial@10000100 {
324 compatible = "brcm,bcm6345-uart";
325 reg = <0x10000100 0x18>;
326
327 interrupt-parent = <&periph_intc>;
328 interrupts = <BCM6362_IRQ_UART0>;
329
330 clocks = <&periph_osc>;
331 clock-names = "periph";
332
333 status = "disabled";
334 };
335
336 uart1: serial@10000120 {
337 compatible = "brcm,bcm6345-uart";
338 reg = <0x10000120 0x18>;
339
340 interrupt-parent = <&periph_intc>;
341 interrupts = <BCM6362_IRQ_UART1>;
342
343 clocks = <&periph_osc>;
344 clock-names = "periph";
345
346 status = "disabled";
347 };
348
349 nflash: nand@10000200 {
350 #address-cells = <1>;
351 #size-cells = <0>;
352 compatible = "brcm,nand-bcm6368",
353 "brcm,brcmnand-v2.2",
354 "brcm,brcmnand";
355 reg = <0x10000200 0x180>,
356 <0x10000600 0x200>,
357 <0x10000070 0x10>;
358 reg-names = "nand",
359 "nand-cache",
360 "nand-int-base";
361
362 interrupt-parent = <&periph_intc>;
363 interrupts = <BCM6362_IRQ_NAND>;
364
365 clocks = <&periph_clk BCM6362_CLK_NAND>;
366 clock-names = "nand";
367
368 pinctrl-names = "default";
369 pinctrl-0 = <&pinctrl_nand>;
370
371 status = "disabled";
372 };
373
374 lsspi: spi@10000800 {
375 #address-cells = <1>;
376 #size-cells = <0>;
377 compatible = "brcm,bcm6358-spi";
378 reg = <0x10000800 0x70c>;
379
380 interrupt-parent = <&periph_intc>;
381 interrupts = <BCM6362_IRQ_LSSPI>;
382
383 clocks = <&periph_clk BCM6362_CLK_SPI>;
384 clock-names = "spi";
385
386 resets = <&periph_rst BCM6362_RST_SPI>;
387
388 status = "disabled";
389 };
390
391 hsspi: spi@10001000 {
392 #address-cells = <1>;
393 #size-cells = <0>;
394 compatible = "brcm,bcm6328-hsspi";
395 reg = <0x10001000 0x600>;
396
397 interrupt-parent = <&periph_intc>;
398 interrupts = <BCM6362_IRQ_HSSPI>;
399
400 clocks = <&periph_clk BCM6362_CLK_HSSPI>,
401 <&hsspi_osc>;
402 clock-names = "hsspi",
403 "pll";
404
405 resets = <&periph_rst BCM6362_RST_SPI>;
406
407 status = "disabled";
408 };
409
410 serdes_cntl: syscon@10001804 {
411 compatible = "syscon";
412 reg = <0x10001804 0x4>;
413 native-endian;
414 };
415
416 periph_pwr: power-controller@10001848 {
417 compatible = "brcm,bcm6362-power-controller";
418 reg = <0x10001848 0x4>;
419 #power-domain-cells = <1>;
420 };
421
422 leds: led-controller@10001900 {
423 #address-cells = <1>;
424 #size-cells = <0>;
425 compatible = "brcm,bcm6328-leds";
426 reg = <0x10001900 0x24>;
427
428 status = "disabled";
429 };
430
431 ehci: usb@10002500 {
432 compatible = "brcm,bcm6362-ehci", "generic-ehci";
433 reg = <0x10002500 0x100>;
434 big-endian;
435 spurious-oc;
436
437 interrupt-parent = <&periph_intc>;
438 interrupts = <BCM6362_IRQ_EHCI>;
439
440 phys = <&usbh 0>;
441 phy-names = "usb";
442
443 status = "disabled";
444 };
445
446 ohci: usb@10002600 {
447 compatible = "brcm,bcm6362-ohci", "generic-ohci";
448 reg = <0x10002600 0x100>;
449 big-endian;
450 no-big-frame-no;
451
452 interrupt-parent = <&periph_intc>;
453 interrupts = <BCM6362_IRQ_OHCI>;
454
455 phys = <&usbh 0>;
456 phy-names = "usb";
457
458 status = "disabled";
459 };
460
461 usbh: usb-phy@10002700 {
462 compatible = "brcm,bcm6362-usbh-phy";
463 reg = <0x10002700 0x38>;
464
465 #phy-cells = <1>;
466
467 clocks = <&periph_clk BCM6362_CLK_USBH>;
468 clock-names = "usbh";
469
470 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_USBH>;
471 resets = <&periph_rst BCM6362_RST_USBH>;
472
473 status = "disabled";
474 };
475
476 ethernet: ethernet@1000d800 {
477 compatible = "brcm,bcm6362-enetsw";
478 reg = <0x1000d800 0x80>,
479 <0x1000da00 0x80>,
480 <0x1000dc00 0x80>;
481 reg-names = "dma",
482 "dma-channels",
483 "dma-sram";
484
485 interrupt-parent = <&periph_intc>;
486 interrupts = <BCM6362_IRQ_ENETSW_RX_DMA0>;
487 interrupt-names = "rx";
488
489 clocks = <&periph_clk BCM6362_CLK_SWPKT_USB>,
490 <&periph_clk BCM6362_CLK_SWPKT_SAR>,
491 <&periph_clk BCM6362_CLK_ROBOSW>;
492
493 resets = <&periph_rst BCM6362_RST_ENETSW>,
494 <&periph_rst BCM6362_RST_EPHY>;
495
496 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_ROBOSW>,
497 <&periph_pwr BCM6362_POWER_DOMAIN_GMII_PADS>;
498
499 dma-rx = <0>;
500 dma-tx = <1>;
501
502 status = "disabled";
503 };
504
505 switch0: switch@10e00000 {
506 #address-cells = <1>;
507 #size-cells = <0>;
508 compatible = "brcm,bcm6328-switch";
509 reg = <0x10e00000 0x8000>;
510 big-endian;
511
512 ports {
513 #address-cells = <1>;
514 #size-cells = <0>;
515
516 port@8 {
517 reg = <8>;
518 label = "cpu";
519
520 phy-mode = "internal";
521 ethernet = <&ethernet>;
522
523 fixed-link {
524 speed = <1000>;
525 full-duplex;
526 };
527 };
528 };
529 };
530
531 mdio: mdio@10e000b0 {
532 #address-cells = <1>;
533 #size-cells = <0>;
534 compatible = "brcm,bcm6368-mdio-mux";
535 reg = <0x10e000b0 0x8>;
536
537 mdio_int: mdio@0 {
538 #address-cells = <1>;
539 #size-cells = <0>;
540 reg = <0>;
541
542 phy1: ethernet-phy@1 {
543 compatible = "ethernet-phy-ieee802.3-c22";
544 reg = <1>;
545 };
546
547 phy2: ethernet-phy@2 {
548 compatible = "ethernet-phy-ieee802.3-c22";
549 reg = <2>;
550 };
551
552 phy3: ethernet-phy@3 {
553 compatible = "ethernet-phy-ieee802.3-c22";
554 reg = <3>;
555 };
556
557 phy4: ethernet-phy@4 {
558 compatible = "ethernet-phy-ieee802.3-c22";
559 reg = <4>;
560 };
561 };
562
563 mdio_ext: mdio@1 {
564 #address-cells = <1>;
565 #size-cells = <0>;
566 reg = <1>;
567 };
568 };
569
570 pcie: pcie@10e40000 {
571 compatible = "brcm,bcm6328-pcie";
572 reg = <0x10e40000 0x10000>;
573 #address-cells = <3>;
574 #size-cells = <2>;
575
576 device_type = "pci";
577 bus-range = <0x00 0x01>;
578 ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>;
579 linux,pci-probe-only = <1>;
580
581 interrupt-parent = <&periph_intc>;
582 interrupts = <BCM6362_IRQ_PCIE_RC>;
583
584 clocks = <&periph_clk BCM6362_CLK_PCIE>;
585 clock-names = "pcie";
586
587 resets = <&periph_rst BCM6362_RST_PCIE>,
588 <&periph_rst BCM6362_RST_PCIE_EXT>,
589 <&periph_rst BCM6362_RST_PCIE_CORE>;
590 reset-names = "pcie",
591 "pcie-ext",
592 "pcie-core";
593
594 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_PCIE>;
595
596 brcm,serdes = <&serdes_cntl>;
597
598 status = "disabled";
599 };
600 };
601 };