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: syscon@10000080 {
146 compatible = "syscon", "simple-mfd";
147 reg = <0x10000080 0x80>;
150 pinctrl: pin-controller {
151 compatible = "brcm,bcm6318-pinctrl";
156 interrupts-extended = <&ext_intc 0 0>,
158 interrupt-names = "gpio33",
161 pinctrl_ephy0_spd_led: ephy0_spd_led {
162 function = "ephy0_spd_led";
166 pinctrl_ephy1_spd_led: ephy1_spd_led {
167 function = "ephy1_spd_led";
171 pinctrl_ephy2_spd_led: ephy2_spd_led {
172 function = "ephy2_spd_led";
176 pinctrl_ephy3_spd_led: ephy3_spd_led {
177 function = "ephy3_spd_led";
181 pinctrl_ephy0_act_led: ephy0_act_led {
182 function = "ephy0_act_led";
186 pinctrl_ephy1_act_led: ephy1_act_led {
187 function = "ephy1_act_led";
191 pinctrl_ephy2_act_led: ephy2_act_led {
192 function = "ephy2_act_led";
196 pinctrl_ephy3_act_led: ephy3_act_led {
197 function = "ephy3_act_led";
201 pinctrl_serial_led: serial_led {
202 pinctrl_serial_led_data: serial_led_data {
203 function = "serial_led_data";
207 pinctrl_serial_led_clk: serial_led_clk {
208 function = "serial_led_clk";
213 pinctrl_inet_act_led: inet_act_led {
214 function = "inet_act_led";
218 pinctrl_inet_fail_led: inet_fail_led {
219 function = "inet_fail_led";
223 pinctrl_dsl_led: dsl_led {
224 function = "dsl_led";
228 pinctrl_post_fail_led: post_fail_led {
229 function = "post_fail_led";
233 pinctrl_wlan_wps_led: wlan_wps_led {
234 function = "wlan_wps_led";
238 pinctrl_usb_pwron: usb_pwron {
239 function = "usb_pwron";
243 pinctrl_usb_device_led: usb_device_led {
244 function = "usb_device_led";
248 pinctrl_usb_active: usb_active {
249 function = "usb_active";
255 uart0: serial@10000100 {
256 compatible = "brcm,bcm6345-uart";
257 reg = <0x10000100 0x18>;
259 interrupt-parent = <&periph_intc>;
260 interrupts = <BCM6318_IRQ_UART0>;
262 clocks = <&periph_osc>;
263 clock-names = "periph";
268 leds: led-controller@10000200 {
269 #address-cells = <1>;
271 compatible = "brcm,bcm6328-leds";
272 reg = <0x10000200 0x24>;
277 periph_pwr: power-controller@100008e8 {
278 compatible = "brcm,bcm6318-power-controller";
279 reg = <0x100008e8 0x4>;
281 #power-domain-cells = <1>;
284 hsspi: spi@10003000 {
285 compatible = "brcm,bcm6328-hsspi";
286 reg = <0x10003000 0x600>;
287 #address-cells = <1>;
290 interrupt-parent = <&periph_intc>;
291 interrupts = <BCM6318_IRQ_HSSPI>;
293 clocks = <&periph_clk BCM6318_CLK_HSSPI>,
295 clock-names = "hsspi",
298 resets = <&periph_rst BCM6318_RST_SPI>;
304 compatible = "brcm,bcm6318-ehci", "generic-ehci";
305 reg = <0x10005000 0x100>;
309 interrupt-parent = <&periph_intc>;
310 interrupts = <BCM6318_IRQ_EHCI>;
319 compatible = "brcm,bcm6318-ohci", "generic-ohci";
320 reg = <0x10005100 0x100>;
324 interrupt-parent = <&periph_intc>;
325 interrupts = <BCM6318_IRQ_OHCI>;
333 usbh: usb-phy@10005200 {
334 compatible = "brcm,bcm6318-usbh-phy";
335 reg = <0x10005200 0x38>;
339 clocks = <&periph_clk BCM6318_CLK_USBD>,
340 <&ubus_clk BCM6318_UCLK_USB>;
341 clock-names = "usbh",
344 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_USB>;
345 resets = <&periph_rst BCM6318_RST_USBH>;