1 // SPDX-License-Identifier: GPL-2.0-or-later
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/interrupt-controller/irq.h>
10 #include <dt-bindings/reset/bcm6362-reset.h>
11 #include <dt-bindings/soc/bcm6362-pm.h>
16 compatible = "brcm,bcm6362";
28 bootargs = "earlycon";
29 stdout-path = "serial0:115200n8";
33 periph_osc: periph-osc {
34 compatible = "fixed-clock";
38 clock-frequency = <50000000>;
39 clock-output-names = "periph";
42 hsspi_osc: hsspi-osc {
43 compatible = "fixed-clock";
47 clock-frequency = <400000000>;
48 clock-output-names = "hsspi_osc";
55 mips-hpt-frequency = <200000000>;
58 compatible = "brcm,bmips4350", "mips,mips4Kc";
64 compatible = "brcm,bmips4350", "mips,mips4Kc";
70 cpu_intc: interrupt-controller {
72 compatible = "mti,cpu-interrupt-controller";
75 #interrupt-cells = <1>;
79 device_type = "memory";
87 compatible = "simple-bus";
90 periph_clk: clock-controller@10000004 {
91 compatible = "brcm,bcm6362-clocks";
92 reg = <0x10000004 0x4>;
96 pll_cntl: syscon@10000008 {
97 compatible = "syscon", "simple-mfd";
98 reg = <0x10000008 0x4>;
102 compatible = "syscon-reboot";
108 periph_rst: reset-controller@10000010 {
109 compatible = "brcm,bcm6345-reset";
110 reg = <0x10000010 0x4>;
114 ext_intc: interrupt-controller@10000018 {
115 #address-cells = <1>;
116 compatible = "brcm,bcm6345-ext-intc";
117 reg = <0x10000018 0x4>;
119 interrupt-controller;
120 #interrupt-cells = <2>;
122 interrupt-parent = <&periph_intc>;
123 interrupts = <BCM6362_IRQ_EXT0>,
129 periph_intc: interrupt-controller@10000020 {
130 #address-cells = <1>;
131 compatible = "brcm,bcm6345-l1-intc";
132 reg = <0x10000020 0x10>,
135 interrupt-controller;
136 #interrupt-cells = <1>;
138 interrupt-parent = <&cpu_intc>;
139 interrupts = <2>, <3>;
142 wdt: watchdog@1000005c {
143 compatible = "brcm,bcm7038-wdt";
144 reg = <0x1000005c 0xc>;
146 clocks = <&periph_osc>;
151 gpio_cntl: syscon@10000080 {
152 #address-cells = <1>;
154 compatible = "brcm,bcm6362-gpio-sysctl",
155 "syscon", "simple-mfd";
156 reg = <0x10000080 0x80>;
157 ranges = <0 0x10000080 0x80>;
161 compatible = "brcm,bcm6362-gpio";
162 reg-names = "dirout", "dat";
163 reg = <0x0 0x8>, <0x8 0x8>;
166 gpio-ranges = <&pinctrl 0 0 48>;
170 pinctrl: pinctrl@18 {
171 compatible = "brcm,bcm6362-pinctrl";
172 reg = <0x18 0x10>, <0x38 0x4>;
174 pinctrl_usb_device_led: usb_device_led-pins {
175 function = "usb_device_led";
179 pinctrl_sys_irq: sys_irq-pins {
180 function = "sys_irq";
184 pinctrl_serial_led: serial_led-pins {
185 pinctrl_serial_led_clk: serial_led_clk-pins {
186 function = "serial_led_clk";
190 pinctrl_serial_led_data: serial_led_data-pins {
191 function = "serial_led_data";
196 pinctrl_robosw_led_data: robosw_led_data-pins {
197 function = "robosw_led_data";
201 pinctrl_robosw_led_clk: robosw_led_clk-pins {
202 function = "robosw_led_clk";
206 pinctrl_robosw_led0: robosw_led0-pins {
207 function = "robosw_led0";
211 pinctrl_robosw_led1: robosw_led1-pins {
212 function = "robosw_led1";
216 pinctrl_inet_led: inet_led-pins {
217 function = "inet_led";
221 pinctrl_spi_cs2: spi_cs2-pins {
222 function = "spi_cs2";
226 pinctrl_spi_cs3: spi_cs3-pins {
227 function = "spi_cs3";
231 pinctrl_ntr_pulse: ntr_pulse-pins {
232 function = "ntr_pulse";
236 pinctrl_uart1_scts: uart1_scts-pins {
237 function = "uart1_scts";
241 pinctrl_uart1_srts: uart1_srts-pins {
242 function = "uart1_srts";
246 pinctrl_uart1: uart1-pins {
247 pinctrl_uart1_sdin: uart1_sdin-pins {
248 function = "uart1_sdin";
252 pinctrl_uart1_sdout: uart1_sdout-pins {
253 function = "uart1_sdout";
258 pinctrl_adsl_spi: adsl_spi-pins {
259 pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
260 function = "adsl_spi_miso";
264 pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
265 function = "adsl_spi_mosi";
269 pinctrl_adsl_spi_clk: adsl_spi_clk-pins {
270 function = "adsl_spi_clk";
274 pinctrl_adsl_spi_cs: adsl_spi_cs-pins {
275 function = "adsl_spi_cs";
280 pinctrl_ephy0_led: ephy0_led-pins {
281 function = "ephy0_led";
285 pinctrl_ephy1_led: ephy1_led-pins {
286 function = "ephy1_led";
290 pinctrl_ephy2_led: ephy2_led-pins {
291 function = "ephy2_led";
295 pinctrl_ephy3_led: ephy3_led-pins {
296 function = "ephy3_led";
300 pinctrl_ext_irq0: ext_irq0-pins {
301 function = "ext_irq0";
305 pinctrl_ext_irq1: ext_irq1-pins {
306 function = "ext_irq1";
310 pinctrl_ext_irq2: ext_irq2-pins {
311 function = "ext_irq2";
315 pinctrl_ext_irq3: ext_irq3-pins {
316 function = "ext_irq3";
320 pinctrl_nand: nand-pins {
327 uart0: serial@10000100 {
328 compatible = "brcm,bcm6345-uart";
329 reg = <0x10000100 0x18>;
331 interrupt-parent = <&periph_intc>;
332 interrupts = <BCM6362_IRQ_UART0>;
334 clocks = <&periph_osc>;
335 clock-names = "periph";
340 uart1: serial@10000120 {
341 compatible = "brcm,bcm6345-uart";
342 reg = <0x10000120 0x18>;
344 interrupt-parent = <&periph_intc>;
345 interrupts = <BCM6362_IRQ_UART1>;
347 clocks = <&periph_osc>;
348 clock-names = "periph";
353 nflash: nand@10000200 {
354 #address-cells = <1>;
356 compatible = "brcm,nand-bcm6368",
357 "brcm,brcmnand-v2.2",
359 reg = <0x10000200 0x180>,
366 interrupt-parent = <&periph_intc>;
367 interrupts = <BCM6362_IRQ_NAND>;
369 clocks = <&periph_clk BCM6362_CLK_NAND>;
370 clock-names = "nand";
372 pinctrl-names = "default";
373 pinctrl-0 = <&pinctrl_nand>;
378 lsspi: spi@10000800 {
379 #address-cells = <1>;
381 compatible = "brcm,bcm6358-spi";
382 reg = <0x10000800 0x70c>;
384 interrupt-parent = <&periph_intc>;
385 interrupts = <BCM6362_IRQ_LSSPI>;
387 clocks = <&periph_clk BCM6362_CLK_SPI>;
390 resets = <&periph_rst BCM6362_RST_SPI>;
395 hsspi: spi@10001000 {
396 #address-cells = <1>;
398 compatible = "brcm,bcm6328-hsspi";
399 reg = <0x10001000 0x600>;
401 interrupt-parent = <&periph_intc>;
402 interrupts = <BCM6362_IRQ_HSSPI>;
404 clocks = <&periph_clk BCM6362_CLK_HSSPI>,
406 clock-names = "hsspi",
409 resets = <&periph_rst BCM6362_RST_SPI>;
414 serdes_cntl: syscon@10001804 {
415 compatible = "syscon";
416 reg = <0x10001804 0x4>;
420 periph_pwr: power-controller@10001848 {
421 compatible = "brcm,bcm6362-power-controller";
422 reg = <0x10001848 0x4>;
423 #power-domain-cells = <1>;
426 leds: led-controller@10001900 {
427 #address-cells = <1>;
429 compatible = "brcm,bcm6328-leds";
430 reg = <0x10001900 0x24>;
436 compatible = "brcm,bcm6362-ehci", "generic-ehci";
437 reg = <0x10002500 0x100>;
441 interrupt-parent = <&periph_intc>;
442 interrupts = <BCM6362_IRQ_EHCI>;
451 compatible = "brcm,bcm6362-ohci", "generic-ohci";
452 reg = <0x10002600 0x100>;
456 interrupt-parent = <&periph_intc>;
457 interrupts = <BCM6362_IRQ_OHCI>;
465 usbh: usb-phy@10002700 {
466 compatible = "brcm,bcm6362-usbh-phy";
467 reg = <0x10002700 0x38>;
471 clocks = <&periph_clk BCM6362_CLK_USBH>;
472 clock-names = "usbh";
474 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_USBH>;
475 resets = <&periph_rst BCM6362_RST_USBH>;
480 random: rng@10002880 {
481 compatible = "brcm,bcm6368-rng";
482 reg = <0x10002880 0x14>;
484 clocks = <&periph_clk BCM6362_CLK_IPSEC>;
485 clock-names = "ipsec";
487 resets = <&periph_rst BCM6362_RST_IPSEC>;
489 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_IPSEC>;
492 ethernet: ethernet@1000d800 {
493 compatible = "brcm,bcm6362-enetsw";
494 reg = <0x1000d800 0x80>,
501 interrupt-parent = <&periph_intc>;
502 interrupts = <BCM6362_IRQ_ENETSW_RX_DMA0>;
503 interrupt-names = "rx";
505 clocks = <&periph_clk BCM6362_CLK_SWPKT_USB>,
506 <&periph_clk BCM6362_CLK_SWPKT_SAR>,
507 <&periph_clk BCM6362_CLK_ROBOSW>;
509 resets = <&periph_rst BCM6362_RST_ENETSW>,
510 <&periph_rst BCM6362_RST_EPHY>;
512 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_ROBOSW>,
513 <&periph_pwr BCM6362_POWER_DOMAIN_GMII_PADS>;
521 switch0: switch@10e00000 {
522 #address-cells = <1>;
524 compatible = "brcm,bcm6362-switch";
525 reg = <0x10e00000 0x8000>;
529 #address-cells = <1>;
535 phy-mode = "internal";
536 ethernet = <ðernet>;
546 mdio: mdio@10e000b0 {
547 #address-cells = <1>;
549 compatible = "brcm,bcm6368-mdio-mux";
550 reg = <0x10e000b0 0x8>;
553 #address-cells = <1>;
557 phy1: ethernet-phy@1 {
558 compatible = "ethernet-phy-ieee802.3-c22";
562 phy2: ethernet-phy@2 {
563 compatible = "ethernet-phy-ieee802.3-c22";
567 phy3: ethernet-phy@3 {
568 compatible = "ethernet-phy-ieee802.3-c22";
572 phy4: ethernet-phy@4 {
573 compatible = "ethernet-phy-ieee802.3-c22";
579 #address-cells = <1>;
585 pcie: pcie@10e40000 {
586 compatible = "brcm,bcm6328-pcie";
587 reg = <0x10e40000 0x10000>;
588 #address-cells = <3>;
592 bus-range = <0x00 0x01>;
593 ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>;
594 linux,pci-probe-only = <1>;
596 interrupt-parent = <&periph_intc>;
597 interrupts = <BCM6362_IRQ_PCIE_RC>;
599 clocks = <&periph_clk BCM6362_CLK_PCIE>;
600 clock-names = "pcie";
602 resets = <&periph_rst BCM6362_RST_PCIE>,
603 <&periph_rst BCM6362_RST_PCIE_EXT>,
604 <&periph_rst BCM6362_RST_PCIE_CORE>;
605 reset-names = "pcie",
609 power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_PCIE>;
611 brcm,serdes = <&serdes_cntl>;