blob: b5bd3a6593ef687d8d1d098715f4a5ad83972393 [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;
29 };
30
Heiko Stübnerac42f482014-08-14 23:01:50 +020031 amba {
32 compatible = "arm,amba-bus";
33 #address-cells = <1>;
34 #size-cells = <1>;
35 ranges;
36
37 dmac1_s: dma-controller@20018000 {
38 compatible = "arm,pl330", "arm,primecell";
39 reg = <0x20018000 0x4000>;
40 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
41 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
42 #dma-cells = <1>;
43 clocks = <&cru ACLK_DMA1>;
44 clock-names = "apb_pclk";
45 };
46
47 dmac1_ns: dma-controller@2001c000 {
48 compatible = "arm,pl330", "arm,primecell";
49 reg = <0x2001c000 0x4000>;
50 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
51 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
52 #dma-cells = <1>;
53 clocks = <&cru ACLK_DMA1>;
54 clock-names = "apb_pclk";
55 status = "disabled";
56 };
57
58 dmac2: dma-controller@20078000 {
59 compatible = "arm,pl330", "arm,primecell";
60 reg = <0x20078000 0x4000>;
61 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
62 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
63 #dma-cells = <1>;
64 clocks = <&cru ACLK_DMA2>;
65 clock-names = "apb_pclk";
66 };
67 };
68
Heiko Stuebner560106c2014-04-15 19:44:59 +020069 xin24m: oscillator {
70 compatible = "fixed-clock";
71 clock-frequency = <24000000>;
72 #clock-cells = <0>;
73 clock-output-names = "xin24m";
74 };
75
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020076 L2: l2-cache-controller@10138000 {
77 compatible = "arm,pl310-cache";
78 reg = <0x10138000 0x1000>;
79 cache-unified;
80 cache-level = <2>;
81 };
82
Heiko Stuebnerff84b902014-07-26 23:28:03 +020083 scu@1013c000 {
84 compatible = "arm,cortex-a9-scu";
85 reg = <0x1013c000 0x100>;
86 };
87
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020088 global_timer: global-timer@1013c200 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020089 compatible = "arm,cortex-a9-global-timer";
90 reg = <0x1013c200 0x20>;
91 interrupts = <GIC_PPI 11 0x304>;
92 clocks = <&cru CORE_PERI>;
93 };
94
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020095 local_timer: local-timer@1013c600 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020096 compatible = "arm,cortex-a9-twd-timer";
97 reg = <0x1013c600 0x20>;
98 interrupts = <GIC_PPI 13 0x304>;
99 clocks = <&cru CORE_PERI>;
100 };
101
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200102 gic: interrupt-controller@1013d000 {
103 compatible = "arm,cortex-a9-gic";
104 interrupt-controller;
105 #interrupt-cells = <3>;
106 reg = <0x1013d000 0x1000>,
107 <0x1013c100 0x0100>;
108 };
109
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200110 uart0: serial@10124000 {
111 compatible = "snps,dw-apb-uart";
112 reg = <0x10124000 0x400>;
113 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
114 reg-shift = <2>;
115 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200116 clock-names = "baudclk", "apb_pclk";
117 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200118 status = "disabled";
119 };
120
121 uart1: serial@10126000 {
122 compatible = "snps,dw-apb-uart";
123 reg = <0x10126000 0x400>;
124 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
125 reg-shift = <2>;
126 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200127 clock-names = "baudclk", "apb_pclk";
128 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200129 status = "disabled";
130 };
131
Heiko Stuebnere40b43d2014-07-26 18:53:07 +0200132 mmc0: dwmmc@10214000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200133 compatible = "rockchip,rk2928-dw-mshc";
134 reg = <0x10214000 0x1000>;
135 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200136 #address-cells = <1>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200137 #size-cells = <0>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200138
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200139 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
140 clock-names = "biu", "ciu";
Heiko Stuebnerf6f70cf2013-06-17 21:28:57 +0200141
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200142 status = "disabled";
143 };
Heiko Stuebner46b82192013-06-17 22:17:16 +0200144
Heiko Stuebnere40b43d2014-07-26 18:53:07 +0200145 mmc1: dwmmc@10218000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200146 compatible = "rockchip,rk2928-dw-mshc";
147 reg = <0x10218000 0x1000>;
148 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
149 #address-cells = <1>;
150 #size-cells = <0>;
Heiko Stuebner56f2b892014-04-29 22:02:52 +0200151
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200152 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
153 clock-names = "biu", "ciu";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200154
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200155 status = "disabled";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200156 };
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200157
158 pmu: pmu@20004000 {
159 compatible = "rockchip,rk3066-pmu", "syscon";
160 reg = <0x20004000 0x100>;
161 };
162
163 grf: grf@20008000 {
164 compatible = "syscon";
165 reg = <0x20008000 0x200>;
166 };
167
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200168 i2c0: i2c@2002d000 {
169 compatible = "rockchip,rk3066-i2c";
170 reg = <0x2002d000 0x1000>;
171 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
172 #address-cells = <1>;
173 #size-cells = <0>;
174
175 rockchip,grf = <&grf>;
176 rockchip,bus-index = <0>;
177
178 clock-names = "i2c";
179 clocks = <&cru PCLK_I2C0>;
180
181 status = "disabled";
182 };
183
184 i2c1: i2c@2002f000 {
185 compatible = "rockchip,rk3066-i2c";
186 reg = <0x2002f000 0x1000>;
187 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
188 #address-cells = <1>;
189 #size-cells = <0>;
190
191 rockchip,grf = <&grf>;
192
193 clocks = <&cru PCLK_I2C1>;
194 clock-names = "i2c";
195
196 status = "disabled";
197 };
198
Beniamino Galvani550c7f42014-06-26 20:03:41 +0200199 pwm0: pwm@20030000 {
200 compatible = "rockchip,rk2928-pwm";
201 reg = <0x20030000 0x10>;
202 #pwm-cells = <2>;
203 clocks = <&cru PCLK_PWM01>;
204 status = "disabled";
205 };
206
207 pwm1: pwm@20030010 {
208 compatible = "rockchip,rk2928-pwm";
209 reg = <0x20030010 0x10>;
210 #pwm-cells = <2>;
211 clocks = <&cru PCLK_PWM01>;
212 status = "disabled";
213 };
214
Heiko Stuebnereb2b9d42014-07-30 10:16:17 +0200215 wdt: watchdog@2004c000 {
216 compatible = "snps,dw-wdt";
217 reg = <0x2004c000 0x100>;
218 clocks = <&cru PCLK_WDT>;
219 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
220 status = "disabled";
221 };
222
Beniamino Galvani550c7f42014-06-26 20:03:41 +0200223 pwm2: pwm@20050020 {
224 compatible = "rockchip,rk2928-pwm";
225 reg = <0x20050020 0x10>;
226 #pwm-cells = <2>;
227 clocks = <&cru PCLK_PWM23>;
228 status = "disabled";
229 };
230
231 pwm3: pwm@20050030 {
232 compatible = "rockchip,rk2928-pwm";
233 reg = <0x20050030 0x10>;
234 #pwm-cells = <2>;
235 clocks = <&cru PCLK_PWM23>;
236 status = "disabled";
237 };
238
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200239 i2c2: i2c@20056000 {
240 compatible = "rockchip,rk3066-i2c";
241 reg = <0x20056000 0x1000>;
242 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
243 #address-cells = <1>;
244 #size-cells = <0>;
245
246 rockchip,grf = <&grf>;
247
248 clocks = <&cru PCLK_I2C2>;
249 clock-names = "i2c";
250
251 status = "disabled";
252 };
253
254 i2c3: i2c@2005a000 {
255 compatible = "rockchip,rk3066-i2c";
256 reg = <0x2005a000 0x1000>;
257 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
258 #address-cells = <1>;
259 #size-cells = <0>;
260
261 rockchip,grf = <&grf>;
262
263 clocks = <&cru PCLK_I2C3>;
264 clock-names = "i2c";
265
266 status = "disabled";
267 };
268
269 i2c4: i2c@2005e000 {
270 compatible = "rockchip,rk3066-i2c";
271 reg = <0x2005e000 0x1000>;
272 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
273 #address-cells = <1>;
274 #size-cells = <0>;
275
276 rockchip,grf = <&grf>;
277
278 clocks = <&cru PCLK_I2C4>;
279 clock-names = "i2c";
280
281 status = "disabled";
282 };
283
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200284 uart2: serial@20064000 {
285 compatible = "snps,dw-apb-uart";
286 reg = <0x20064000 0x400>;
287 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
288 reg-shift = <2>;
289 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200290 clock-names = "baudclk", "apb_pclk";
291 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200292 status = "disabled";
293 };
294
295 uart3: serial@20068000 {
296 compatible = "snps,dw-apb-uart";
297 reg = <0x20068000 0x400>;
298 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
299 reg-shift = <2>;
300 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200301 clock-names = "baudclk", "apb_pclk";
302 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200303 status = "disabled";
304 };
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200305};