blob: f59567fe7d91d03fe6147e362b14ba347edcf16d [file] [log] [blame]
Vitaly Andrianov734539e2016-02-05 10:37:17 -08001/*
2 * Device Tree Source for K2G SOC
3 *
4 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
5 *
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.
9 *
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.
14 */
15
16#include <dt-bindings/interrupt-controller/arm-gic.h>
Lokesh Vutlaeb53a152016-06-09 09:40:21 -070017#include <dt-bindings/pinctrl/keystone.h>
Vitaly Andrianov734539e2016-02-05 10:37:17 -080018#include "skeleton.dtsi"
19
20/ {
21 compatible = "ti,k2g","ti,keystone";
22 model = "Texas Instruments K2G SoC";
23 #address-cells = <2>;
24 #size-cells = <2>;
25 interrupt-parent = <&gic>;
26
27 aliases {
28 serial0 = &uart0;
29 };
30
31 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 cpu@0 {
36 compatible = "arm,cortex-a15";
37 device_type = "cpu";
38 reg = <0>;
39 };
40 };
41
42 gic: interrupt-controller@02561000 {
Marc Zyngier387720c2017-01-18 09:27:28 +000043 compatible = "arm,gic-400", "arm,cortex-a15-gic";
Vitaly Andrianov734539e2016-02-05 10:37:17 -080044 #interrupt-cells = <3>;
45 interrupt-controller;
46 reg = <0x0 0x02561000 0x0 0x1000>,
47 <0x0 0x02562000 0x0 0x2000>,
Marc Zyngier387720c2017-01-18 09:27:28 +000048 <0x0 0x02564000 0x0 0x2000>,
Vitaly Andrianov734539e2016-02-05 10:37:17 -080049 <0x0 0x02566000 0x0 0x2000>;
50 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
51 IRQ_TYPE_LEVEL_HIGH)>;
52 };
53
54 timer {
55 compatible = "arm,armv7-timer";
56 interrupts =
57 <GIC_PPI 13
58 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
59 <GIC_PPI 14
60 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
61 <GIC_PPI 11
62 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
63 <GIC_PPI 10
64 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
65 };
66
67 pmu {
68 compatible = "arm,cortex-a15-pmu";
69 interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
70 };
71
72 soc {
73 #address-cells = <1>;
74 #size-cells = <1>;
Tony Lindgrenbe76fd32016-11-07 08:27:49 -070075 #pinctrl-cells = <1>;
Vitaly Andrianov734539e2016-02-05 10:37:17 -080076 compatible = "ti,keystone","simple-bus";
77 ranges = <0x0 0x0 0x0 0xc0000000>;
78 dma-ranges = <0x80000000 0x8 0x00000000 0x80000000>;
79
Suman Annab6f922a2017-01-07 12:33:08 -080080 msm_ram: msmram@0c000000 {
81 compatible = "mmio-sram";
82 reg = <0x0c000000 0x100000>;
83 ranges = <0x0 0x0c000000 0x100000>;
84 #address-cells = <1>;
85 #size-cells = <1>;
Suman Annab3511c92017-01-07 12:33:08 -080086
87 sram-bm@f7000 {
88 reg = <0x000f7000 0x8000>;
89 };
Suman Annab6f922a2017-01-07 12:33:08 -080090 };
91
Vitaly Andrianovfb252252016-06-09 09:40:21 -070092 k2g_pinctrl: pinmux@02621000 {
93 compatible = "pinctrl-single";
94 reg = <0x02621000 0x410>;
95 pinctrl-single,register-width = <32>;
96 pinctrl-single,function-mask = <0x001b0007>;
97 };
98
Andrew F. Davis08fa1982016-08-31 16:29:59 -040099 devctrl: device-state-control@02620000 {
100 compatible = "ti,keystone-devctrl", "syscon";
101 reg = <0x02620000 0x1000>;
102 };
103
Vitaly Andrianov734539e2016-02-05 10:37:17 -0800104 uart0: serial@02530c00 {
David Lechner1dd55812017-01-06 11:07:01 -0800105 compatible = "ti,da830-uart", "ns16550a";
Vitaly Andrianov734539e2016-02-05 10:37:17 -0800106 current-speed = <115200>;
107 reg-shift = <2>;
108 reg-io-width = <4>;
109 reg = <0x02530c00 0x100>;
110 interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
111 clock-frequency = <200000000>;
112 status = "disabled";
113 };
Andrew F. Davis0884b1b2016-08-31 16:29:59 -0400114
115 kirq0: keystone_irq@026202a0 {
116 compatible = "ti,keystone-irq";
117 interrupts = <GIC_SPI 1 IRQ_TYPE_EDGE_RISING>;
118 interrupt-controller;
119 #interrupt-cells = <1>;
120 ti,syscon-dev = <&devctrl 0x2a0>;
121 };
Andrew F. Davise0f0b542016-08-31 16:29:59 -0400122
123 dspgpio0: keystone_dsp_gpio@02620240 {
124 compatible = "ti,keystone-dsp-gpio";
125 gpio-controller;
126 #gpio-cells = <2>;
127 gpio,syscon-dev = <&devctrl 0x240>;
128 };
Nishanth Menon11b897a2016-08-31 16:32:04 -0400129
130 msgmgr: msgmgr@02a00000 {
131 compatible = "ti,k2g-message-manager";
132 #mbox-cells = <2>;
133 reg-names = "queue_proxy_region",
134 "queue_state_debug_region";
135 reg = <0x02a00000 0x400000>, <0x028c3400 0x400>;
136 interrupt-names = "rx_005",
137 "rx_057";
138 interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>,
139 <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
140 };
Vitaly Andrianov734539e2016-02-05 10:37:17 -0800141 };
142};