2 * Device Tree Source for K2G SOC
4 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <dt-bindings/interrupt-controller/arm-gic.h>
17 #include <dt-bindings/pinctrl/keystone.h>
18 #include <dt-bindings/gpio/gpio.h>
21 compatible = "ti,k2g","ti,keystone";
22 model = "Texas Instruments K2G SoC";
25 interrupt-parent = <&gic>;
42 compatible = "arm,cortex-a15";
48 gic: interrupt-controller@2561000 {
49 compatible = "arm,gic-400", "arm,cortex-a15-gic";
50 #interrupt-cells = <3>;
52 reg = <0x0 0x02561000 0x0 0x1000>,
53 <0x0 0x02562000 0x0 0x2000>,
54 <0x0 0x02564000 0x0 0x2000>,
55 <0x0 0x02566000 0x0 0x2000>;
56 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
57 IRQ_TYPE_LEVEL_HIGH)>;
61 compatible = "arm,armv7-timer";
64 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
66 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
68 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
70 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
74 compatible = "arm,cortex-a15-pmu";
75 interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
82 compatible = "ti,keystone","simple-bus";
83 ranges = <0x0 0x0 0x0 0xc0000000>;
84 dma-ranges = <0x80000000 0x8 0x00000000 0x80000000>;
86 msm_ram: msmram@c000000 {
87 compatible = "mmio-sram";
88 reg = <0x0c000000 0x100000>;
89 ranges = <0x0 0x0c000000 0x100000>;
94 reg = <0x000f7000 0x8000>;
98 k2g_pinctrl: pinmux@2621000 {
99 compatible = "pinctrl-single";
100 reg = <0x02621000 0x410>;
101 pinctrl-single,register-width = <32>;
102 pinctrl-single,function-mask = <0x001b0007>;
105 devctrl: device-state-control@2620000 {
106 compatible = "ti,keystone-devctrl", "syscon";
107 reg = <0x02620000 0x1000>;
110 uart0: serial@2530c00 {
111 compatible = "ti,da830-uart", "ns16550a";
112 current-speed = <115200>;
115 reg = <0x02530c00 0x100>;
116 interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
117 clock-frequency = <200000000>;
122 compatible = "ti,am4372-d_can", "ti,am3352-d_can";
123 reg = <0x0260B200 0x200>;
124 interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
126 power-domains = <&k2g_pds 0x0008>;
127 clocks = <&k2g_clks 0x0008 1>;
131 compatible = "ti,am4372-d_can", "ti,am3352-d_can";
132 reg = <0x0260B400 0x200>;
133 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
135 power-domains = <&k2g_pds 0x0009>;
136 clocks = <&k2g_clks 0x0009 1>;
140 compatible = "ti,keystone-i2c";
141 reg = <0x02530000 0x400>;
142 clocks = <&k2g_clks 0x003a 0>;
143 power-domains = <&k2g_pds 0x003a>;
144 interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
145 #address-cells = <1>;
151 compatible = "ti,keystone-i2c";
152 reg = <0x02530400 0x400>;
153 clocks = <&k2g_clks 0x003b 0>;
154 power-domains = <&k2g_pds 0x003b>;
155 interrupts = <GIC_SPI 89 IRQ_TYPE_EDGE_RISING>;
156 #address-cells = <1>;
162 compatible = "ti,keystone-i2c";
163 reg = <0x02530800 0x400>;
164 clocks = <&k2g_clks 0x003c 0>;
165 power-domains = <&k2g_pds 0x003c>;
166 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
167 #address-cells = <1>;
172 kirq0: keystone_irq@26202a0 {
173 compatible = "ti,keystone-irq";
174 interrupts = <GIC_SPI 1 IRQ_TYPE_EDGE_RISING>;
175 interrupt-controller;
176 #interrupt-cells = <1>;
177 ti,syscon-dev = <&devctrl 0x2a0>;
180 dspgpio0: keystone_dsp_gpio@2620240 {
181 compatible = "ti,keystone-dsp-gpio";
184 gpio,syscon-dev = <&devctrl 0x240>;
188 compatible = "ti,k2g-dsp";
189 reg = <0x10800000 0x00100000>,
190 <0x10e00000 0x00008000>,
191 <0x10f00000 0x00008000>;
192 reg-names = "l2sram", "l1pram", "l1dram";
193 power-domains = <&k2g_pds 0x0046>;
194 ti,syscon-dev = <&devctrl 0x844>;
195 resets = <&k2g_reset 0x0046 0x1>;
196 interrupt-parent = <&kirq0>;
198 interrupt-names = "vring", "exception";
199 kick-gpios = <&dspgpio0 27 0>;
203 msgmgr: msgmgr@2a00000 {
204 compatible = "ti,k2g-message-manager";
206 reg-names = "queue_proxy_region",
207 "queue_state_debug_region";
208 reg = <0x02a00000 0x400000>, <0x028c3400 0x400>;
209 interrupt-names = "rx_005",
211 interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>,
212 <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
216 compatible = "ti,k2g-sci";
218 * In case of rare platforms that does not use k2g as
219 * system master, use /delete-property/
221 ti,system-reboot-controller;
222 mbox-names = "rx", "tx";
223 mboxes= <&msgmgr 5 2>,
225 reg-names = "debug_messages";
226 reg = <0x02921c00 0x400>;
228 k2g_pds: power-controller {
229 compatible = "ti,sci-pm-domain";
230 #power-domain-cells = <1>;
234 compatible = "ti,k2g-sci-clk";
238 k2g_reset: reset-controller {
239 compatible = "ti,sci-reset";
244 gpio0: gpio@2603000 {
245 compatible = "ti,k2g-gpio", "ti,keystone-gpio";
246 reg = <0x02603000 0x100>;
250 interrupts = <GIC_SPI 432 IRQ_TYPE_EDGE_RISING>,
251 <GIC_SPI 433 IRQ_TYPE_EDGE_RISING>,
252 <GIC_SPI 434 IRQ_TYPE_EDGE_RISING>,
253 <GIC_SPI 435 IRQ_TYPE_EDGE_RISING>,
254 <GIC_SPI 436 IRQ_TYPE_EDGE_RISING>,
255 <GIC_SPI 437 IRQ_TYPE_EDGE_RISING>,
256 <GIC_SPI 438 IRQ_TYPE_EDGE_RISING>,
257 <GIC_SPI 439 IRQ_TYPE_EDGE_RISING>,
258 <GIC_SPI 440 IRQ_TYPE_EDGE_RISING>;
259 interrupt-controller;
260 #interrupt-cells = <2>;
262 ti,davinci-gpio-unbanked = <0>;
263 clocks = <&k2g_clks 0x001b 0x0>;
264 clock-names = "gpio";
267 gpio1: gpio@260a000 {
268 compatible = "ti,k2g-gpio", "ti,keystone-gpio";
269 reg = <0x0260a000 0x100>;
272 interrupts = <GIC_SPI 442 IRQ_TYPE_EDGE_RISING>,
273 <GIC_SPI 443 IRQ_TYPE_EDGE_RISING>,
274 <GIC_SPI 444 IRQ_TYPE_EDGE_RISING>,
275 <GIC_SPI 445 IRQ_TYPE_EDGE_RISING>,
276 <GIC_SPI 446 IRQ_TYPE_EDGE_RISING>;
277 interrupt-controller;
278 #interrupt-cells = <2>;
280 ti,davinci-gpio-unbanked = <0>;
281 clocks = <&k2g_clks 0x001c 0x0>;
282 clock-names = "gpio";
285 edma0: edma@2700000 {
286 compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
287 reg = <0x02700000 0x8000>;
288 reg-names = "edma3_cc";
289 interrupts = <GIC_SPI 200 IRQ_TYPE_EDGE_RISING>,
290 <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>,
291 <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
292 interrupt-names = "edma3_ccint", "emda3_mperr",
297 ti,tptcs = <&edma0_tptc0 7>, <&edma0_tptc1 0>;
299 ti,edma-memcpy-channels = <32 33 34 35>;
301 power-domains = <&k2g_pds 0x3f>;
304 edma0_tptc0: tptc@2760000 {
305 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
306 reg = <0x02760000 0x400>;
307 power-domains = <&k2g_pds 0x3f>;
310 edma0_tptc1: tptc@2768000 {
311 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
312 reg = <0x02768000 0x400>;
313 power-domains = <&k2g_pds 0x3f>;
316 edma1: edma@2728000 {
317 compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
318 reg = <0x02728000 0x8000>;
319 reg-names = "edma3_cc";
320 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
321 <GIC_SPI 219 IRQ_TYPE_EDGE_RISING>,
322 <GIC_SPI 220 IRQ_TYPE_EDGE_RISING>;
323 interrupt-names = "edma3_ccint", "emda3_mperr",
328 ti,tptcs = <&edma1_tptc0 7>, <&edma1_tptc1 0>;
331 * memcpy is disabled, can be enabled with:
332 * ti,edma-memcpy-channels = <12 13 14 15>;
336 power-domains = <&k2g_pds 0x4f>;
339 edma1_tptc0: tptc@27b0000 {
340 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
341 reg = <0x027b0000 0x400>;
342 power-domains = <&k2g_pds 0x4f>;
345 edma1_tptc1: tptc@27b8000 {
346 compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
347 reg = <0x027b8000 0x400>;
348 power-domains = <&k2g_pds 0x4f>;
352 compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc";
353 reg = <0x23000000 0x400>;
354 interrupts = <GIC_SPI 96 IRQ_TYPE_EDGE_RISING>;
355 dmas = <&edma1 24 0>, <&edma1 25 0>;
356 dma-names = "tx", "rx";
358 ti,needs-special-reset;
360 max-frequency = <96000000>;
361 power-domains = <&k2g_pds 0xb>;
362 clocks = <&k2g_clks 0xb 1>, <&k2g_clks 0xb 2>;
363 clock-names = "fck", "mmchsdb_fck";
368 compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc";
369 reg = <0x23100000 0x400>;
370 interrupts = <GIC_SPI 97 IRQ_TYPE_EDGE_RISING>;
371 dmas = <&edma1 26 0>, <&edma1 27 0>;
372 dma-names = "tx", "rx";
374 ti,needs-special-reset;
375 max-frequency = <96000000>;
376 power-domains = <&k2g_pds 0xc>;
377 clocks = <&k2g_clks 0xc 1>, <&k2g_clks 0xc 2>;
378 clock-names = "fck", "mmchsdb_fck";
382 compatible = "ti,k2g-qspi", "cdns,qspi-nor";
383 #address-cells = <1>;
385 reg = <0x02940000 0x1000>,
386 <0x24000000 0x4000000>;
387 interrupts = <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>;
388 cdns,fifo-depth = <256>;
389 cdns,fifo-width = <4>;
390 cdns,trigger-address = <0x24000000>;
391 clocks = <&k2g_clks 0x43 0x0>;
392 power-domains = <&k2g_pds 0x43>;
396 mcasp0: mcasp@2340000 {
397 compatible = "ti,am33xx-mcasp-audio";
398 reg = <0x02340000 0x2000>,
400 reg-names = "mpu","dat";
401 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
402 <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
403 interrupt-names = "tx", "rx";
404 dmas = <&edma0 24 1>, <&edma0 25 1>;
405 dma-names = "tx", "rx";
406 power-domains = <&k2g_pds 0x4>;
407 clocks = <&k2g_clks 0x4 0>;
412 mcasp1: mcasp@2342000 {
413 compatible = "ti,am33xx-mcasp-audio";
414 reg = <0x02342000 0x2000>,
416 reg-names = "mpu","dat";
417 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
418 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
419 interrupt-names = "tx", "rx";
420 dmas = <&edma1 48 1>, <&edma1 49 1>;
421 dma-names = "tx", "rx";
422 power-domains = <&k2g_pds 0x5>;
423 clocks = <&k2g_clks 0x5 0>;
428 mcasp2: mcasp@2344000 {
429 compatible = "ti,am33xx-mcasp-audio";
430 reg = <0x02344000 0x2000>,
432 reg-names = "mpu","dat";
433 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
434 <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
435 interrupt-names = "tx", "rx";
436 dmas = <&edma1 50 1>, <&edma1 51 1>;
437 dma-names = "tx", "rx";
438 power-domains = <&k2g_pds 0x6>;
439 clocks = <&k2g_clks 0x6 0>;
444 usb0_phy: usb-phy@0 {
445 compatible = "usb-nop-xceiv";
449 keystone_usb0: keystone-dwc3@2680000 {
450 compatible = "ti,keystone-dwc3";
451 #address-cells = <1>;
453 reg = <0x2680000 0x10000>;
454 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
459 power-domains = <&k2g_pds 0x0016>;
462 compatible = "snps,dwc3";
463 reg = <0x2690000 0x10000>;
464 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
465 maximum-speed = "high-speed";
467 usb-phy = <&usb0_phy>;
472 usb1_phy: usb-phy@1 {
473 compatible = "usb-nop-xceiv";
477 keystone_usb1: keystone-dwc3@2580000 {
478 compatible = "ti,keystone-dwc3";
479 #address-cells = <1>;
481 reg = <0x2580000 0x10000>;
482 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
487 power-domains = <&k2g_pds 0x0017>;
490 compatible = "snps,dwc3";
491 reg = <0x2590000 0x10000>;
492 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
493 maximum-speed = "high-speed";
495 usb-phy = <&usb1_phy>;
501 compatible = "ti,k2g-ecap", "ti,am3352-ecap";
503 reg = <0x021d1800 0x60>;
504 power-domains = <&k2g_pds 0x38>;
505 clocks = <&k2g_clks 0x38 0>;
511 compatible = "ti,k2g-ecap", "ti,am3352-ecap";
513 reg = <0x021d1c00 0x60>;
514 power-domains = <&k2g_pds 0x39>;
515 clocks = <&k2g_clks 0x39 0x0>;
521 compatible = "ti,keystone-spi";
522 reg = <0x21805400 0x200>;
524 ti,davinci-spi-intr-line = <0>;
525 interrupts = <GIC_SPI 64 IRQ_TYPE_EDGE_RISING>;
526 #address-cells = <1>;
528 power-domains = <&k2g_pds 0x0010>;
529 clocks = <&k2g_clks 0x0010 0>;
533 compatible = "ti,keystone-spi";
534 reg = <0x21805800 0x200>;
536 ti,davinci-spi-intr-line = <0>;
537 interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>;
538 #address-cells = <1>;
540 power-domains = <&k2g_pds 0x0011>;
541 clocks = <&k2g_clks 0x0011 0>;
545 compatible = "ti,keystone-spi";
546 reg = <0x21805C00 0x200>;
548 ti,davinci-spi-intr-line = <0>;
549 interrupts = <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
550 #address-cells = <1>;
552 power-domains = <&k2g_pds 0x0012>;
553 clocks = <&k2g_clks 0x0012 0>;
557 compatible = "ti,keystone-spi";
558 reg = <0x21806000 0x200>;
560 ti,davinci-spi-intr-line = <0>;
561 interrupts = <GIC_SPI 70 IRQ_TYPE_EDGE_RISING>;
562 #address-cells = <1>;
564 power-domains = <&k2g_pds 0x0013>;
565 clocks = <&k2g_clks 0x0013 0>;