blob: 989c33785ec456010c04438c5f41b5e150789d60 [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 Stuebner560106c2014-04-15 19:44:59 +020031 xin24m: oscillator {
32 compatible = "fixed-clock";
33 clock-frequency = <24000000>;
34 #clock-cells = <0>;
35 clock-output-names = "xin24m";
36 };
37
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020038 L2: l2-cache-controller@10138000 {
39 compatible = "arm,pl310-cache";
40 reg = <0x10138000 0x1000>;
41 cache-unified;
42 cache-level = <2>;
43 };
44
Heiko Stuebnerff84b902014-07-26 23:28:03 +020045 scu@1013c000 {
46 compatible = "arm,cortex-a9-scu";
47 reg = <0x1013c000 0x100>;
48 };
49
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020050 global_timer: global-timer@1013c200 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020051 compatible = "arm,cortex-a9-global-timer";
52 reg = <0x1013c200 0x20>;
53 interrupts = <GIC_PPI 11 0x304>;
54 clocks = <&cru CORE_PERI>;
55 };
56
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020057 local_timer: local-timer@1013c600 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020058 compatible = "arm,cortex-a9-twd-timer";
59 reg = <0x1013c600 0x20>;
60 interrupts = <GIC_PPI 13 0x304>;
61 clocks = <&cru CORE_PERI>;
62 };
63
Heiko Stuebnerff84b902014-07-26 23:28:03 +020064 gic: interrupt-controller@1013d000 {
65 compatible = "arm,cortex-a9-gic";
66 interrupt-controller;
67 #interrupt-cells = <3>;
68 reg = <0x1013d000 0x1000>,
69 <0x1013c100 0x0100>;
70 };
71
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020072 uart0: serial@10124000 {
73 compatible = "snps,dw-apb-uart";
74 reg = <0x10124000 0x400>;
75 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
76 reg-shift = <2>;
77 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +020078 clock-names = "baudclk", "apb_pclk";
79 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020080 status = "disabled";
81 };
82
83 uart1: serial@10126000 {
84 compatible = "snps,dw-apb-uart";
85 reg = <0x10126000 0x400>;
86 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
87 reg-shift = <2>;
88 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +020089 clock-names = "baudclk", "apb_pclk";
90 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020091 status = "disabled";
92 };
93
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020094 mmc0: dwmmc@10214000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020095 compatible = "rockchip,rk2928-dw-mshc";
96 reg = <0x10214000 0x1000>;
97 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +020098 #address-cells = <1>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020099 #size-cells = <0>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200100
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200101 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
102 clock-names = "biu", "ciu";
Heiko Stuebnerf6f70cf2013-06-17 21:28:57 +0200103
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200104 status = "disabled";
105 };
Heiko Stuebner46b82192013-06-17 22:17:16 +0200106
Heiko Stuebnere40b43d2014-07-26 18:53:07 +0200107 mmc1: dwmmc@10218000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200108 compatible = "rockchip,rk2928-dw-mshc";
109 reg = <0x10218000 0x1000>;
110 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
111 #address-cells = <1>;
112 #size-cells = <0>;
Heiko Stuebner56f2b892014-04-29 22:02:52 +0200113
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200114 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
115 clock-names = "biu", "ciu";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200116
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200117 status = "disabled";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200118 };
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200119
120 pmu: pmu@20004000 {
121 compatible = "rockchip,rk3066-pmu", "syscon";
122 reg = <0x20004000 0x100>;
123 };
124
125 grf: grf@20008000 {
126 compatible = "syscon";
127 reg = <0x20008000 0x200>;
128 };
129
Heiko Stuebner9cdffd82014-06-24 20:12:06 +0200130 i2c0: i2c@2002d000 {
131 compatible = "rockchip,rk3066-i2c";
132 reg = <0x2002d000 0x1000>;
133 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
134 #address-cells = <1>;
135 #size-cells = <0>;
136
137 rockchip,grf = <&grf>;
138 rockchip,bus-index = <0>;
139
140 clock-names = "i2c";
141 clocks = <&cru PCLK_I2C0>;
142
143 status = "disabled";
144 };
145
146 i2c1: i2c@2002f000 {
147 compatible = "rockchip,rk3066-i2c";
148 reg = <0x2002f000 0x1000>;
149 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
150 #address-cells = <1>;
151 #size-cells = <0>;
152
153 rockchip,grf = <&grf>;
154
155 clocks = <&cru PCLK_I2C1>;
156 clock-names = "i2c";
157
158 status = "disabled";
159 };
160
161 i2c2: i2c@20056000 {
162 compatible = "rockchip,rk3066-i2c";
163 reg = <0x20056000 0x1000>;
164 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
165 #address-cells = <1>;
166 #size-cells = <0>;
167
168 rockchip,grf = <&grf>;
169
170 clocks = <&cru PCLK_I2C2>;
171 clock-names = "i2c";
172
173 status = "disabled";
174 };
175
176 i2c3: i2c@2005a000 {
177 compatible = "rockchip,rk3066-i2c";
178 reg = <0x2005a000 0x1000>;
179 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
180 #address-cells = <1>;
181 #size-cells = <0>;
182
183 rockchip,grf = <&grf>;
184
185 clocks = <&cru PCLK_I2C3>;
186 clock-names = "i2c";
187
188 status = "disabled";
189 };
190
191 i2c4: i2c@2005e000 {
192 compatible = "rockchip,rk3066-i2c";
193 reg = <0x2005e000 0x1000>;
194 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
195 #address-cells = <1>;
196 #size-cells = <0>;
197
198 rockchip,grf = <&grf>;
199
200 clocks = <&cru PCLK_I2C4>;
201 clock-names = "i2c";
202
203 status = "disabled";
204 };
205
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200206 uart2: serial@20064000 {
207 compatible = "snps,dw-apb-uart";
208 reg = <0x20064000 0x400>;
209 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
210 reg-shift = <2>;
211 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200212 clock-names = "baudclk", "apb_pclk";
213 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200214 status = "disabled";
215 };
216
217 uart3: serial@20068000 {
218 compatible = "snps,dw-apb-uart";
219 reg = <0x20068000 0x400>;
220 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
221 reg-shift = <2>;
222 reg-io-width = <1>;
Heiko Stuebner69667ca2014-06-26 16:06:12 +0200223 clock-names = "baudclk", "apb_pclk";
224 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200225 status = "disabled";
226 };
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200227};