ARM: dts: keystone: add cell's information to spi nodes
[deliverable/linux.git] / arch / arm / boot / dts / keystone.dtsi
CommitLineData
d5e9fe84
SS
1/*
2 * Copyright 2013 Texas Instruments, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
eb788f43 9#include <dt-bindings/interrupt-controller/arm-gic.h>
970c2256 10#include <dt-bindings/gpio/gpio.h>
eb788f43 11
226d1c5b 12#include "skeleton.dtsi"
d5e9fe84
SS
13
14/ {
15 model = "Texas Instruments Keystone 2 SoC";
d5e9fe84
SS
16 #address-cells = <2>;
17 #size-cells = <2>;
18 interrupt-parent = <&gic>;
19
20 aliases {
21 serial0 = &uart0;
22 };
23
24 memory {
25 reg = <0x00000000 0x80000000 0x00000000 0x40000000>;
26 };
27
d5e9fe84
SS
28 gic: interrupt-controller {
29 compatible = "arm,cortex-a15-gic";
30 #interrupt-cells = <3>;
d5e9fe84
SS
31 interrupt-controller;
32 reg = <0x0 0x02561000 0x0 0x1000>,
a18b4aa2
SS
33 <0x0 0x02562000 0x0 0x2000>,
34 <0x0 0x02564000 0x0 0x1000>,
35 <0x0 0x02566000 0x0 0x2000>;
0ee15444
SS
36 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
37 IRQ_TYPE_LEVEL_HIGH)>;
d5e9fe84
SS
38 };
39
40 timer {
41 compatible = "arm,armv7-timer";
eb788f43
SS
42 interrupts =
43 <GIC_PPI 13
44 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
45 <GIC_PPI 14
46 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
47 <GIC_PPI 11
48 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
49 <GIC_PPI 10
50 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
d5e9fe84
SS
51 };
52
53 pmu {
54 compatible = "arm,cortex-a15-pmu";
eb788f43
SS
55 interrupts = <GIC_SPI 20 IRQ_TYPE_EDGE_RISING>,
56 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
57 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>,
58 <GIC_SPI 23 IRQ_TYPE_EDGE_RISING>;
d5e9fe84
SS
59 };
60
61 soc {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 compatible = "ti,keystone","simple-bus";
65 interrupt-parent = <&gic>;
66 ranges = <0x0 0x0 0x0 0xc0000000>;
67
68 rstctrl: reset-controller {
69 compatible = "ti,keystone-reset";
70 reg = <0x023100e8 4>; /* pll reset control reg */
71 };
72
feeea8f3
SS
73 /include/ "keystone-clocks.dtsi"
74
d5e9fe84
SS
75 uart0: serial@02530c00 {
76 compatible = "ns16550a";
77 current-speed = <115200>;
78 reg-shift = <2>;
79 reg-io-width = <4>;
80 reg = <0x02530c00 0x100>;
f023bd10 81 clocks = <&clkuart0>;
eb788f43 82 interrupts = <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>;
d5e9fe84
SS
83 };
84
85 uart1: serial@02531000 {
86 compatible = "ns16550a";
87 current-speed = <115200>;
88 reg-shift = <2>;
89 reg-io-width = <4>;
90 reg = <0x02531000 0x100>;
f023bd10 91 clocks = <&clkuart1>;
eb788f43 92 interrupts = <GIC_SPI 280 IRQ_TYPE_EDGE_RISING>;
d5e9fe84
SS
93 };
94
6120ac23
SS
95 i2c0: i2c@2530000 {
96 compatible = "ti,davinci-i2c";
97 reg = <0x02530000 0x400>;
98 clock-frequency = <100000>;
99 clocks = <&clki2c>;
100 interrupts = <GIC_SPI 283 IRQ_TYPE_EDGE_RISING>;
101 #address-cells = <1>;
102 #size-cells = <0>;
6120ac23
SS
103 };
104
105 i2c1: i2c@2530400 {
106 compatible = "ti,davinci-i2c";
107 reg = <0x02530400 0x400>;
108 clock-frequency = <100000>;
109 clocks = <&clki2c>;
110 interrupts = <GIC_SPI 286 IRQ_TYPE_EDGE_RISING>;
3953505a
GS
111 #address-cells = <1>;
112 #size-cells = <0>;
6120ac23
SS
113 };
114
115 i2c2: i2c@2530800 {
116 compatible = "ti,davinci-i2c";
117 reg = <0x02530800 0x400>;
118 clock-frequency = <100000>;
119 clocks = <&clki2c>;
120 interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>;
3953505a
GS
121 #address-cells = <1>;
122 #size-cells = <0>;
6120ac23 123 };
b3bd6c59
SS
124
125 spi0: spi@21000400 {
126 compatible = "ti,dm6441-spi";
127 reg = <0x21000400 0x200>;
128 num-cs = <4>;
129 ti,davinci-spi-intr-line = <0>;
130 interrupts = <GIC_SPI 292 IRQ_TYPE_EDGE_RISING>;
131 clocks = <&clkspi>;
509046a7
GS
132 #address-cells = <1>;
133 #size-cells = <0>;
b3bd6c59
SS
134 };
135
136 spi1: spi@21000600 {
137 compatible = "ti,dm6441-spi";
138 reg = <0x21000600 0x200>;
139 num-cs = <4>;
140 ti,davinci-spi-intr-line = <0>;
141 interrupts = <GIC_SPI 296 IRQ_TYPE_EDGE_RISING>;
142 clocks = <&clkspi>;
509046a7
GS
143 #address-cells = <1>;
144 #size-cells = <0>;
b3bd6c59
SS
145 };
146
147 spi2: spi@21000800 {
148 compatible = "ti,dm6441-spi";
149 reg = <0x21000800 0x200>;
150 num-cs = <4>;
151 ti,davinci-spi-intr-line = <0>;
152 interrupts = <GIC_SPI 300 IRQ_TYPE_EDGE_RISING>;
153 clocks = <&clkspi>;
509046a7
GS
154 #address-cells = <1>;
155 #size-cells = <0>;
b3bd6c59 156 };
08c36762
WK
157
158 usb_phy: usb_phy@2620738 {
159 compatible = "ti,keystone-usbphy";
160 #address-cells = <1>;
161 #size-cells = <1>;
162 reg = <0x2620738 32>;
163 status = "disabled";
164 };
73207956
WK
165
166 usb: usb@2680000 {
167 compatible = "ti,keystone-dwc3";
168 #address-cells = <1>;
169 #size-cells = <1>;
170 reg = <0x2680000 0x10000>;
171 clocks = <&clkusb>;
172 clock-names = "usb";
173 interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
174 ranges;
175 status = "disabled";
176
177 dwc3@2690000 {
178 compatible = "synopsys,dwc3";
179 reg = <0x2690000 0x70000>;
180 interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
181 usb-phy = <&usb_phy>, <&usb_phy>;
182 };
183 };
20d89313
IK
184
185 wdt: wdt@022f0080 {
186 compatible = "ti,keystone-wdt","ti,davinci-wdt";
187 reg = <0x022f0080 0x80>;
188 clocks = <&clkwdtimer0>;
189 };
2b4f76b6
IK
190
191 clock_event: timer@22f0000 {
192 compatible = "ti,keystone-timer";
193 reg = <0x022f0000 0x80>;
194 interrupts = <GIC_SPI 110 IRQ_TYPE_EDGE_RISING>;
195 clocks = <&clktimer15>;
196 };
970c2256
GS
197
198 gpio0: gpio@260bf00 {
199 compatible = "ti,keystone-gpio";
200 reg = <0x0260bf00 0x100>;
201 gpio-controller;
202 #gpio-cells = <2>;
203 /* HW Interrupts mapped to GPIO pins */
204 interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_RISING>,
205 <GIC_SPI 121 IRQ_TYPE_EDGE_RISING>,
206 <GIC_SPI 122 IRQ_TYPE_EDGE_RISING>,
207 <GIC_SPI 123 IRQ_TYPE_EDGE_RISING>,
208 <GIC_SPI 124 IRQ_TYPE_EDGE_RISING>,
209 <GIC_SPI 125 IRQ_TYPE_EDGE_RISING>,
210 <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>,
211 <GIC_SPI 127 IRQ_TYPE_EDGE_RISING>,
212 <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>,
213 <GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
214 <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>,
215 <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>,
216 <GIC_SPI 132 IRQ_TYPE_EDGE_RISING>,
217 <GIC_SPI 133 IRQ_TYPE_EDGE_RISING>,
218 <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
219 <GIC_SPI 135 IRQ_TYPE_EDGE_RISING>,
220 <GIC_SPI 136 IRQ_TYPE_EDGE_RISING>,
221 <GIC_SPI 137 IRQ_TYPE_EDGE_RISING>,
222 <GIC_SPI 138 IRQ_TYPE_EDGE_RISING>,
223 <GIC_SPI 139 IRQ_TYPE_EDGE_RISING>,
224 <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>,
225 <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>,
226 <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>,
227 <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>,
228 <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>,
229 <GIC_SPI 145 IRQ_TYPE_EDGE_RISING>,
230 <GIC_SPI 146 IRQ_TYPE_EDGE_RISING>,
231 <GIC_SPI 147 IRQ_TYPE_EDGE_RISING>,
232 <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>,
233 <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>,
234 <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>,
235 <GIC_SPI 151 IRQ_TYPE_EDGE_RISING>;
236 clocks = <&clkgpio>;
237 clock-names = "gpio";
238 ti,ngpio = <32>;
239 ti,davinci-gpio-unbanked = <32>;
240 };
82c04f71
IK
241
242 aemif: aemif@21000A00 {
243 compatible = "ti,keystone-aemif", "ti,davinci-aemif";
244 #address-cells = <2>;
245 #size-cells = <1>;
246 clocks = <&clkaemif>;
247 clock-names = "aemif";
248 clock-ranges;
249
250 reg = <0x21000A00 0x00000100>;
251 ranges = <0 0 0x30000000 0x10000000
252 1 0 0x21000A00 0x00000100>;
253 };
d5e9fe84
SS
254 };
255};
This page took 0.074549 seconds and 5 git commands to generate.