1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/clock/bcm6358-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6358-interrupt-controller.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/reset/bcm6358-reset.h>
16 compatible = "brcm,bcm6358";
27 bootargs = "earlycon";
28 stdout-path = "serial0:115200n8";
32 periph_osc: periph-osc {
33 compatible = "fixed-clock";
37 clock-frequency = <50000000>;
38 clock-output-names = "periph";
45 mips-hpt-frequency = <150000000>;
48 compatible = "brcm,bmips4350", "mips,mips4Kc";
54 compatible = "brcm,bmips4350", "mips,mips4Kc";
60 cpu_intc: interrupt-controller {
62 compatible = "mti,cpu-interrupt-controller";
65 #interrupt-cells = <1>;
69 device_type = "memory";
73 pflash: nor@1e000000 {
76 compatible = "cfi-flash";
77 reg = <0x1e000000 0x2000000>;
87 compatible = "simple-bus";
90 periph_clk: clock-controller@fffe0004 {
91 compatible = "brcm,bcm6358-clocks";
92 reg = <0xfffe0004 0x4>;
96 pll_cntl: syscon@fffe0008 {
97 compatible = "syscon", "simple-mfd";
98 reg = <0xfffe0008 0x4>;
102 compatible = "syscon-reboot";
108 periph_intc: interrupt-controller@fffe000c {
109 #address-cells = <1>;
110 compatible = "brcm,bcm6345-l1-intc";
111 reg = <0xfffe000c 0x8>,
114 interrupt-controller;
115 #interrupt-cells = <1>;
117 interrupt-parent = <&cpu_intc>;
118 interrupts = <2>, <3>;
121 ext_intc0: interrupt-controller@fffe0014 {
122 #address-cells = <1>;
123 compatible = "brcm,bcm6345-ext-intc";
124 reg = <0xfffe0014 0x4>;
126 interrupt-controller;
127 #interrupt-cells = <2>;
129 interrupt-parent = <&periph_intc>;
130 interrupts = <BCM6358_IRQ_EXT0>,
136 ext_intc1: interrupt-controller@fffe001c {
137 #address-cells = <1>;
138 compatible = "brcm,bcm6345-ext-intc";
139 reg = <0xfffe001c 0x4>;
141 interrupt-controller;
142 #interrupt-cells = <2>;
144 interrupt-parent = <&periph_intc>;
145 interrupts = <BCM6358_IRQ_EXT4>,
149 periph_rst: reset-controller@fffe0034 {
150 compatible = "brcm,bcm6345-reset";
151 reg = <0xfffe0034 0x4>;
155 wdt: watchdog@fffe005c {
156 compatible = "brcm,bcm7038-wdt";
157 reg = <0xfffe005c 0xc>;
159 clocks = <&periph_osc>;
164 gpio_cntl: syscon@fffe0080 {
165 #address-cells = <1>;
167 compatible = "brcm,bcm6358-gpio-sysctl",
168 "syscon", "simple-mfd";
169 reg = <0xfffe0080 0x50>;
170 ranges = <0 0xfffe0080 0x80>;
174 compatible = "brcm,bcm6358-gpio";
175 reg-names = "dirout", "dat";
176 reg = <0x0 0x8>, <0x8 0x8>;
179 gpio-ranges = <&pinctrl 0 0 40>;
183 pinctrl: pinctrl@18 {
184 compatible = "brcm,bcm6358-pinctrl";
187 pinctrl_ebi_cs: ebi_cs-pins {
189 groups = "ebi_cs_grp";
192 pinctrl_uart1: uart1-pins {
194 groups = "uart1_grp";
197 pinctrl_serial_led: serial_led-pins {
198 function = "serial_led";
199 groups = "serial_led_grp";
202 pinctrl_legacy_led: legacy_led-pins {
203 function = "legacy_led";
204 groups = "legacy_led_grp";
207 pinctrl_led: led-pins {
212 pinctrl_spi_cs_23: spi_cs-pins {
214 groups = "spi_cs_grp";
217 pinctrl_utopia: utopia-pins {
219 groups = "utopia_grp";
222 pinctrl_pwm_syn_clk: pwm_syn_clk-pins {
223 function = "pwm_syn_clk";
224 groups = "pwm_syn_clk_grp";
227 pinctrl_sys_irq: sys_irq-pins {
228 function = "sys_irq";
229 groups = "sys_irq_grp";
234 leds: led-controller@fffe00d0 {
235 #address-cells = <1>;
237 compatible = "brcm,bcm6358-leds";
238 reg = <0xfffe00d0 0x8>;
243 uart0: serial@fffe0100 {
244 compatible = "brcm,bcm6345-uart";
245 reg = <0xfffe0100 0x18>;
247 interrupt-parent = <&periph_intc>;
248 interrupts = <BCM6358_IRQ_UART0>;
250 clocks = <&periph_osc>;
251 clock-names = "periph";
256 uart1: serial@fffe0120 {
257 compatible = "brcm,bcm6345-uart";
258 reg = <0xfffe0120 0x18>;
260 interrupt-parent = <&periph_intc>;
261 interrupts = <BCM6358_IRQ_UART1>;
263 clocks = <&periph_osc>;
264 clock-names = "periph";
269 lsspi: spi@fffe0800 {
270 #address-cells = <1>;
272 compatible = "brcm,bcm6358-spi";
273 reg = <0xfffe0800 0x70c>;
275 interrupt-parent = <&periph_intc>;
276 interrupts = <BCM6358_IRQ_SPI>;
278 clocks = <&periph_clk BCM6358_CLK_SPI>;
281 resets = <&periph_rst BCM6358_RST_SPI>;
287 compatible = "brcm,bcm6348-pci";
288 reg = <0xfffe1000 0x200>;
289 #address-cells = <3>;
293 bus-range = <0x00 0x01>;
294 ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>,
295 <0x1000000 0 0x08000000 0x08000000 0 0x0010000>;
296 linux,pci-probe-only = <1>;
298 interrupt-parent = <&periph_intc>;
299 interrupts = <BCM6358_IRQ_MPI>;
301 resets = <&periph_rst BCM6358_RST_MPI>;
310 compatible = "brcm,bcm6358-ehci", "generic-ehci";
311 reg = <0xfffe1300 0x100>;
315 interrupt-parent = <&periph_intc>;
316 interrupts = <BCM6358_IRQ_EHCI>;
325 compatible = "brcm,bcm6358-ohci", "generic-ohci";
326 reg = <0xfffe1400 0x100>;
330 interrupt-parent = <&periph_intc>;
331 interrupts = <BCM6358_IRQ_OHCI>;
339 usbh: usb-phy@fffe1500 {
340 compatible = "brcm,bcm6358-usbh-phy";
341 reg = <0xfffe1500 0x38>;
345 resets = <&periph_rst BCM6358_RST_USBH>;
350 ethernet0: ethernet@fffe4000 {
351 compatible = "brcm,bcm6358-emac";
352 reg = <0xfffe4000 0x2dc>;
354 clocks = <&periph_clk BCM6358_CLK_ENET0>;
356 interrupt-parent = <&periph_intc>;
357 interrupts = <BCM6358_IRQ_EMAC0>,
358 <BCM6358_IRQ_EMAC0_RX_DMA>,
359 <BCM6358_IRQ_EMAC0_TX_DMA>;
360 interrupt-names = "emac",
364 brcm,iudma = <&iudma>;
372 #address-cells = <1>;
377 ethernet1: ethernet@fffe4800 {
378 compatible = "brcm,bcm6358-emac";
379 reg = <0xfffe4800 0x2dc>;
381 clocks = <&periph_clk BCM6358_CLK_ENET1>;
383 interrupt-parent = <&periph_intc>;
384 interrupts = <BCM6358_IRQ_EMAC1>,
385 <BCM6358_IRQ_EMAC1_RX_DMA>,
386 <BCM6358_IRQ_EMAC1_TX_DMA>;
387 interrupt-names = "emac",
391 brcm,iudma = <&iudma>;
400 #address-cells = <1>;
405 iudma: dma@fffe5000 {
406 #address-cells = <1>;
408 compatible = "brcm,bcm6358-iudma";
409 reg = <0xfffe5000 0x24>,
418 clocks = <&periph_clk BCM6358_CLK_EMUSB>,
419 <&periph_clk BCM6358_CLK_USBSU>,
420 <&periph_clk BCM6358_CLK_EPHY>,
421 <&periph_clk BCM6358_CLK_ENET>;
423 resets = <&periph_rst BCM6358_RST_ENET>,
424 <&periph_rst BCM6358_RST_EPHY>;