1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/clock/bcm6318-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6318-interrupt-controller.h>
9 #include <dt-bindings/reset/bcm6318-reset.h>
10 #include <dt-bindings/soc/bcm6318-pm.h>
15 compatible = "brcm,bcm6318";
24 bootargs = "earlycon";
25 stdout-path = "serial0:115200n8";
29 periph_osc: periph-osc {
30 compatible = "fixed-clock";
34 clock-frequency = <50000000>;
35 clock-output-names = "periph";
38 hsspi_osc: hsspi-osc {
39 compatible = "fixed-clock";
43 clock-frequency = <250000000>;
44 clock-output-names = "hsspi_osc";
51 mips-hpt-frequency = <166500000>;
54 compatible = "brcm,bmips3300", "mips,mips4Kc";
60 cpu_intc: interrupt-controller {
62 compatible = "mti,cpu-interrupt-controller";
65 #interrupt-cells = <1>;
69 device_type = "memory";
77 compatible = "simple-bus";
80 periph_clk: clock-controller@10000004 {
81 compatible = "brcm,bcm6318-clocks";
82 reg = <0x10000004 0x4>;
86 ubus_clk: clock-controller@10000008 {
87 compatible = "brcm,bcm6318-ubus-clocks";
88 reg = <0x10000008 0x4>;
92 periph_rst: reset-controller@10000010 {
93 compatible = "brcm,bcm6345-reset";
94 reg = <0x10000010 0x4>;
98 ext_intc: interrupt-controller@10000018 {
100 compatible = "brcm,bcm6318-ext-intc";
101 reg = <0x10000018 0x4>;
103 interrupt-controller;
104 #interrupt-cells = <2>;
106 interrupts = <BCM6318_IRQ_EXT0>,
112 periph_intc: interrupt-controller@10000020 {
113 #address-cells = <1>;
114 compatible = "brcm,bcm6345-l1-intc";
115 reg = <0x10000020 0x20>;
117 interrupt-controller;
118 #interrupt-cells = <1>;
120 interrupt-parent = <&cpu_intc>;
121 interrupts = <2>, <3>;
124 wdt: watchdog@10000068 {
125 compatible = "brcm,bcm7038-wdt";
126 reg = <0x10000068 0xc>;
128 clocks = <&periph_osc>;
133 pll_cntl: syscon@10000074 {
134 compatible = "syscon", "simple-mfd";
135 reg = <0x10000074 0x4>;
139 compatible = "syscon-reboot";
145 gpio_cntl: syscon@10000080 {
146 compatible = "brcm,bcm6318-gpio-sysctl",
147 "syscon", "simple-mfd";
148 reg = <0x10000080 0x80>;
149 ranges = <0 0x10000080 0x80>;
153 compatible = "brcm,bcm6318-gpio";
154 reg-names = "dirout", "dat";
155 reg = <0x0 0x8>, <0x8 0x8>;
158 gpio-ranges = <&pinctrl 0 0 50>;
162 pinctrl: pinctrl@18 {
163 compatible = "brcm,bcm6318-pinctrl";
164 reg = <0x18 0x10>, <0x54 0x18>;
166 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
167 function = "ephy0_spd_led";
171 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
172 function = "ephy1_spd_led";
176 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
177 function = "ephy2_spd_led";
181 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
182 function = "ephy3_spd_led";
186 pinctrl_ephy0_act_led: ephy0_act_led-pins {
187 function = "ephy0_act_led";
191 pinctrl_ephy1_act_led: ephy1_act_led-pins {
192 function = "ephy1_act_led";
196 pinctrl_ephy2_act_led: ephy2_act_led-pins {
197 function = "ephy2_act_led";
201 pinctrl_ephy3_act_led: ephy3_act_led-pins {
202 function = "ephy3_act_led";
206 pinctrl_serial_led: serial_led-pins {
207 pinctrl_serial_led_data: serial_led_data-pins {
208 function = "serial_led_data";
212 pinctrl_serial_led_clk: serial_led_clk-pins {
213 function = "serial_led_clk";
218 pinctrl_inet_act_led: inet_act_led-pins {
219 function = "inet_act_led";
223 pinctrl_inet_fail_led: inet_fail_led-pins {
224 function = "inet_fail_led";
228 pinctrl_dsl_led: dsl_led-pins {
229 function = "dsl_led";
233 pinctrl_post_fail_led: post_fail_led-pins {
234 function = "post_fail_led";
238 pinctrl_wlan_wps_led: wlan_wps_led-pins {
239 function = "wlan_wps_led";
243 pinctrl_usb_pwron: usb_pwron-pins {
244 function = "usb_pwron";
248 pinctrl_usb_device_led: usb_device_led-pins {
249 function = "usb_device_led";
253 pinctrl_usb_active: usb_active-pins {
254 function = "usb_active";
260 uart0: serial@10000100 {
261 compatible = "brcm,bcm6345-uart";
262 reg = <0x10000100 0x18>;
264 interrupt-parent = <&periph_intc>;
265 interrupts = <BCM6318_IRQ_UART0>;
267 clocks = <&periph_osc>;
268 clock-names = "periph";
273 leds: led-controller@10000200 {
274 #address-cells = <1>;
276 compatible = "brcm,bcm6328-leds";
277 reg = <0x10000200 0x24>;
282 periph_pwr: power-controller@100008e8 {
283 compatible = "brcm,bcm6318-power-controller";
284 reg = <0x100008e8 0x4>;
286 #power-domain-cells = <1>;
289 hsspi: spi@10003000 {
290 #address-cells = <1>;
292 compatible = "brcm,bcm6328-hsspi";
293 reg = <0x10003000 0x600>;
295 interrupt-parent = <&periph_intc>;
296 interrupts = <BCM6318_IRQ_HSSPI>;
298 clocks = <&periph_clk BCM6318_CLK_HSSPI>,
300 clock-names = "hsspi",
303 resets = <&periph_rst BCM6318_RST_SPI>;
309 compatible = "brcm,bcm6318-ehci", "generic-ehci";
310 reg = <0x10005000 0x100>;
314 interrupt-parent = <&periph_intc>;
315 interrupts = <BCM6318_IRQ_EHCI>;
324 compatible = "brcm,bcm6318-ohci", "generic-ohci";
325 reg = <0x10005100 0x100>;
329 interrupt-parent = <&periph_intc>;
330 interrupts = <BCM6318_IRQ_OHCI>;
338 usbh: usb-phy@10005200 {
339 compatible = "brcm,bcm6318-usbh-phy";
340 reg = <0x10005200 0x38>;
344 clocks = <&periph_clk BCM6318_CLK_USBD>,
345 <&ubus_clk BCM6318_UCLK_USB>;
346 clock-names = "usbh",
349 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_USB>;
350 resets = <&periph_rst BCM6318_RST_USBH>;
355 pcie: pcie@10010000 {
356 compatible = "brcm,bcm6318-pcie";
357 reg = <0x10010000 0x10000>;
358 #address-cells = <3>;
362 bus-range = <0x00 0x01>;
363 ranges = <0x2000000 0 0x10200000 0x10200000 0 0x100000>;
364 linux,pci-probe-only = <1>;
366 interrupt-parent = <&periph_intc>;
367 interrupts = <BCM6318_IRQ_PCIE_RC>;
369 clocks = <&periph_clk BCM6318_CLK_PCIE>,
370 <&periph_clk BCM6318_CLK_PCIE25>,
371 <&ubus_clk BCM6318_UCLK_PCIE>;
372 clock-names = "pcie",
376 resets = <&periph_rst BCM6318_RST_PCIE>,
377 <&periph_rst BCM6318_RST_PCIE_EXT>,
378 <&periph_rst BCM6318_RST_PCIE_CORE>,
379 <&periph_rst BCM6318_RST_PCIE_HARD>;
380 reset-names = "pcie",
385 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_PCIE>;
390 switch0: switch@10080000 {
391 #address-cells = <1>;
393 compatible = "brcm,bcm6328-switch";
394 reg = <0x10080000 0x8000>;
398 #address-cells = <1>;
404 phy-mode = "internal";
405 ethernet = <ðernet>;
415 mdio: mdio@100800b0 {
416 #address-cells = <1>;
418 compatible = "brcm,bcm6368-mdio-mux";
419 reg = <0x100800b0 0x8>;
422 #address-cells = <1>;
426 phy1: ethernet-phy@1 {
427 compatible = "ethernet-phy-ieee802.3-c22";
431 phy2: ethernet-phy@2 {
432 compatible = "ethernet-phy-ieee802.3-c22";
436 phy3: ethernet-phy@3 {
437 compatible = "ethernet-phy-ieee802.3-c22";
441 phy4: ethernet-phy@4 {
442 compatible = "ethernet-phy-ieee802.3-c22";
448 #address-cells = <1>;
454 ethernet: ethernet@10088000 {
455 compatible = "brcm,bcm6318-enetsw";
456 reg = <0x10088000 0x80>,
463 interrupt-parent = <&periph_intc>;
464 interrupts = <BCM6318_IRQ_ENETSW_RX_DMA0>,
465 <BCM6318_IRQ_ENETSW_TX_DMA0>;
466 interrupt-names = "rx",
469 clocks = <&periph_clk BCM6318_CLK_ROBOSW250>,
470 <&periph_clk BCM6318_CLK_ROBOSW025>,
471 <&ubus_clk BCM6318_UCLK_ROBOSW>;
473 resets = <&periph_rst BCM6318_RST_ENETSW>,
474 <&periph_rst BCM6318_RST_EPHY>;
476 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_EPHY0>,
477 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY1>,
478 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY2>,
479 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY3>;