bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/stintel.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/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/reset/bcm6358-reset.h>
12
13 / {
14 #address-cells = <1>;
15 #size-cells = <1>;
16 compatible = "brcm,bcm6358";
17
18 aliases {
19 pflash = &pflash;
20 pinctrl = &pinctrl;
21 serial0 = &uart0;
22 serial1 = &uart1;
23 spi0 = &lsspi;
24 };
25
26 chosen {
27 bootargs = "earlycon";
28 stdout-path = "serial0:115200n8";
29 };
30
31 clocks {
32 periph_osc: periph-osc {
33 compatible = "fixed-clock";
34
35 #clock-cells = <0>;
36
37 clock-frequency = <50000000>;
38 clock-output-names = "periph";
39 };
40 };
41
42 cpus {
43 #address-cells = <1>;
44 #size-cells = <0>;
45 mips-hpt-frequency = <150000000>;
46
47 cpu@0 {
48 compatible = "brcm,bmips4350", "mips,mips4Kc";
49 device_type = "cpu";
50 reg = <0>;
51 };
52
53 cpu@1 {
54 compatible = "brcm,bmips4350", "mips,mips4Kc";
55 device_type = "cpu";
56 reg = <1>;
57 };
58 };
59
60 cpu_intc: interrupt-controller {
61 #address-cells = <0>;
62 compatible = "mti,cpu-interrupt-controller";
63
64 interrupt-controller;
65 #interrupt-cells = <1>;
66 };
67
68 memory@0 {
69 device_type = "memory";
70 reg = <0 0>;
71 };
72
73 pflash: nor@1e000000 {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 compatible = "cfi-flash";
77 reg = <0x1e000000 0x2000000>;
78 bank-width = <2>;
79
80 status = "disabled";
81 };
82
83 ubus {
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 compatible = "simple-bus";
88 ranges;
89
90 periph_clk: clock-controller@fffe0004 {
91 compatible = "brcm,bcm6358-clocks";
92 reg = <0xfffe0004 0x4>;
93 #clock-cells = <1>;
94 };
95
96 pll_cntl: syscon@fffe0008 {
97 compatible = "syscon", "simple-mfd";
98 reg = <0xfffe0008 0x4>;
99 native-endian;
100
101 syscon-reboot {
102 compatible = "syscon-reboot";
103 offset = <0x0>;
104 mask = <0x1>;
105 };
106 };
107
108 periph_intc: interrupt-controller@fffe000c {
109 #address-cells = <1>;
110 compatible = "brcm,bcm6345-l1-intc";
111 reg = <0xfffe000c 0x8>,
112 <0xfffe0038 0x8>;
113
114 interrupt-controller;
115 #interrupt-cells = <1>;
116
117 interrupt-parent = <&cpu_intc>;
118 interrupts = <2>, <3>;
119 };
120
121 ext_intc0: interrupt-controller@fffe0014 {
122 #address-cells = <1>;
123 compatible = "brcm,bcm6345-ext-intc";
124 reg = <0xfffe0014 0x4>;
125
126 interrupt-controller;
127 #interrupt-cells = <2>;
128
129 interrupt-parent = <&periph_intc>;
130 interrupts = <BCM6358_IRQ_EXT0>,
131 <BCM6358_IRQ_EXT1>,
132 <BCM6358_IRQ_EXT2>,
133 <BCM6358_IRQ_EXT3>;
134 };
135
136 ext_intc1: interrupt-controller@fffe001c {
137 #address-cells = <1>;
138 compatible = "brcm,bcm6345-ext-intc";
139 reg = <0xfffe001c 0x4>;
140
141 interrupt-controller;
142 #interrupt-cells = <2>;
143
144 interrupt-parent = <&periph_intc>;
145 interrupts = <BCM6358_IRQ_EXT4>,
146 <BCM6358_IRQ_EXT5>;
147 };
148
149 periph_rst: reset-controller@fffe0034 {
150 compatible = "brcm,bcm6345-reset";
151 reg = <0xfffe0034 0x4>;
152 #reset-cells = <1>;
153 };
154
155 wdt: watchdog@fffe005c {
156 compatible = "brcm,bcm7038-wdt";
157 reg = <0xfffe005c 0xc>;
158
159 clocks = <&periph_osc>;
160
161 timeout-sec = <30>;
162 };
163
164 gpio_cntl: syscon@fffe0080 {
165 #address-cells = <1>;
166 #size-cells = <1>;
167 compatible = "brcm,bcm6358-gpio-sysctl",
168 "syscon", "simple-mfd";
169 reg = <0xfffe0080 0x50>;
170 ranges = <0 0xfffe0080 0x80>;
171 native-endian;
172
173 gpio: gpio@0 {
174 compatible = "brcm,bcm6358-gpio";
175 reg-names = "dirout", "dat";
176 reg = <0x0 0x8>, <0x8 0x8>;
177
178 gpio-controller;
179 gpio-ranges = <&pinctrl 0 0 40>;
180 #gpio-cells = <2>;
181 };
182
183 pinctrl: pinctrl@18 {
184 compatible = "brcm,bcm6358-pinctrl";
185 reg = <0x18 0x4>;
186
187 pinctrl_ebi_cs: ebi_cs-pins {
188 function = "ebi_cs";
189 groups = "ebi_cs_grp";
190 };
191
192 pinctrl_uart1: uart1-pins {
193 function = "uart1";
194 groups = "uart1_grp";
195 };
196
197 pinctrl_serial_led: serial_led-pins {
198 function = "serial_led";
199 groups = "serial_led_grp";
200 };
201
202 pinctrl_legacy_led: legacy_led-pins {
203 function = "legacy_led";
204 groups = "legacy_led_grp";
205 };
206
207 pinctrl_led: led-pins {
208 function = "led";
209 groups = "led_grp";
210 };
211
212 pinctrl_spi_cs_23: spi_cs-pins {
213 function = "spi_cs";
214 groups = "spi_cs_grp";
215 };
216
217 pinctrl_utopia: utopia-pins {
218 function = "utopia";
219 groups = "utopia_grp";
220 };
221
222 pinctrl_pwm_syn_clk: pwm_syn_clk-pins {
223 function = "pwm_syn_clk";
224 groups = "pwm_syn_clk_grp";
225 };
226
227 pinctrl_sys_irq: sys_irq-pins {
228 function = "sys_irq";
229 groups = "sys_irq_grp";
230 };
231 };
232 };
233
234 leds: led-controller@fffe00d0 {
235 #address-cells = <1>;
236 #size-cells = <0>;
237 compatible = "brcm,bcm6358-leds";
238 reg = <0xfffe00d0 0x8>;
239
240 status = "disabled";
241 };
242
243 uart0: serial@fffe0100 {
244 compatible = "brcm,bcm6345-uart";
245 reg = <0xfffe0100 0x18>;
246
247 interrupt-parent = <&periph_intc>;
248 interrupts = <BCM6358_IRQ_UART0>;
249
250 clocks = <&periph_osc>;
251 clock-names = "periph";
252
253 status = "disabled";
254 };
255
256 uart1: serial@fffe0120 {
257 compatible = "brcm,bcm6345-uart";
258 reg = <0xfffe0120 0x18>;
259
260 interrupt-parent = <&periph_intc>;
261 interrupts = <BCM6358_IRQ_UART1>;
262
263 clocks = <&periph_osc>;
264 clock-names = "periph";
265
266 status = "disabled";
267 };
268
269 lsspi: spi@fffe0800 {
270 #address-cells = <1>;
271 #size-cells = <0>;
272 compatible = "brcm,bcm6358-spi";
273 reg = <0xfffe0800 0x70c>;
274
275 interrupt-parent = <&periph_intc>;
276 interrupts = <BCM6358_IRQ_SPI>;
277
278 clocks = <&periph_clk BCM6358_CLK_SPI>;
279 clock-names = "spi";
280
281 resets = <&periph_rst BCM6358_RST_SPI>;
282
283 status = "disabled";
284 };
285
286 pci: pci@fffe1000 {
287 compatible = "brcm,bcm6348-pci";
288 reg = <0xfffe1000 0x200>;
289 #address-cells = <3>;
290 #size-cells = <2>;
291
292 device_type = "pci";
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>;
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 };