1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for K2G SOC
5 * Copyright (C) 2016-2017 Texas Instruments Incorporated - http://www.ti.com/
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/pinctrl/keystone.h>
10 #include <dt-bindings/gpio/gpio.h>
13 compatible = "ti,k2g","ti,keystone";
14 model = "Texas Instruments K2G SoC";
17 interrupt-parent = <&gic>;
36 compatible = "arm,cortex-a15";
42 gic: interrupt-controller@2561000 {
43 compatible = "arm,gic-400", "arm,cortex-a15-gic";
44 #interrupt-cells = <3>;
46 reg = <0x0 0x02561000 0x0 0x1000>,
47 <0x0 0x02562000 0x0 0x2000>,
48 <0x0 0x02564000 0x0 0x2000>,
49 <0x0 0x02566000 0x0 0x2000>;
50 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
51 IRQ_TYPE_LEVEL_HIGH)>;
55 compatible = "arm,armv7-timer";
58 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
60 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
62 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
64 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
68 compatible = "arm,cortex-a15-pmu";
69 interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
75 compatible = "simple-bus";
78 compatible = "usb-nop-xceiv";
84 compatible = "usb-nop-xceiv";
94 compatible = "ti,keystone","simple-bus";
95 ranges = <0x0 0x0 0x0 0xc0000000>;
96 dma-ranges = <0x80000000 0x8 0x00000000 0x80000000>;
98 msm_ram: sram@c000000 {
99 compatible = "mmio-sram";
100 reg = <0x0c000000 0x100000>;
101 ranges = <0x0 0x0c000000 0x100000>;
102 #address-cells = <1>;
106 reg = <0x000f7000 0x8000>;
110 k2g_pinctrl: pinmux@2621000 {
111 compatible = "pinctrl-single";
112 reg = <0x02621000 0x410>;
113 pinctrl-single,register-width = <32>;
114 pinctrl-single,function-mask = <0x001b0007>;
117 devctrl: device-state-control@2620000 {
118 compatible = "ti,keystone-devctrl", "syscon", "simple-mfd";
119 reg = <0x02620000 0x1000>;
120 #address-cells = <1>;
122 ranges = <0x0 0x02620000 0x1000>;
124 kirq0: keystone_irq@2a0 {
125 compatible = "ti,keystone-irq";
127 interrupts = <GIC_SPI 1 IRQ_TYPE_EDGE_RISING>;
128 interrupt-controller;
129 #interrupt-cells = <1>;
130 ti,syscon-dev = <&devctrl 0x2a0>;
133 dspgpio0: keystone_dsp_gpio@240 {
134 compatible = "ti,keystone-dsp-gpio";
138 gpio,syscon-dev = <&devctrl 0x240>;
142 uart0: serial@2530c00 {
143 compatible = "ti,da830-uart", "ns16550a";
144 current-speed = <115200>;
147 reg = <0x02530c00 0x100>;
148 interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
149 clocks = <&k2g_clks 0x2c 0>;
150 power-domains = <&k2g_pds 0x2c>;
154 uart1: serial@2531000 {
155 compatible = "ti,da830-uart", "ns16550a";
156 current-speed = <115200>;
159 reg = <0x02531000 0x100>;
160 interrupts = <GIC_SPI 165 IRQ_TYPE_EDGE_RISING>;
161 clocks = <&k2g_clks 0x2d 0>;
162 power-domains = <&k2g_pds 0x2d>;
166 uart2: serial@2531400 {
167 compatible = "ti,da830-uart", "ns16550a";
168 current-speed = <115200>;
171 reg = <0x02531400 0x100>;
172 interrupts = <GIC_SPI 166 IRQ_TYPE_EDGE_RISING>;
173 clocks = <&k2g_clks 0x2e 0>;
174 power-domains = <&k2g_pds 0x2e>;
179 compatible = "ti,am4372-d_can", "ti,am3352-d_can";
180 reg = <0x0260B200 0x200>;
181 interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
183 power-domains = <&k2g_pds 0x0008>;
184 clocks = <&k2g_clks 0x0008 1>;
188 compatible = "ti,am4372-d_can", "ti,am3352-d_can";
189 reg = <0x0260B400 0x200>;
190 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
192 power-domains = <&k2g_pds 0x0009>;
193 clocks = <&k2g_clks 0x0009 1>;
197 compatible = "ti,keystone-i2c";
198 reg = <0x02530000 0x400>;
199 clocks = <&k2g_clks 0x003a 0>;
200 power-domains = <&k2g_pds 0x003a>;
201 interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
202 #address-cells = <1>;
208 compatible = "ti,keystone-i2c";
209 reg = <0x02530400 0x400>;
210 clocks = <&k2g_clks 0x003b 0>;
211 power-domains = <&k2g_pds 0x003b>;
212 interrupts = <GIC_SPI 89 IRQ_TYPE_EDGE_RISING>;
213 #address-cells = <1>;
219 compatible = "ti,keystone-i2c";
220 reg = <0x02530800 0x400>;
221 clocks = <&k2g_clks 0x003c 0>;
222 power-domains = <&k2g_pds 0x003c>;
223 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
224 #address-cells = <1>;
230 compatible = "ti,k2g-dsp";
231 reg = <0x10800000 0x00100000>,
232 <0x10e00000 0x00008000>,
233 <0x10f00000 0x00008000>;
234 reg-names = "l2sram", "l1pram", "l1dram";
235 power-domains = <&k2g_pds 0x0046>;
236 ti,syscon-dev = <&devctrl 0x844>;
237 resets = <&k2g_reset 0x0046 0x1>;
238 interrupt-parent = <&kirq0>;
240 interrupt-names = "vring", "exception";
241 kick-gpios = <&dspgpio0 27 0>;
245 msgmgr: msgmgr@2a00000 {
246 compatible = "ti,k2g-message-manager";
248 reg-names = "queue_proxy_region",
249 "queue_state_debug_region";
250 reg = <0x02a00000 0x400000>, <0x028c3400 0x400>;
251 interrupt-names = "rx_005",
253 interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>,
254 <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
258 compatible = "ti,k2g-sci";
260 * In case of rare platforms that does not use k2g as
261 * system master, use /delete-property/
263 ti,system-reboot-controller;
264 mbox-names = "rx", "tx";
265 mboxes= <&msgmgr 5 2>,
267 reg-names = "debug_messages";
268 reg = <0x02921c00 0x400>;
270 k2g_pds: power-controller {
271 compatible = "ti,sci-pm-domain";
272 #power-domain-cells = <1>;
276 compatible = "ti,k2g-sci-clk";
280 k2g_reset: reset-controller {
281 compatible = "ti,sci-reset";
286 gpio0: gpio@2603000 {
287 compatible = "ti,k2g-gpio", "ti,keystone-gpio";
288 reg = <0x02603000 0x100>;
292 interrupts = <GIC_SPI 432 IRQ_TYPE_EDGE_RISING>,
293 <GIC_SPI 433 IRQ_TYPE_EDGE_RISING>,
294 <GIC_SPI 434 IRQ_TYPE_EDGE_RISING>,
295 <GIC_SPI 435 IRQ_TYPE_EDGE_RISING>,
296 <GIC_SPI 436 IRQ_TYPE_EDGE_RISING>,
297 <GIC_SPI 437 IRQ_TYPE_EDGE_RISING>,
298 <GIC_SPI 438 IRQ_TYPE_EDGE_RISING>,
299 <GIC_SPI 439 IRQ_TYPE_EDGE_RISING>,
300 <GIC_SPI 440 IRQ_TYPE_EDGE_RISING>;
301 interrupt-controller;
302 #interrupt-cells = <2>;
304 ti,davinci-gpio-unbanked = <0>;
305 clocks = <&k2g_clks 0x001b 0x0>;
306 clock-names = "gpio";
309 gpio1: gpio@260a000 {
310 compatible = "ti,k2g-gpio", "ti,keystone-gpio";
311 reg = <0x0260a000 0x100>;
314 interrupts = <GIC_SPI 442 IRQ_TYPE_EDGE_RISING>,
315 <GIC_SPI 443 IRQ_TYPE_EDGE_RISING>,
316 <GIC_SPI 444 IRQ_TYPE_EDGE_RISING>,
317 <GIC_SPI 445 IRQ_TYPE_EDGE_RISING>,
318 <GIC_SPI 446 IRQ_TYPE_EDGE_RISING>;
319 interrupt-controller;
320 #interrupt-cells = <2>;
322 ti,davinci-gpio-unbanked = <0>;
323 clocks = <&k2g_clks 0x001c 0x0>;
324 clock-names = "gpio";
328 compatible = "ti,k2g-dss";
329 reg = <0x02540000 0x400>,
334 reg-names = "cfg", "common", "vid1", "ovr1", "vp1";
335 clocks = <&k2g_clks 0x2 0>,
337 clock-names = "fck", "vp1";
338 interrupts = <GIC_SPI 247 IRQ_TYPE_EDGE_RISING>;
340 power-domains = <&k2g_pds 0x2>;
342 #address-cells = <1>;
346 max-memory-bandwidth = <230000000>;
349 edma0: edma@2700000 {
350 compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
351 reg = <0x02700000 0x8000>;
352 reg-names = "edma3_cc";
353 interrupts = <GIC_SPI 200 IRQ_TYPE_EDGE_RISING>,
354 <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>,
355 <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
356 interrupt-names = "edma3_ccint", "emda3_mperr",
361 ti,tptcs = <&edma0_tptc0 7>, <&edma0_tptc1 0>;
363 ti,edma-memcpy-channels = <32 33 34 35>;
365 power-domains = <&k2g_pds 0x3f>;
368 edma0_tptc0: tptc@2760000 {
369 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
370 reg = <0x02760000 0x400>;
371 power-domains = <&k2g_pds 0x3f>;
374 edma0_tptc1: tptc@2768000 {
375 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
376 reg = <0x02768000 0x400>;
377 power-domains = <&k2g_pds 0x3f>;
380 edma1: edma@2728000 {
381 compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
382 reg = <0x02728000 0x8000>;
383 reg-names = "edma3_cc";
384 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
385 <GIC_SPI 219 IRQ_TYPE_EDGE_RISING>,
386 <GIC_SPI 220 IRQ_TYPE_EDGE_RISING>;
387 interrupt-names = "edma3_ccint", "emda3_mperr",
392 ti,tptcs = <&edma1_tptc0 7>, <&edma1_tptc1 0>;
395 * memcpy is disabled, can be enabled with:
396 * ti,edma-memcpy-channels = <12 13 14 15>;
400 power-domains = <&k2g_pds 0x4f>;
403 edma1_tptc0: tptc@27b0000 {
404 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
405 reg = <0x027b0000 0x400>;
406 power-domains = <&k2g_pds 0x4f>;
409 edma1_tptc1: tptc@27b8000 {
410 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
411 reg = <0x027b8000 0x400>;
412 power-domains = <&k2g_pds 0x4f>;
416 compatible = "ti,k2g-sdhci";
417 reg = <0x23000000 0x400>;
418 interrupts = <GIC_SPI 96 IRQ_TYPE_EDGE_RISING>;
421 max-frequency = <96000000>;
422 power-domains = <&k2g_pds 0xb>;
423 clocks = <&k2g_clks 0xb 1>, <&k2g_clks 0xb 2>;
424 clock-names = "fck", "mmchsdb_fck";
429 compatible = "ti,k2g-sdhci";
430 reg = <0x23100000 0x400>;
431 interrupts = <GIC_SPI 97 IRQ_TYPE_EDGE_RISING>;
435 max-frequency = <96000000>;
436 power-domains = <&k2g_pds 0xc>;
437 clocks = <&k2g_clks 0xc 1>, <&k2g_clks 0xc 2>;
438 clock-names = "fck", "mmchsdb_fck";
442 compatible = "ti,k2g-qspi", "cdns,qspi-nor";
443 #address-cells = <1>;
445 reg = <0x02940000 0x1000>,
446 <0x24000000 0x4000000>;
447 interrupts = <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>;
448 cdns,fifo-depth = <256>;
449 cdns,fifo-width = <4>;
450 cdns,trigger-address = <0x24000000>;
451 clocks = <&k2g_clks 0x43 0x0>;
452 power-domains = <&k2g_pds 0x43>;
456 mcasp0: mcasp@2340000 {
457 compatible = "ti,am33xx-mcasp-audio";
458 reg = <0x02340000 0x2000>,
460 reg-names = "mpu","dat";
461 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
462 <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
463 interrupt-names = "tx", "rx";
464 dmas = <&edma0 24 1>, <&edma0 25 1>;
465 dma-names = "tx", "rx";
466 power-domains = <&k2g_pds 0x4>;
467 clocks = <&k2g_clks 0x4 0>;
472 mcasp1: mcasp@2342000 {
473 compatible = "ti,am33xx-mcasp-audio";
474 reg = <0x02342000 0x2000>,
476 reg-names = "mpu","dat";
477 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
478 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
479 interrupt-names = "tx", "rx";
480 dmas = <&edma1 48 1>, <&edma1 49 1>;
481 dma-names = "tx", "rx";
482 power-domains = <&k2g_pds 0x5>;
483 clocks = <&k2g_clks 0x5 0>;
488 mcasp2: mcasp@2344000 {
489 compatible = "ti,am33xx-mcasp-audio";
490 reg = <0x02344000 0x2000>,
492 reg-names = "mpu","dat";
493 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
494 <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
495 interrupt-names = "tx", "rx";
496 dmas = <&edma1 50 1>, <&edma1 51 1>;
497 dma-names = "tx", "rx";
498 power-domains = <&k2g_pds 0x6>;
499 clocks = <&k2g_clks 0x6 0>;
504 keystone_usb0: keystone-dwc3@2680000 {
505 compatible = "ti,keystone-dwc3";
506 #address-cells = <1>;
508 reg = <0x2680000 0x10000>;
509 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
514 power-domains = <&k2g_pds 0x0016>;
517 compatible = "snps,dwc3";
518 reg = <0x2690000 0x10000>;
519 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
520 maximum-speed = "high-speed";
522 usb-phy = <&usb0_phy>;
527 keystone_usb1: keystone-dwc3@2580000 {
528 compatible = "ti,keystone-dwc3";
529 #address-cells = <1>;
531 reg = <0x2580000 0x10000>;
532 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
537 power-domains = <&k2g_pds 0x0017>;
540 compatible = "snps,dwc3";
541 reg = <0x2590000 0x10000>;
542 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
543 maximum-speed = "high-speed";
545 usb-phy = <&usb1_phy>;
551 compatible = "ti,k2g-ecap", "ti,am3352-ecap";
553 reg = <0x021d1800 0x60>;
554 power-domains = <&k2g_pds 0x38>;
555 clocks = <&k2g_clks 0x38 0>;
561 compatible = "ti,k2g-ecap", "ti,am3352-ecap";
563 reg = <0x021d1c00 0x60>;
564 power-domains = <&k2g_pds 0x39>;
565 clocks = <&k2g_clks 0x39 0x0>;
571 compatible = "ti,keystone-spi";
572 reg = <0x21805400 0x200>;
574 ti,davinci-spi-intr-line = <0>;
575 interrupts = <GIC_SPI 64 IRQ_TYPE_EDGE_RISING>;
576 #address-cells = <1>;
578 power-domains = <&k2g_pds 0x0010>;
579 clocks = <&k2g_clks 0x0010 0>;
583 compatible = "ti,keystone-spi";
584 reg = <0x21805800 0x200>;
586 ti,davinci-spi-intr-line = <0>;
587 interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>;
588 #address-cells = <1>;
590 power-domains = <&k2g_pds 0x0011>;
591 clocks = <&k2g_clks 0x0011 0>;
595 compatible = "ti,keystone-spi";
596 reg = <0x21805C00 0x200>;
598 ti,davinci-spi-intr-line = <0>;
599 interrupts = <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
600 #address-cells = <1>;
602 power-domains = <&k2g_pds 0x0012>;
603 clocks = <&k2g_clks 0x0012 0>;
607 compatible = "ti,keystone-spi";
608 reg = <0x21806000 0x200>;
610 ti,davinci-spi-intr-line = <0>;
611 interrupts = <GIC_SPI 70 IRQ_TYPE_EDGE_RISING>;
612 #address-cells = <1>;
614 power-domains = <&k2g_pds 0x0013>;
615 clocks = <&k2g_clks 0x0013 0>;
619 compatible = "ti,keystone-wdt", "ti,davinci-wdt";
620 reg = <0x02250000 0x80>;
621 power-domains = <&k2g_pds 0x22>;
622 clocks = <&k2g_clks 0x22 0>;
625 emif: emif@21010000 {
626 compatible = "ti,emif-keystone";
627 reg = <0x21010000 0x200>;
628 interrupts = <GIC_SPI 123 IRQ_TYPE_EDGE_RISING>;
632 compatible = "ti,keystone_mdio", "ti,davinci_mdio";
633 reg = <0x04200f00 0x100>;
634 #address-cells = <1>;
636 clocks = <&k2g_clks 0x0018 3>;
638 power-domains = <&k2g_pds 0x0018>;
640 bus_freq = <2500000>;
642 #include "keystone-k2g-netcp.dtsi"