blob: 499468d42adac51007f6c663c6b2e0e64cd67ef6 [file] [log] [blame]
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +02001/*
2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * 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/irq.h>
17#include <dt-bindings/interrupt-controller/arm-gic.h>
18#include "skeleton.dtsi"
19
20/ {
21 interrupt-parent = <&gic>;
22
Heiko Stuebner9cdffd82014-06-24 20:12:06 +020023 aliases {
24 i2c0 = &i2c0;
25 i2c1 = &i2c1;
26 i2c2 = &i2c2;
27 i2c3 = &i2c3;
28 i2c4 = &i2c4;
Heiko Stuebner4ff4ae12014-09-10 17:04:36 +020029 mshc0 = &emmc;
30 mshc1 = &mmc0;
31 mshc2 = &mmc1;
Heiko Stuebner39c2bd72014-09-10 16:28:02 +020032 spi0 = &spi0;
33 spi1 = &spi1;
Heiko Stuebner9cdffd82014-06-24 20:12:06 +020034 };
35
Heiko Stübnerac42f482014-08-14 23:01:50 +020036 amba {
37 compatible = "arm,amba-bus";
38 #address-cells = <1>;
39 #size-cells = <1>;
40 ranges;
41
42 dmac1_s: dma-controller@20018000 {
43 compatible = "arm,pl330", "arm,primecell";
44 reg = <0x20018000 0x4000>;
45 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
46 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
47 #dma-cells = <1>;
48 clocks = <&cru ACLK_DMA1>;
49 clock-names = "apb_pclk";
50 };
51
52 dmac1_ns: dma-controller@2001c000 {
53 compatible = "arm,pl330", "arm,primecell";
54 reg = <0x2001c000 0x4000>;
55 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
56 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
57 #dma-cells = <1>;
58 clocks = <&cru ACLK_DMA1>;
59 clock-names = "apb_pclk";
60 status = "disabled";
61 };
62
63 dmac2: dma-controller@20078000 {
64 compatible = "arm,pl330", "arm,primecell";
65 reg = <0x20078000 0x4000>;
66 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
67 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
68 #dma-cells = <1>;
69 clocks = <&cru ACLK_DMA2>;
70 clock-names = "apb_pclk";
71 };
72 };
73
Heiko Stuebner560106c2014-04-15 19:44:59 +020074 xin24m: oscillator {
75 compatible = "fixed-clock";
76 clock-frequency = <24000000>;
77 #clock-cells = <0>;
78 clock-output-names = "xin24m";
79 };
80
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020081 L2: l2-cache-controller@10138000 {
82 compatible = "arm,pl310-cache";
83 reg = <0x10138000 0x1000>;
84 cache-unified;
85 cache-level = <2>;
86 };
87
Heiko Stuebnerff84b902014-07-26 23:28:03 +020088 scu@1013c000 {
89 compatible = "arm,cortex-a9-scu";
90 reg = <0x1013c000 0x100>;
91 };
92
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020093 global_timer: global-timer@1013c200 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020094 compatible = "arm,cortex-a9-global-timer";
95 reg = <0x1013c200 0x20>;
96 interrupts = <GIC_PPI 11 0x304>;
97 clocks = <&cru CORE_PERI>;
98 };
99
Heiko Stuebnere40b43d2014-07-26 18:53:07 +0200100 local_timer: local-timer@1013c600 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200101 compatible = "arm,cortex-a9-twd-timer";
102 reg = <0x1013c600 0x20>;
103 interrupts = <GIC_PPI 13 0x304>;
104 clocks = <&cru CORE_PERI>;
105 };
106
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200107 gic: interrupt-controller@1013d000 {
108 compatible = "arm,cortex-a9-gic";
109 interrupt-controller;
110 #interrupt-cells = <3>;
111 reg = <0x1013d000 0x1000>,
112 <0x1013c100 0x0100>;
113 };
114
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200115 uart0: serial@10124000 {
116 compatible = "snps,dw-apb-uart";
117 reg = <0x10124000 0x400>;
118 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
119 reg-shift = <2>;
120 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200121 clock-names = "baudclk", "apb_pclk";
122 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200123 status = "disabled";
124 };
125
126 uart1: serial@10126000 {
127 compatible = "snps,dw-apb-uart";
128 reg = <0x10126000 0x400>;
129 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
130 reg-shift = <2>;
131 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200132 clock-names = "baudclk", "apb_pclk";
133 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200134 status = "disabled";
135 };
136
Heiko Stuebnerfd14e6f2014-09-09 15:37:27 +0200137 usb_otg: usb@10180000 {
138 compatible = "rockchip,rk3066-usb", "snps,dwc2";
139 reg = <0x10180000 0x40000>;
140 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
141 clocks = <&cru HCLK_OTG0>;
142 clock-names = "otg";
143 status = "disabled";
144 };
145
146 usb_host: usb@101c0000 {
147 compatible = "snps,dwc2";
148 reg = <0x101c0000 0x40000>;
149 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
150 clocks = <&cru HCLK_OTG1>;
151 clock-names = "otg";
152 status = "disabled";
153 };
154
Romain Perier18ec91e2014-09-08 17:14:49 +0000155 emac: ethernet@10204000 {
156 compatible = "snps,arc-emac";
157 reg = <0x10204000 0x3c>;
158 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
159 #address-cells = <1>;
160 #size-cells = <0>;
161
162 rockchip,grf = <&grf>;
163
164 clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
165 clock-names = "hclk", "macref";
166 max-speed = <100>;
167 phy-mode = "rmii";
168
169 status = "disabled";
170 };
171
Heiko Stuebnere40b43d2014-07-26 18:53:07 +0200172 mmc0: dwmmc@10214000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200173 compatible = "rockchip,rk2928-dw-mshc";
174 reg = <0x10214000 0x1000>;
175 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200176
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200177 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
178 clock-names = "biu", "ciu";
Heiko Stuebnerf6f70cf2013-06-17 21:28:57 +0200179
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200180 status = "disabled";
181 };
Heiko Stuebner46b82192013-06-17 22:17:16 +0200182
Heiko Stuebnere40b43d2014-07-26 18:53:07 +0200183 mmc1: dwmmc@10218000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200184 compatible = "rockchip,rk2928-dw-mshc";
185 reg = <0x10218000 0x1000>;
186 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Heiko Stuebner56f2b892014-04-29 22:02:52 +0200187
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200188 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
189 clock-names = "biu", "ciu";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200190
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200191 status = "disabled";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200192 };
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200193
Heiko Stuebner4ff4ae12014-09-10 17:04:36 +0200194 emmc: dwmmc@1021c000 {
195 compatible = "rockchip,rk2928-dw-mshc";
196 reg = <0x1021c000 0x1000>;
197 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
198
199 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
200 clock-names = "biu", "ciu";
201
202 status = "disabled";
203 };
204
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200205 pmu: pmu@20004000 {
206 compatible = "rockchip,rk3066-pmu", "syscon";
207 reg = <0x20004000 0x100>;
208 };
209
210 grf: grf@20008000 {
211 compatible = "syscon";
212 reg = <0x20008000 0x200>;
213 };
214
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200215 i2c0: i2c@2002d000 {
216 compatible = "rockchip,rk3066-i2c";
217 reg = <0x2002d000 0x1000>;
218 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
219 #address-cells = <1>;
220 #size-cells = <0>;
221
222 rockchip,grf = <&grf>;
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200223
224 clock-names = "i2c";
225 clocks = <&cru PCLK_I2C0>;
226
227 status = "disabled";
228 };
229
230 i2c1: i2c@2002f000 {
231 compatible = "rockchip,rk3066-i2c";
232 reg = <0x2002f000 0x1000>;
233 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
234 #address-cells = <1>;
235 #size-cells = <0>;
236
237 rockchip,grf = <&grf>;
238
239 clocks = <&cru PCLK_I2C1>;
240 clock-names = "i2c";
241
242 status = "disabled";
243 };
244
Beniamino Galvani550c7f42014-06-26 20:03:41 +0200245 pwm0: pwm@20030000 {
246 compatible = "rockchip,rk2928-pwm";
247 reg = <0x20030000 0x10>;
248 #pwm-cells = <2>;
249 clocks = <&cru PCLK_PWM01>;
250 status = "disabled";
251 };
252
253 pwm1: pwm@20030010 {
254 compatible = "rockchip,rk2928-pwm";
255 reg = <0x20030010 0x10>;
256 #pwm-cells = <2>;
257 clocks = <&cru PCLK_PWM01>;
258 status = "disabled";
259 };
260
Heiko Stuebnereb2b9d42014-07-30 10:16:17 +0200261 wdt: watchdog@2004c000 {
262 compatible = "snps,dw-wdt";
263 reg = <0x2004c000 0x100>;
264 clocks = <&cru PCLK_WDT>;
265 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
266 status = "disabled";
267 };
268
Beniamino Galvani550c7f42014-06-26 20:03:41 +0200269 pwm2: pwm@20050020 {
270 compatible = "rockchip,rk2928-pwm";
271 reg = <0x20050020 0x10>;
272 #pwm-cells = <2>;
273 clocks = <&cru PCLK_PWM23>;
274 status = "disabled";
275 };
276
277 pwm3: pwm@20050030 {
278 compatible = "rockchip,rk2928-pwm";
279 reg = <0x20050030 0x10>;
280 #pwm-cells = <2>;
281 clocks = <&cru PCLK_PWM23>;
282 status = "disabled";
283 };
284
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200285 i2c2: i2c@20056000 {
286 compatible = "rockchip,rk3066-i2c";
287 reg = <0x20056000 0x1000>;
288 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
289 #address-cells = <1>;
290 #size-cells = <0>;
291
292 rockchip,grf = <&grf>;
293
294 clocks = <&cru PCLK_I2C2>;
295 clock-names = "i2c";
296
297 status = "disabled";
298 };
299
300 i2c3: i2c@2005a000 {
301 compatible = "rockchip,rk3066-i2c";
302 reg = <0x2005a000 0x1000>;
303 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
304 #address-cells = <1>;
305 #size-cells = <0>;
306
307 rockchip,grf = <&grf>;
308
309 clocks = <&cru PCLK_I2C3>;
310 clock-names = "i2c";
311
312 status = "disabled";
313 };
314
315 i2c4: i2c@2005e000 {
316 compatible = "rockchip,rk3066-i2c";
317 reg = <0x2005e000 0x1000>;
318 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
319 #address-cells = <1>;
320 #size-cells = <0>;
321
322 rockchip,grf = <&grf>;
323
324 clocks = <&cru PCLK_I2C4>;
325 clock-names = "i2c";
326
327 status = "disabled";
328 };
329
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200330 uart2: serial@20064000 {
331 compatible = "snps,dw-apb-uart";
332 reg = <0x20064000 0x400>;
333 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
334 reg-shift = <2>;
335 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200336 clock-names = "baudclk", "apb_pclk";
337 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200338 status = "disabled";
339 };
340
341 uart3: serial@20068000 {
342 compatible = "snps,dw-apb-uart";
343 reg = <0x20068000 0x400>;
344 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
345 reg-shift = <2>;
346 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200347 clock-names = "baudclk", "apb_pclk";
348 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200349 status = "disabled";
350 };
Heiko Stübnerf23a6172014-08-20 21:09:24 +0200351
352 saradc: saradc@2006c000 {
353 compatible = "rockchip,saradc";
354 reg = <0x2006c000 0x100>;
355 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
356 #io-channel-cells = <1>;
357 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
358 clock-names = "saradc", "apb_pclk";
359 status = "disabled";
360 };
Heiko Stuebner39c2bd72014-09-10 16:28:02 +0200361
362 spi0: spi@20070000 {
363 compatible = "rockchip,rk3066-spi";
364 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
365 clock-names = "spiclk", "apb_pclk";
366 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
367 reg = <0x20070000 0x1000>;
368 #address-cells = <1>;
369 #size-cells = <0>;
370 status = "disabled";
371 };
372
373 spi1: spi@20074000 {
374 compatible = "rockchip,rk3066-spi";
375 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
376 clock-names = "spiclk", "apb_pclk";
377 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
378 reg = <0x20074000 0x1000>;
379 #address-cells = <1>;
380 #size-cells = <0>;
381 status = "disabled";
382 };
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200383};