606e096d2e63a2e24837cf321ee871cfaf670b2f
[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 <0x08000000 0x10000>;
288 reg-names = "pci",
289 "pci-io";
290 #address-cells = <3>;
291 #size-cells = <2>;
292
293 device_type = "pci";
294 bus-range = <0x00 0x01>;
295 ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>;
296 linux,pci-probe-only = <1>;
297
298 interrupt-parent = <&periph_intc>;
299 interrupts = <BCM6358_IRQ_MPI>;
300
301 resets = <&periph_rst BCM6358_RST_MPI>;
302 reset-names = "pci";
303
304 brcm,remap;
305
306 status = "disabled";
307 };
308
309 ehci: usb@fffe1300 {
310 compatible = "brcm,bcm6358-ehci", "generic-ehci";
311 reg = <0xfffe1300 0x100>;
312 big-endian;
313 spurious-oc;
314
315 interrupt-parent = <&periph_intc>;
316 interrupts = <BCM6358_IRQ_EHCI>;
317
318 phys = <&usbh 0>;
319 phy-names = "usb";
320
321 status = "disabled";
322 };
323
324 ohci: usb@fffe1400 {
325 compatible = "brcm,bcm6358-ohci", "generic-ohci";
326 reg = <0xfffe1400 0x100>;
327 big-endian;
328 no-big-frame-no;
329
330 interrupt-parent = <&periph_intc>;
331 interrupts = <BCM6358_IRQ_OHCI>;
332
333 phys = <&usbh 0>;
334 phy-names = "usb";
335
336 status = "disabled";
337 };
338
339 usbh: usb-phy@fffe1500 {
340 compatible = "brcm,bcm6358-usbh-phy";
341 reg = <0xfffe1500 0x38>;
342
343 #phy-cells = <1>;
344
345 resets = <&periph_rst BCM6358_RST_USBH>;
346
347 status = "disabled";
348 };
349
350 ethernet0: ethernet@fffe4000 {
351 compatible = "brcm,bcm6358-emac";
352 reg = <0xfffe4000 0x2dc>;
353
354 clocks = <&periph_clk BCM6358_CLK_ENET0>;
355
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",
361 "rx",
362 "tx";
363
364 brcm,iudma = <&iudma>;
365
366 dma-rx = <0>;
367 dma-tx = <1>;
368
369 status = "disabled";
370
371 mdio0: mdio {
372 #address-cells = <1>;
373 #size-cells = <0>;
374 };
375 };
376
377 ethernet1: ethernet@fffe4800 {
378 compatible = "brcm,bcm6358-emac";
379 reg = <0xfffe4800 0x2dc>;
380
381 clocks = <&periph_clk BCM6358_CLK_ENET1>;
382
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",
388 "rx",
389 "tx";
390
391 brcm,iudma = <&iudma>;
392 brcm,external-mii;
393
394 dma-rx = <2>;
395 dma-tx = <3>;
396
397 status = "disabled";
398
399 mdio1: mdio {
400 #address-cells = <1>;
401 #size-cells = <0>;
402 };
403 };
404
405 iudma: dma@fffe5000 {
406 #address-cells = <1>;
407 #size-cells = <1>;
408 compatible = "brcm,bcm6358-iudma";
409 reg = <0xfffe5000 0x24>,
410 <0xfffe5100 0x80>,
411 <0xfffe5200 0x80>;
412 reg-names = "dma",
413 "dma-channels",
414 "dma-sram";
415
416 dma-channels = <8>;
417
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>;
422
423 resets = <&periph_rst BCM6358_RST_ENET>,
424 <&periph_rst BCM6358_RST_EPHY>;
425
426 status = "disabled";
427 };
428 };
429 };