Revert "bmips: add missing switch cpu label"
[openwrt/staging/noltari.git] / target / linux / bmips / dts / bcm6328.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
5 #include <dt-bindings/clock/bcm6328-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h>
9 #include <dt-bindings/reset/bcm6328-reset.h>
10 #include <dt-bindings/soc/bcm6328-pm.h>
11
12 / {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "brcm,bcm6328";
16
17 aliases {
18 nflash = &nflash;
19 pinctrl = &pinctrl;
20 serial0 = &uart0;
21 serial1 = &uart1;
22 spi1 = &hsspi;
23 };
24
25 chosen {
26 bootargs = "earlycon";
27 stdout-path = "serial0:115200n8";
28 };
29
30 clocks {
31 periph_osc: periph-osc {
32 compatible = "fixed-clock";
33
34 #clock-cells = <0>;
35
36 clock-frequency = <50000000>;
37 clock-output-names = "periph";
38 };
39
40 hsspi_osc: hsspi-osc {
41 compatible = "fixed-clock";
42
43 #clock-cells = <0>;
44
45 clock-frequency = <133333333>;
46 clock-output-names = "hsspi_osc";
47 };
48 };
49
50 cpus {
51 #address-cells = <1>;
52 #size-cells = <0>;
53 mips-hpt-frequency = <160000000>;
54
55 cpu@0 {
56 compatible = "brcm,bmips4350", "mips,mips4Kc";
57 device_type = "cpu";
58 reg = <0>;
59 };
60
61 cpu@1 {
62 compatible = "brcm,bmips4350", "mips,mips4Kc";
63 device_type = "cpu";
64 reg = <1>;
65 };
66 };
67
68 cpu_intc: interrupt-controller {
69 #address-cells = <0>;
70 compatible = "mti,cpu-interrupt-controller";
71
72 interrupt-controller;
73 #interrupt-cells = <1>;
74 };
75
76 memory@0 {
77 device_type = "memory";
78 reg = <0 0>;
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@10000004 {
89 compatible = "brcm,bcm6328-clocks";
90 reg = <0x10000004 0x4>;
91 #clock-cells = <1>;
92 };
93
94 periph_rst: reset-controller@10000010 {
95 compatible = "brcm,bcm6345-reset";
96 reg = <0x10000010 0x4>;
97 #reset-cells = <1>;
98 };
99
100 ext_intc: interrupt-controller@10000018 {
101 #address-cells = <1>;
102 compatible = "brcm,bcm6345-ext-intc";
103 reg = <0x10000018 0x4>;
104
105 interrupt-controller;
106 #interrupt-cells = <2>;
107
108 interrupts = <BCM6328_IRQ_EXTO>,
109 <BCM6328_IRQ_EXT1>,
110 <BCM6328_IRQ_EXT2>,
111 <BCM6328_IRQ_EXT3>;
112 };
113
114 periph_intc: interrupt-controller@10000020 {
115 #address-cells = <1>;
116 compatible = "brcm,bcm6345-l1-intc";
117 reg = <0x10000020 0x10>,
118 <0x10000030 0x10>;
119
120 interrupt-controller;
121 #interrupt-cells = <1>;
122
123 interrupt-parent = <&cpu_intc>;
124 interrupts = <2>, <3>;
125 };
126
127 wdt: watchdog@1000005c {
128 compatible = "brcm,bcm7038-wdt";
129 reg = <0x1000005c 0xc>;
130
131 clocks = <&periph_osc>;
132
133 timeout-sec = <30>;
134 };
135
136 pll_cntl: syscon@10000068 {
137 compatible = "syscon", "simple-mfd";
138 reg = <0x10000068 0x4>;
139 native-endian;
140
141 syscon-reboot {
142 compatible = "syscon-reboot";
143 offset = <0>;
144 mask = <0x1>;
145 };
146 };
147
148 gpio_cntl: syscon@10000080 {
149 compatible = "brcm,bcm6328-gpio-sysctl",
150 "syscon", "simple-mfd";
151 reg = <0x10000080 0x80>;
152 ranges = <0 0x10000080 0x80>;
153 native-endian;
154
155 gpio: gpio@0 {
156 compatible = "brcm,bcm6328-gpio";
157 reg-names = "dirout", "dat";
158 reg = <0x0 0x8>, <0x8 0x8>;
159
160 gpio-controller;
161 gpio-ranges = <&pinctrl 0 0 32>;
162 #gpio-cells = <2>;
163 };
164
165 pinctrl: pinctrl@18 {
166 compatible = "brcm,bcm6328-pinctrl";
167 reg = <0x18 0x10>;
168
169 pinctrl_serial_led: serial_led-pins {
170 pinctrl_serial_led_data: serial_led_data-pins {
171 function = "serial_led_data";
172 pins = "gpio6";
173 };
174
175 pinctrl_serial_led_clk: serial_led_clk-pins {
176 function = "serial_led_clk";
177 pins = "gpio7";
178 };
179 };
180
181 pinctrl_inet_act_led: inet_act_led-pins {
182 function = "inet_act_led";
183 pins = "gpio11";
184 };
185
186 pinctrl_pcie_clkreq: pcie_clkreq-pins {
187 function = "pcie_clkreq";
188 pins = "gpio16";
189 };
190
191 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
192 function = "led";
193 pins = "gpio17";
194 };
195
196 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
197 function = "led";
198 pins = "gpio18";
199 };
200
201 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
202 function = "led";
203 pins = "gpio19";
204 };
205
206 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
207 function = "led";
208 pins = "gpio20";
209 };
210
211 pinctrl_ephy0_act_led: ephy0_act_led-pins {
212 function = "ephy0_act_led";
213 pins = "gpio25";
214 };
215
216 pinctrl_ephy1_act_led: ephy1_act_led-pins {
217 function = "ephy1_act_led";
218 pins = "gpio26";
219 };
220
221 pinctrl_ephy2_act_led: ephy2_act_led-pins {
222 function = "ephy2_act_led";
223 pins = "gpio27";
224 };
225
226 pinctrl_ephy3_act_led: ephy3_act_led-pins {
227 function = "ephy3_act_led";
228 pins = "gpio28";
229 };
230
231 pinctrl_hsspi_cs1: hsspi_cs1-pins {
232 function = "hsspi_cs1";
233 pins = "hsspi_cs1";
234 };
235
236 pinctrl_usb_port1_device: usb_port1_device-pins {
237 function = "usb_device_port";
238 pins = "usb_port1";
239 };
240
241 pinctrl_usb_port1_host: usb_port1_host-pins {
242 function = "usb_host_port";
243 pins = "usb_port1";
244 };
245 };
246 };
247
248 uart0: serial@10000100 {
249 compatible = "brcm,bcm6345-uart";
250 reg = <0x10000100 0x18>;
251
252 interrupt-parent = <&periph_intc>;
253 interrupts = <BCM6328_IRQ_UART0>;
254
255 clocks = <&periph_osc>;
256 clock-names = "periph";
257
258 status = "disabled";
259 };
260
261 uart1: serial@10000120 {
262 compatible = "brcm,bcm6345-uart";
263 reg = <0x10000120 0x18>;
264
265 interrupt-parent = <&periph_intc>;
266 interrupts = <BCM6328_IRQ_UART1>;
267
268 clocks = <&periph_osc>;
269 clock-names = "periph";
270
271 status = "disabled";
272 };
273
274 nflash: nand@10000200 {
275 #address-cells = <1>;
276 #size-cells = <0>;
277 compatible = "brcm,nand-bcm6368",
278 "brcm,brcmnand-v2.2",
279 "brcm,brcmnand";
280 reg = <0x10000200 0x180>,
281 <0x10000400 0x200>,
282 <0x10000070 0x10>;
283 reg-names = "nand",
284 "nand-cache",
285 "nand-int-base";
286
287 interrupt-parent = <&periph_intc>;
288 interrupts = <BCM6328_IRQ_NAND>;
289
290 status = "disabled";
291 };
292
293 leds: led-controller@10000800 {
294 #address-cells = <1>;
295 #size-cells = <0>;
296 compatible = "brcm,bcm6328-leds";
297 reg = <0x10000800 0x24>;
298
299 status = "disabled";
300 };
301
302 hsspi: spi@10001000 {
303 #address-cells = <1>;
304 #size-cells = <0>;
305 compatible = "brcm,bcm6328-hsspi";
306 reg = <0x10001000 0x600>;
307
308 interrupt-parent = <&periph_intc>;
309 interrupts = <BCM6328_IRQ_HSSPI>;
310
311 clocks = <&periph_clk BCM6328_CLK_HSSPI>,
312 <&hsspi_osc>;
313 clock-names = "hsspi",
314 "pll";
315
316 resets = <&periph_rst BCM6328_RST_SPI>;
317
318 status = "disabled";
319 };
320
321 serdes_cntl: syscon@10001800 {
322 compatible = "syscon";
323 reg = <0x10001800 0x4>;
324 native-endian;
325 };
326
327 periph_pwr: power-controller@10001848 {
328 compatible = "brcm,bcm6328-power-controller";
329 reg = <0x10001848 0x4>;
330
331 #power-domain-cells = <1>;
332 };
333
334 ehci: usb@10002500 {
335 compatible = "brcm,bcm6328-ehci", "generic-ehci";
336 reg = <0x10002500 0x100>;
337 big-endian;
338 spurious-oc;
339
340 interrupt-parent = <&periph_intc>;
341 interrupts = <BCM6328_IRQ_EHCI>;
342
343 phys = <&usbh 0>;
344 phy-names = "usb";
345
346 status = "disabled";
347 };
348
349 ohci: usb@10002600 {
350 compatible = "brcm,bcm6328-ohci", "generic-ohci";
351 reg = <0x10002600 0x100>;
352 big-endian;
353 no-big-frame-no;
354
355 interrupt-parent = <&periph_intc>;
356 interrupts = <BCM6328_IRQ_OHCI>;
357
358 phys = <&usbh 0>;
359 phy-names = "usb";
360
361 status = "disabled";
362 };
363
364 usbh: usb-phy@10002700 {
365 compatible = "brcm,bcm6328-usbh-phy";
366 reg = <0x10002700 0x38>;
367
368 #phy-cells = <1>;
369
370 clocks = <&periph_clk BCM6328_CLK_USBH>;
371 clock-names = "usbh";
372
373 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_USBH>;
374 resets = <&periph_rst BCM6328_RST_USBH>;
375
376 status = "disabled";
377 };
378
379 ethernet: ethernet@1000d800 {
380 compatible = "brcm,bcm6328-enetsw";
381 reg = <0x1000d800 0x80>,
382 <0x1000da00 0x80>,
383 <0x1000dc00 0x80>;
384 reg-names = "dma",
385 "dma-channels",
386 "dma-sram";
387
388 interrupt-parent = <&periph_intc>;
389 interrupts = <BCM6328_IRQ_ENETSW_RX_DMA0>,
390 <BCM6328_IRQ_ENETSW_TX_DMA0>;
391 interrupt-names = "rx",
392 "tx";
393
394 clocks = <&periph_clk BCM6328_CLK_ROBOSW>;
395
396 resets = <&periph_rst BCM6328_RST_ENETSW>,
397 <&periph_rst BCM6328_RST_EPHY>;
398
399 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_ROBOSW>,
400 <&periph_pwr BCM6328_POWER_DOMAIN_EPHY>;
401
402 dma-rx = <0>;
403 dma-tx = <1>;
404
405 status = "disabled";
406 };
407
408 switch0: switch@10e00000 {
409 #address-cells = <1>;
410 #size-cells = <0>;
411 compatible = "brcm,bcm6328-switch";
412 reg = <0x10e00000 0x8000>;
413 big-endian;
414
415 ports {
416 #address-cells = <1>;
417 #size-cells = <0>;
418
419 port@8 {
420 reg = <8>;
421
422 phy-mode = "internal";
423 ethernet = <&ethernet>;
424
425 fixed-link {
426 speed = <1000>;
427 full-duplex;
428 };
429 };
430 };
431 };
432
433 mdio: mdio@10e000b0 {
434 #address-cells = <1>;
435 #size-cells = <0>;
436 compatible = "brcm,bcm6368-mdio-mux";
437 reg = <0x10e000b0 0x8>;
438
439 mdio_int: mdio@0 {
440 #address-cells = <1>;
441 #size-cells = <0>;
442 reg = <0>;
443
444 phy1: ethernet-phy@1 {
445 compatible = "ethernet-phy-ieee802.3-c22";
446 reg = <1>;
447 };
448
449 phy2: ethernet-phy@2 {
450 compatible = "ethernet-phy-ieee802.3-c22";
451 reg = <2>;
452 };
453
454 phy3: ethernet-phy@3 {
455 compatible = "ethernet-phy-ieee802.3-c22";
456 reg = <3>;
457 };
458
459 phy4: ethernet-phy@4 {
460 compatible = "ethernet-phy-ieee802.3-c22";
461 reg = <4>;
462 };
463 };
464
465 mdio_ext: mdio@1 {
466 #address-cells = <1>;
467 #size-cells = <0>;
468 reg = <1>;
469 };
470 };
471
472 pcie: pcie@10e40000 {
473 compatible = "brcm,bcm6328-pcie";
474 reg = <0x10e40000 0x10000>;
475 #address-cells = <3>;
476 #size-cells = <2>;
477
478 device_type = "pci";
479 bus-range = <0x00 0x01>;
480 ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>;
481 linux,pci-probe-only = <1>;
482
483 interrupt-parent = <&periph_intc>;
484 interrupts = <BCM6328_IRQ_PCIE_RC>;
485
486 clocks = <&periph_clk BCM6328_CLK_PCIE>;
487 clock-names = "pcie";
488
489 resets = <&periph_rst BCM6328_RST_PCIE>,
490 <&periph_rst BCM6328_RST_PCIE_EXT>,
491 <&periph_rst BCM6328_RST_PCIE_CORE>,
492 <&periph_rst BCM6328_RST_PCIE_HARD>;
493 reset-names = "pcie",
494 "pcie-ext",
495 "pcie-core",
496 "pcie-hard";
497
498 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_PCIE>;
499
500 brcm,serdes = <&serdes_cntl>;
501
502 status = "disabled";
503 };
504 };
505 };