1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/clock/bcm6328-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/reset/bcm6328-reset.h>
12 #include <dt-bindings/soc/bcm6328-pm.h>
17 compatible = "brcm,bcm6328";
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 = <133333333>;
48 clock-output-names = "hsspi_osc";
55 mips-hpt-frequency = <160000000>;
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,bcm6328-clocks";
92 reg = <0x10000004 0x4>;
96 periph_rst: reset-controller@10000010 {
97 compatible = "brcm,bcm6345-reset";
98 reg = <0x10000010 0x4>;
102 ext_intc: interrupt-controller@10000018 {
103 #address-cells = <1>;
104 compatible = "brcm,bcm6345-ext-intc";
105 reg = <0x10000018 0x4>;
107 interrupt-controller;
108 #interrupt-cells = <2>;
110 interrupt-parent = <&periph_intc>;
111 interrupts = <BCM6328_IRQ_EXTO>,
117 periph_intc: interrupt-controller@10000020 {
118 #address-cells = <1>;
119 compatible = "brcm,bcm6345-l1-intc";
120 reg = <0x10000020 0x10>,
123 interrupt-controller;
124 #interrupt-cells = <1>;
126 interrupt-parent = <&cpu_intc>;
127 interrupts = <2>, <3>;
130 wdt: watchdog@1000005c {
131 compatible = "brcm,bcm7038-wdt";
132 reg = <0x1000005c 0xc>;
134 clocks = <&periph_osc>;
139 pll_cntl: syscon@10000068 {
140 compatible = "syscon", "simple-mfd";
141 reg = <0x10000068 0x4>;
145 compatible = "syscon-reboot";
151 gpio_cntl: syscon@10000080 {
152 #address-cells = <1>;
154 compatible = "brcm,bcm6328-gpio-sysctl",
155 "syscon", "simple-mfd";
156 reg = <0x10000080 0x80>;
157 ranges = <0 0x10000080 0x80>;
161 compatible = "brcm,bcm6328-gpio";
162 reg-names = "dirout", "dat";
163 reg = <0x0 0x8>, <0x8 0x8>;
166 gpio-ranges = <&pinctrl 0 0 32>;
170 pinctrl: pinctrl@18 {
171 compatible = "brcm,bcm6328-pinctrl";
174 pinctrl_serial_led: serial_led-pins {
175 pinctrl_serial_led_data: serial_led_data-pins {
176 function = "serial_led_data";
180 pinctrl_serial_led_clk: serial_led_clk-pins {
181 function = "serial_led_clk";
186 pinctrl_inet_act_led: inet_act_led-pins {
187 function = "inet_act_led";
191 pinctrl_pcie_clkreq: pcie_clkreq-pins {
192 function = "pcie_clkreq";
196 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
201 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
206 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
211 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
216 pinctrl_ephy0_act_led: ephy0_act_led-pins {
217 function = "ephy0_act_led";
221 pinctrl_ephy1_act_led: ephy1_act_led-pins {
222 function = "ephy1_act_led";
226 pinctrl_ephy2_act_led: ephy2_act_led-pins {
227 function = "ephy2_act_led";
231 pinctrl_ephy3_act_led: ephy3_act_led-pins {
232 function = "ephy3_act_led";
236 pinctrl_hsspi_cs1: hsspi_cs1-pins {
237 function = "hsspi_cs1";
241 pinctrl_usb_port1_device: usb_port1_device-pins {
242 function = "usb_device_port";
246 pinctrl_usb_port1_host: usb_port1_host-pins {
247 function = "usb_host_port";
253 uart0: serial@10000100 {
254 compatible = "brcm,bcm6345-uart";
255 reg = <0x10000100 0x18>;
257 interrupt-parent = <&periph_intc>;
258 interrupts = <BCM6328_IRQ_UART0>;
260 clocks = <&periph_osc>;
261 clock-names = "periph";
266 uart1: serial@10000120 {
267 compatible = "brcm,bcm6345-uart";
268 reg = <0x10000120 0x18>;
270 interrupt-parent = <&periph_intc>;
271 interrupts = <BCM6328_IRQ_UART1>;
273 clocks = <&periph_osc>;
274 clock-names = "periph";
279 nflash: nand@10000200 {
280 #address-cells = <1>;
282 compatible = "brcm,nand-bcm6368",
283 "brcm,brcmnand-v2.2",
285 reg = <0x10000200 0x180>,
292 interrupt-parent = <&periph_intc>;
293 interrupts = <BCM6328_IRQ_NAND>;
298 leds: led-controller@10000800 {
299 #address-cells = <1>;
301 compatible = "brcm,bcm6328-leds";
302 reg = <0x10000800 0x24>;
307 hsspi: spi@10001000 {
308 #address-cells = <1>;
310 compatible = "brcm,bcm6328-hsspi";
311 reg = <0x10001000 0x600>;
313 interrupt-parent = <&periph_intc>;
314 interrupts = <BCM6328_IRQ_HSSPI>;
316 clocks = <&periph_clk BCM6328_CLK_HSSPI>,
318 clock-names = "hsspi",
321 resets = <&periph_rst BCM6328_RST_SPI>;
326 serdes_cntl: syscon@10001800 {
327 compatible = "syscon";
328 reg = <0x10001800 0x4>;
332 periph_pwr: power-controller@10001848 {
333 compatible = "brcm,bcm6328-power-controller";
334 reg = <0x10001848 0x4>;
336 #power-domain-cells = <1>;
340 compatible = "brcm,bcm6328-ehci", "generic-ehci";
341 reg = <0x10002500 0x100>;
345 interrupt-parent = <&periph_intc>;
346 interrupts = <BCM6328_IRQ_EHCI>;
355 compatible = "brcm,bcm6328-ohci", "generic-ohci";
356 reg = <0x10002600 0x100>;
360 interrupt-parent = <&periph_intc>;
361 interrupts = <BCM6328_IRQ_OHCI>;
369 usbh: usb-phy@10002700 {
370 compatible = "brcm,bcm6328-usbh-phy";
371 reg = <0x10002700 0x38>;
375 clocks = <&periph_clk BCM6328_CLK_USBH>;
376 clock-names = "usbh";
378 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_USBH>;
379 resets = <&periph_rst BCM6328_RST_USBH>;
384 ethernet: ethernet@1000d800 {
385 compatible = "brcm,bcm6328-enetsw";
386 reg = <0x1000d800 0x80>,
393 interrupt-parent = <&periph_intc>;
394 interrupts = <BCM6328_IRQ_ENETSW_RX_DMA0>,
395 <BCM6328_IRQ_ENETSW_TX_DMA0>;
396 interrupt-names = "rx",
399 clocks = <&periph_clk BCM6328_CLK_ROBOSW>;
401 resets = <&periph_rst BCM6328_RST_ENETSW>,
402 <&periph_rst BCM6328_RST_EPHY>;
404 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_ROBOSW>,
405 <&periph_pwr BCM6328_POWER_DOMAIN_EPHY>;
413 switch0: switch@10e00000 {
414 #address-cells = <1>;
416 compatible = "brcm,bcm6328-switch";
417 reg = <0x10e00000 0x8000>;
421 #address-cells = <1>;
427 phy-mode = "internal";
428 ethernet = <ðernet>;
438 mdio: mdio@10e000b0 {
439 #address-cells = <1>;
441 compatible = "brcm,bcm6368-mdio-mux";
442 reg = <0x10e000b0 0x8>;
445 #address-cells = <1>;
449 phy1: ethernet-phy@1 {
450 compatible = "ethernet-phy-ieee802.3-c22";
454 phy2: ethernet-phy@2 {
455 compatible = "ethernet-phy-ieee802.3-c22";
459 phy3: ethernet-phy@3 {
460 compatible = "ethernet-phy-ieee802.3-c22";
464 phy4: ethernet-phy@4 {
465 compatible = "ethernet-phy-ieee802.3-c22";
471 #address-cells = <1>;
477 pcie: pcie@10e40000 {
478 compatible = "brcm,bcm6328-pcie";
479 reg = <0x10e40000 0x10000>;
480 #address-cells = <3>;
484 bus-range = <0x00 0x01>;
485 ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>;
486 linux,pci-probe-only = <1>;
488 interrupt-parent = <&periph_intc>;
489 interrupts = <BCM6328_IRQ_PCIE_RC>;
491 clocks = <&periph_clk BCM6328_CLK_PCIE>;
492 clock-names = "pcie";
494 resets = <&periph_rst BCM6328_RST_PCIE>,
495 <&periph_rst BCM6328_RST_PCIE_EXT>,
496 <&periph_rst BCM6328_RST_PCIE_CORE>,
497 <&periph_rst BCM6328_RST_PCIE_HARD>;
498 reset-names = "pcie",
503 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_PCIE>;
505 brcm,serdes = <&serdes_cntl>;