2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
44 #include <dt-bindings/interrupt-controller/irq.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include "skeleton.dtsi"
49 interrupt-parent = <&gic>;
69 compatible = "arm,amba-bus";
74 dmac1_s: dma-controller@20018000 {
75 compatible = "arm,pl330", "arm,primecell";
76 reg = <0x20018000 0x4000>;
77 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
78 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
80 clocks = <&cru ACLK_DMA1>;
81 clock-names = "apb_pclk";
84 dmac1_ns: dma-controller@2001c000 {
85 compatible = "arm,pl330", "arm,primecell";
86 reg = <0x2001c000 0x4000>;
87 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
88 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
90 clocks = <&cru ACLK_DMA1>;
91 clock-names = "apb_pclk";
95 dmac2: dma-controller@20078000 {
96 compatible = "arm,pl330", "arm,primecell";
97 reg = <0x20078000 0x4000>;
98 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
99 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
101 clocks = <&cru ACLK_DMA2>;
102 clock-names = "apb_pclk";
107 compatible = "fixed-clock";
108 clock-frequency = <24000000>;
110 clock-output-names = "xin24m";
113 L2: l2-cache-controller@10138000 {
114 compatible = "arm,pl310-cache";
115 reg = <0x10138000 0x1000>;
121 compatible = "arm,cortex-a9-scu";
122 reg = <0x1013c000 0x100>;
125 global_timer: global-timer@1013c200 {
126 compatible = "arm,cortex-a9-global-timer";
127 reg = <0x1013c200 0x20>;
128 interrupts = <GIC_PPI 11 0x304>;
129 clocks = <&cru CORE_PERI>;
132 local_timer: local-timer@1013c600 {
133 compatible = "arm,cortex-a9-twd-timer";
134 reg = <0x1013c600 0x20>;
135 interrupts = <GIC_PPI 13 0x304>;
136 clocks = <&cru CORE_PERI>;
139 gic: interrupt-controller@1013d000 {
140 compatible = "arm,cortex-a9-gic";
141 interrupt-controller;
142 #interrupt-cells = <3>;
143 reg = <0x1013d000 0x1000>,
147 uart0: serial@10124000 {
148 compatible = "snps,dw-apb-uart";
149 reg = <0x10124000 0x400>;
150 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
153 clock-names = "baudclk", "apb_pclk";
154 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
158 uart1: serial@10126000 {
159 compatible = "snps,dw-apb-uart";
160 reg = <0x10126000 0x400>;
161 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
164 clock-names = "baudclk", "apb_pclk";
165 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
169 usb_otg: usb@10180000 {
170 compatible = "rockchip,rk3066-usb", "snps,dwc2";
171 reg = <0x10180000 0x40000>;
172 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
173 clocks = <&cru HCLK_OTG0>;
178 usb_host: usb@101c0000 {
179 compatible = "snps,dwc2";
180 reg = <0x101c0000 0x40000>;
181 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
182 clocks = <&cru HCLK_OTG1>;
187 emac: ethernet@10204000 {
188 compatible = "snps,arc-emac";
189 reg = <0x10204000 0x3c>;
190 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
191 #address-cells = <1>;
194 rockchip,grf = <&grf>;
196 clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
197 clock-names = "hclk", "macref";
204 mmc0: dwmmc@10214000 {
205 compatible = "rockchip,rk2928-dw-mshc";
206 reg = <0x10214000 0x1000>;
207 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
208 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
209 clock-names = "biu", "ciu";
214 mmc1: dwmmc@10218000 {
215 compatible = "rockchip,rk2928-dw-mshc";
216 reg = <0x10218000 0x1000>;
217 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
218 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
219 clock-names = "biu", "ciu";
224 emmc: dwmmc@1021c000 {
225 compatible = "rockchip,rk2928-dw-mshc";
226 reg = <0x1021c000 0x1000>;
227 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
228 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
229 clock-names = "biu", "ciu";
235 compatible = "rockchip,rk3066-pmu", "syscon";
236 reg = <0x20004000 0x100>;
240 compatible = "syscon";
241 reg = <0x20008000 0x200>;
245 compatible = "rockchip,rk3066-i2c";
246 reg = <0x2002d000 0x1000>;
247 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
248 #address-cells = <1>;
251 rockchip,grf = <&grf>;
254 clocks = <&cru PCLK_I2C0>;
260 compatible = "rockchip,rk3066-i2c";
261 reg = <0x2002f000 0x1000>;
262 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
263 #address-cells = <1>;
266 rockchip,grf = <&grf>;
268 clocks = <&cru PCLK_I2C1>;
275 compatible = "rockchip,rk2928-pwm";
276 reg = <0x20030000 0x10>;
278 clocks = <&cru PCLK_PWM01>;
283 compatible = "rockchip,rk2928-pwm";
284 reg = <0x20030010 0x10>;
286 clocks = <&cru PCLK_PWM01>;
290 wdt: watchdog@2004c000 {
291 compatible = "snps,dw-wdt";
292 reg = <0x2004c000 0x100>;
293 clocks = <&cru PCLK_WDT>;
294 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
299 compatible = "rockchip,rk2928-pwm";
300 reg = <0x20050020 0x10>;
302 clocks = <&cru PCLK_PWM23>;
307 compatible = "rockchip,rk2928-pwm";
308 reg = <0x20050030 0x10>;
310 clocks = <&cru PCLK_PWM23>;
315 compatible = "rockchip,rk3066-i2c";
316 reg = <0x20056000 0x1000>;
317 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
318 #address-cells = <1>;
321 rockchip,grf = <&grf>;
323 clocks = <&cru PCLK_I2C2>;
330 compatible = "rockchip,rk3066-i2c";
331 reg = <0x2005a000 0x1000>;
332 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
333 #address-cells = <1>;
336 rockchip,grf = <&grf>;
338 clocks = <&cru PCLK_I2C3>;
345 compatible = "rockchip,rk3066-i2c";
346 reg = <0x2005e000 0x1000>;
347 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
348 #address-cells = <1>;
351 rockchip,grf = <&grf>;
353 clocks = <&cru PCLK_I2C4>;
359 uart2: serial@20064000 {
360 compatible = "snps,dw-apb-uart";
361 reg = <0x20064000 0x400>;
362 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
365 clock-names = "baudclk", "apb_pclk";
366 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
370 uart3: serial@20068000 {
371 compatible = "snps,dw-apb-uart";
372 reg = <0x20068000 0x400>;
373 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
376 clock-names = "baudclk", "apb_pclk";
377 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
381 saradc: saradc@2006c000 {
382 compatible = "rockchip,saradc";
383 reg = <0x2006c000 0x100>;
384 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
385 #io-channel-cells = <1>;
386 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
387 clock-names = "saradc", "apb_pclk";
392 compatible = "rockchip,rk3066-spi";
393 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
394 clock-names = "spiclk", "apb_pclk";
395 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
396 reg = <0x20070000 0x1000>;
397 #address-cells = <1>;
399 dmas = <&dmac2 10>, <&dmac2 11>;
400 dma-names = "tx", "rx";
405 compatible = "rockchip,rk3066-spi";
406 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
407 clock-names = "spiclk", "apb_pclk";
408 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
409 reg = <0x20074000 0x1000>;
410 #address-cells = <1>;
412 dmas = <&dmac2 12>, <&dmac2 13>;
413 dma-names = "tx", "rx";