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: msmram@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";
327 edma0: edma@2700000 {
328 compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
329 reg = <0x02700000 0x8000>;
330 reg-names = "edma3_cc";
331 interrupts = <GIC_SPI 200 IRQ_TYPE_EDGE_RISING>,
332 <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>,
333 <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
334 interrupt-names = "edma3_ccint", "emda3_mperr",
339 ti,tptcs = <&edma0_tptc0 7>, <&edma0_tptc1 0>;
341 ti,edma-memcpy-channels = <32 33 34 35>;
343 power-domains = <&k2g_pds 0x3f>;
346 edma0_tptc0: tptc@2760000 {
347 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
348 reg = <0x02760000 0x400>;
349 power-domains = <&k2g_pds 0x3f>;
352 edma0_tptc1: tptc@2768000 {
353 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
354 reg = <0x02768000 0x400>;
355 power-domains = <&k2g_pds 0x3f>;
358 edma1: edma@2728000 {
359 compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
360 reg = <0x02728000 0x8000>;
361 reg-names = "edma3_cc";
362 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
363 <GIC_SPI 219 IRQ_TYPE_EDGE_RISING>,
364 <GIC_SPI 220 IRQ_TYPE_EDGE_RISING>;
365 interrupt-names = "edma3_ccint", "emda3_mperr",
370 ti,tptcs = <&edma1_tptc0 7>, <&edma1_tptc1 0>;
373 * memcpy is disabled, can be enabled with:
374 * ti,edma-memcpy-channels = <12 13 14 15>;
378 power-domains = <&k2g_pds 0x4f>;
381 edma1_tptc0: tptc@27b0000 {
382 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
383 reg = <0x027b0000 0x400>;
384 power-domains = <&k2g_pds 0x4f>;
387 edma1_tptc1: tptc@27b8000 {
388 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
389 reg = <0x027b8000 0x400>;
390 power-domains = <&k2g_pds 0x4f>;
394 compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc";
395 reg = <0x23000000 0x400>;
396 interrupts = <GIC_SPI 96 IRQ_TYPE_EDGE_RISING>;
397 dmas = <&edma1 24 0>, <&edma1 25 0>;
398 dma-names = "tx", "rx";
400 ti,needs-special-reset;
402 max-frequency = <96000000>;
403 power-domains = <&k2g_pds 0xb>;
404 clocks = <&k2g_clks 0xb 1>, <&k2g_clks 0xb 2>;
405 clock-names = "fck", "mmchsdb_fck";
410 compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc";
411 reg = <0x23100000 0x400>;
412 interrupts = <GIC_SPI 97 IRQ_TYPE_EDGE_RISING>;
413 dmas = <&edma1 26 0>, <&edma1 27 0>;
414 dma-names = "tx", "rx";
416 ti,needs-special-reset;
417 max-frequency = <96000000>;
418 power-domains = <&k2g_pds 0xc>;
419 clocks = <&k2g_clks 0xc 1>, <&k2g_clks 0xc 2>;
420 clock-names = "fck", "mmchsdb_fck";
424 compatible = "ti,k2g-qspi", "cdns,qspi-nor";
425 #address-cells = <1>;
427 reg = <0x02940000 0x1000>,
428 <0x24000000 0x4000000>;
429 interrupts = <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>;
430 cdns,fifo-depth = <256>;
431 cdns,fifo-width = <4>;
432 cdns,trigger-address = <0x24000000>;
433 clocks = <&k2g_clks 0x43 0x0>;
434 power-domains = <&k2g_pds 0x43>;
438 mcasp0: mcasp@2340000 {
439 compatible = "ti,am33xx-mcasp-audio";
440 reg = <0x02340000 0x2000>,
442 reg-names = "mpu","dat";
443 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
444 <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
445 interrupt-names = "tx", "rx";
446 dmas = <&edma0 24 1>, <&edma0 25 1>;
447 dma-names = "tx", "rx";
448 power-domains = <&k2g_pds 0x4>;
449 clocks = <&k2g_clks 0x4 0>;
454 mcasp1: mcasp@2342000 {
455 compatible = "ti,am33xx-mcasp-audio";
456 reg = <0x02342000 0x2000>,
458 reg-names = "mpu","dat";
459 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
460 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
461 interrupt-names = "tx", "rx";
462 dmas = <&edma1 48 1>, <&edma1 49 1>;
463 dma-names = "tx", "rx";
464 power-domains = <&k2g_pds 0x5>;
465 clocks = <&k2g_clks 0x5 0>;
470 mcasp2: mcasp@2344000 {
471 compatible = "ti,am33xx-mcasp-audio";
472 reg = <0x02344000 0x2000>,
474 reg-names = "mpu","dat";
475 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
476 <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
477 interrupt-names = "tx", "rx";
478 dmas = <&edma1 50 1>, <&edma1 51 1>;
479 dma-names = "tx", "rx";
480 power-domains = <&k2g_pds 0x6>;
481 clocks = <&k2g_clks 0x6 0>;
486 keystone_usb0: keystone-dwc3@2680000 {
487 compatible = "ti,keystone-dwc3";
488 #address-cells = <1>;
490 reg = <0x2680000 0x10000>;
491 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
496 power-domains = <&k2g_pds 0x0016>;
499 compatible = "snps,dwc3";
500 reg = <0x2690000 0x10000>;
501 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
502 maximum-speed = "high-speed";
504 usb-phy = <&usb0_phy>;
509 keystone_usb1: keystone-dwc3@2580000 {
510 compatible = "ti,keystone-dwc3";
511 #address-cells = <1>;
513 reg = <0x2580000 0x10000>;
514 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
519 power-domains = <&k2g_pds 0x0017>;
522 compatible = "snps,dwc3";
523 reg = <0x2590000 0x10000>;
524 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
525 maximum-speed = "high-speed";
527 usb-phy = <&usb1_phy>;
533 compatible = "ti,k2g-ecap", "ti,am3352-ecap";
535 reg = <0x021d1800 0x60>;
536 power-domains = <&k2g_pds 0x38>;
537 clocks = <&k2g_clks 0x38 0>;
543 compatible = "ti,k2g-ecap", "ti,am3352-ecap";
545 reg = <0x021d1c00 0x60>;
546 power-domains = <&k2g_pds 0x39>;
547 clocks = <&k2g_clks 0x39 0x0>;
553 compatible = "ti,keystone-spi";
554 reg = <0x21805400 0x200>;
556 ti,davinci-spi-intr-line = <0>;
557 interrupts = <GIC_SPI 64 IRQ_TYPE_EDGE_RISING>;
558 #address-cells = <1>;
560 power-domains = <&k2g_pds 0x0010>;
561 clocks = <&k2g_clks 0x0010 0>;
565 compatible = "ti,keystone-spi";
566 reg = <0x21805800 0x200>;
568 ti,davinci-spi-intr-line = <0>;
569 interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>;
570 #address-cells = <1>;
572 power-domains = <&k2g_pds 0x0011>;
573 clocks = <&k2g_clks 0x0011 0>;
577 compatible = "ti,keystone-spi";
578 reg = <0x21805C00 0x200>;
580 ti,davinci-spi-intr-line = <0>;
581 interrupts = <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
582 #address-cells = <1>;
584 power-domains = <&k2g_pds 0x0012>;
585 clocks = <&k2g_clks 0x0012 0>;
589 compatible = "ti,keystone-spi";
590 reg = <0x21806000 0x200>;
592 ti,davinci-spi-intr-line = <0>;
593 interrupts = <GIC_SPI 70 IRQ_TYPE_EDGE_RISING>;
594 #address-cells = <1>;
596 power-domains = <&k2g_pds 0x0013>;
597 clocks = <&k2g_clks 0x0013 0>;
601 compatible = "ti,keystone-wdt", "ti,davinci-wdt";
602 reg = <0x02250000 0x80>;
603 power-domains = <&k2g_pds 0x22>;
604 clocks = <&k2g_clks 0x22 0>;
607 emif: emif@21010000 {
608 compatible = "ti,emif-keystone";
609 reg = <0x21010000 0x200>;
610 interrupts = <GIC_SPI 123 IRQ_TYPE_EDGE_RISING>;