eb8ca0c10d6ca96ba1b69b2e5754801b1cb6b59e
[openwrt/staging/dedeckeh.git] / target / linux / bmips / dts / bcm6358.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
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/reset/bcm6358-reset.h>
10
11 / {
12 #address-cells = <1>;
13 #size-cells = <1>;
14 compatible = "brcm,bcm6358";
15
16 aliases {
17 pflash = &pflash;
18 pinctrl = &pinctrl;
19 serial0 = &uart0;
20 serial1 = &uart1;
21 spi0 = &lsspi;
22 };
23
24 chosen {
25 bootargs = "earlycon";
26 stdout-path = "serial0:115200n8";
27 };
28
29 clocks {
30 periph_osc: periph-osc {
31 compatible = "fixed-clock";
32
33 #clock-cells = <0>;
34
35 clock-frequency = <50000000>;
36 clock-output-names = "periph";
37 };
38 };
39
40 cpus {
41 #address-cells = <1>;
42 #size-cells = <0>;
43 mips-hpt-frequency = <150000000>;
44
45 cpu@0 {
46 compatible = "brcm,bmips4350", "mips,mips4Kc";
47 device_type = "cpu";
48 reg = <0>;
49 };
50
51 cpu@1 {
52 compatible = "brcm,bmips4350", "mips,mips4Kc";
53 device_type = "cpu";
54 reg = <1>;
55 };
56 };
57
58 cpu_intc: interrupt-controller {
59 #address-cells = <0>;
60 compatible = "mti,cpu-interrupt-controller";
61
62 interrupt-controller;
63 #interrupt-cells = <1>;
64 };
65
66 memory@0 {
67 device_type = "memory";
68 reg = <0 0>;
69 };
70
71 pflash: nor@1e000000 {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 compatible = "cfi-flash";
75 reg = <0x1e000000 0x2000000>;
76 bank-width = <2>;
77
78 status = "disabled";
79 };
80
81 ubus {
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 compatible = "simple-bus";
86 ranges;
87
88 periph_clk: clock-controller@fffe0004 {
89 compatible = "brcm,bcm6358-clocks";
90 reg = <0xfffe0004 0x4>;
91 #clock-cells = <1>;
92 };
93
94 pll_cntl: syscon@fffe0008 {
95 compatible = "syscon", "simple-mfd";
96 reg = <0xfffe0008 0x4>;
97 native-endian;
98
99 syscon-reboot {
100 compatible = "syscon-reboot";
101 offset = <0x0>;
102 mask = <0x1>;
103 };
104 };
105
106 periph_intc: interrupt-controller@fffe000c {
107 #address-cells = <1>;
108 compatible = "brcm,bcm6345-l1-intc";
109 reg = <0xfffe000c 0x8>,
110 <0xfffe0038 0x8>;
111
112 interrupt-controller;
113 #interrupt-cells = <1>;
114
115 interrupt-parent = <&cpu_intc>;
116 interrupts = <2>, <3>;
117 };
118
119 ext_intc0: interrupt-controller@fffe0014 {
120 #address-cells = <1>;
121 compatible = "brcm,bcm6345-ext-intc";
122 reg = <0xfffe0014 0x4>;
123
124 interrupt-controller;
125 #interrupt-cells = <2>;
126
127 interrupt-parent = <&periph_intc>;
128 interrupts = <BCM6358_IRQ_EXT0>,
129 <BCM6358_IRQ_EXT1>,
130 <BCM6358_IRQ_EXT2>,
131 <BCM6358_IRQ_EXT3>;
132 };
133
134 ext_intc1: interrupt-controller@fffe001c {
135 #address-cells = <1>;
136 compatible = "brcm,bcm6345-ext-intc";
137 reg = <0xfffe001c 0x4>;
138
139 interrupt-controller;
140 #interrupt-cells = <2>;
141
142 interrupt-parent = <&periph_intc>;
143 interrupts = <BCM6358_IRQ_EXT4>,
144 <BCM6358_IRQ_EXT5>;
145 };
146
147 periph_rst: reset-controller@fffe0034 {
148 compatible = "brcm,bcm6345-reset";
149 reg = <0xfffe0034 0x4>;
150 #reset-cells = <1>;
151 };
152
153 wdt: watchdog@fffe005c {
154 compatible = "brcm,bcm7038-wdt";
155 reg = <0xfffe005c 0xc>;
156
157 clocks = <&periph_osc>;
158
159 timeout-sec = <30>;
160 };
161
162 gpio_cntl: syscon@fffe0080 {
163 #address-cells = <1>;
164 #size-cells = <1>;
165 compatible = "brcm,bcm6358-gpio-sysctl",
166 "syscon", "simple-mfd";
167 reg = <0xfffe0080 0x50>;
168 ranges = <0 0xfffe0080 0x80>;
169 native-endian;
170
171 gpio: gpio@0 {
172 compatible = "brcm,bcm6358-gpio";
173 reg-names = "dirout", "dat";
174 reg = <0x0 0x8>, <0x8 0x8>;
175
176 gpio-controller;
177 gpio-ranges = <&pinctrl 0 0 40>;
178 #gpio-cells = <2>;
179 };
180
181 pinctrl: pinctrl@18 {
182 compatible = "brcm,bcm6358-pinctrl";
183 reg = <0x18 0x4>;
184
185 pinctrl_ebi_cs: ebi_cs-pins {
186 function = "ebi_cs";
187 groups = "ebi_cs_grp";
188 };
189
190 pinctrl_uart1: uart1-pins {
191 function = "uart1";
192 groups = "uart1_grp";
193 };
194
195 pinctrl_serial_led: serial_led-pins {
196 function = "serial_led";
197 groups = "serial_led_grp";
198 };
199
200 pinctrl_legacy_led: legacy_led-pins {
201 function = "legacy_led";
202 groups = "legacy_led_grp";
203 };
204
205 pinctrl_led: led-pins {
206 function = "led";
207 groups = "led_grp";
208 };
209
210 pinctrl_spi_cs_23: spi_cs-pins {
211 function = "spi_cs";
212 groups = "spi_cs_grp";
213 };
214
215 pinctrl_utopia: utopia-pins {
216 function = "utopia";
217 groups = "utopia_grp";
218 };
219
220 pinctrl_pwm_syn_clk: pwm_syn_clk-pins {
221 function = "pwm_syn_clk";
222 groups = "pwm_syn_clk_grp";
223 };
224
225 pinctrl_sys_irq: sys_irq-pins {
226 function = "sys_irq";
227 groups = "sys_irq_grp";
228 };
229 };
230 };
231
232 leds: led-controller@fffe00d0 {
233 #address-cells = <1>;
234 #size-cells = <0>;
235 compatible = "brcm,bcm6358-leds";
236 reg = <0xfffe00d0 0x8>;
237
238 status = "disabled";
239 };
240
241 uart0: serial@fffe0100 {
242 compatible = "brcm,bcm6345-uart";
243 reg = <0xfffe0100 0x18>;
244
245 interrupt-parent = <&periph_intc>;
246 interrupts = <BCM6358_IRQ_UART0>;
247
248 clocks = <&periph_osc>;
249 clock-names = "periph";
250
251 status = "disabled";
252 };
253
254 uart1: serial@fffe0120 {
255 compatible = "brcm,bcm6345-uart";
256 reg = <0xfffe0120 0x18>;
257
258 interrupt-parent = <&periph_intc>;
259 interrupts = <BCM6358_IRQ_UART1>;
260
261 clocks = <&periph_osc>;
262 clock-names = "periph";
263
264 status = "disabled";
265 };
266
267 lsspi: spi@fffe0800 {
268 #address-cells = <1>;
269 #size-cells = <0>;
270 compatible = "brcm,bcm6358-spi";
271 reg = <0xfffe0800 0x70c>;
272
273 interrupt-parent = <&periph_intc>;
274 interrupts = <BCM6358_IRQ_SPI>;
275
276 clocks = <&periph_clk BCM6358_CLK_SPI>;
277 clock-names = "spi";
278
279 resets = <&periph_rst BCM6358_RST_SPI>;
280
281 status = "disabled";
282 };
283
284 pci: pci@fffe1000 {
285 compatible = "brcm,bcm6348-pci";
286 reg = <0xfffe1000 0x200>;
287 #address-cells = <3>;
288 #size-cells = <2>;
289
290 device_type = "pci";
291 bus-range = <0x00 0x01>;
292 ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>,
293 <0x1000000 0 0x08000000 0x08000000 0 0x0010000>;
294 linux,pci-probe-only = <1>;
295
296 interrupt-parent = <&periph_intc>;
297 interrupts = <BCM6358_IRQ_MPI>;
298
299 resets = <&periph_rst BCM6358_RST_MPI>;
300 reset-names = "pci";
301
302 brcm,remap;
303
304 status = "disabled";
305 };
306
307 ehci: usb@fffe1300 {
308 compatible = "brcm,bcm6358-ehci", "generic-ehci";
309 reg = <0xfffe1300 0x100>;
310 big-endian;
311 spurious-oc;
312
313 interrupt-parent = <&periph_intc>;
314 interrupts = <BCM6358_IRQ_EHCI>;
315
316 phys = <&usbh 0>;
317 phy-names = "usb";
318
319 status = "disabled";
320 };
321
322 ohci: usb@fffe1400 {
323 compatible = "brcm,bcm6358-ohci", "generic-ohci";
324 reg = <0xfffe1400 0x100>;
325 big-endian;
326 no-big-frame-no;
327
328 interrupt-parent = <&periph_intc>;
329 interrupts = <BCM6358_IRQ_OHCI>;
330
331 phys = <&usbh 0>;
332 phy-names = "usb";
333
334 status = "disabled";
335 };
336
337 usbh: usb-phy@fffe1500 {
338 compatible = "brcm,bcm6358-usbh-phy";
339 reg = <0xfffe1500 0x38>;
340
341 #phy-cells = <1>;
342
343 resets = <&periph_rst BCM6358_RST_USBH>;
344
345 status = "disabled";
346 };
347
348 ethernet0: ethernet@fffe4000 {
349 compatible = "brcm,bcm6358-emac";
350 reg = <0xfffe4000 0x2dc>;
351
352 clocks = <&periph_clk BCM6358_CLK_ENET0>;
353
354 interrupt-parent = <&periph_intc>;
355 interrupts = <BCM6358_IRQ_EMAC0>,
356 <BCM6358_IRQ_EMAC0_RX_DMA>,
357 <BCM6358_IRQ_EMAC0_TX_DMA>;
358 interrupt-names = "emac",
359 "rx",
360 "tx";
361
362 brcm,iudma = <&iudma>;
363
364 dma-rx = <0>;
365 dma-tx = <1>;
366
367 status = "disabled";
368
369 mdio0: mdio {
370 #address-cells = <1>;
371 #size-cells = <0>;
372 };
373 };
374
375 ethernet1: ethernet@fffe4800 {
376 compatible = "brcm,bcm6358-emac";
377 reg = <0xfffe4800 0x2dc>;
378
379 clocks = <&periph_clk BCM6358_CLK_ENET1>;
380
381 interrupt-parent = <&periph_intc>;
382 interrupts = <BCM6358_IRQ_EMAC1>,
383 <BCM6358_IRQ_EMAC1_RX_DMA>,
384 <BCM6358_IRQ_EMAC1_TX_DMA>;
385 interrupt-names = "emac",
386 "rx",
387 "tx";
388
389 brcm,iudma = <&iudma>;
390 brcm,external-mii;
391
392 dma-rx = <2>;
393 dma-tx = <3>;
394
395 status = "disabled";
396
397 mdio1: mdio {
398 #address-cells = <1>;
399 #size-cells = <0>;
400 };
401 };
402
403 iudma: dma@fffe5000 {
404 #address-cells = <1>;
405 #size-cells = <1>;
406 compatible = "brcm,bcm6358-iudma";
407 reg = <0xfffe5000 0x24>,
408 <0xfffe5100 0x80>,
409 <0xfffe5200 0x80>;
410 reg-names = "dma",
411 "dma-channels",
412 "dma-sram";
413
414 dma-channels = <8>;
415
416 clocks = <&periph_clk BCM6358_CLK_EMUSB>,
417 <&periph_clk BCM6358_CLK_USBSU>,
418 <&periph_clk BCM6358_CLK_EPHY>,
419 <&periph_clk BCM6358_CLK_ENET>;
420
421 resets = <&periph_rst BCM6358_RST_ENET>,
422 <&periph_rst BCM6358_RST_EPHY>;
423
424 status = "disabled";
425 };
426 };
427 };