blob: fc07f7089b854d4b45b909ffeaafe25b5013b064 [file] [log] [blame]
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/include/ "skeleton.dtsi"
15
16/ {
17 interrupt-parent = <&gic>;
18
Maxime Ripard54428d42014-01-02 22:05:04 +010019 aliases {
20 serial0 = &uart0;
21 serial1 = &uart1;
22 serial2 = &uart2;
23 serial3 = &uart3;
24 serial4 = &uart4;
25 serial5 = &uart5;
26 };
27
28
Maxime Ripard8aed3b32013-03-10 16:09:06 +010029 cpus {
30 #address-cells = <1>;
31 #size-cells = <0>;
32
33 cpu@0 {
34 compatible = "arm,cortex-a7";
35 device_type = "cpu";
36 reg = <0>;
37 };
38
39 cpu@1 {
40 compatible = "arm,cortex-a7";
41 device_type = "cpu";
42 reg = <1>;
43 };
44
45 cpu@2 {
46 compatible = "arm,cortex-a7";
47 device_type = "cpu";
48 reg = <2>;
49 };
50
51 cpu@3 {
52 compatible = "arm,cortex-a7";
53 device_type = "cpu";
54 reg = <3>;
55 };
56 };
57
58 memory {
59 reg = <0x40000000 0x80000000>;
60 };
61
62 clocks {
63 #address-cells = <1>;
Maxime Ripard98096562013-07-23 23:54:19 +020064 #size-cells = <1>;
65 ranges;
Maxime Ripard8aed3b32013-03-10 16:09:06 +010066
Maxime Ripard98096562013-07-23 23:54:19 +020067 osc24M: osc24M {
Maxime Ripard8aed3b32013-03-10 16:09:06 +010068 #clock-cells = <0>;
69 compatible = "fixed-clock";
70 clock-frequency = <24000000>;
71 };
Maxime Ripard98096562013-07-23 23:54:19 +020072
73 osc32k: osc32k {
74 #clock-cells = <0>;
75 compatible = "fixed-clock";
76 clock-frequency = <32768>;
77 };
78
79 pll1: pll1@01c20000 {
80 #clock-cells = <0>;
81 compatible = "allwinner,sun6i-a31-pll1-clk";
82 reg = <0x01c20000 0x4>;
83 clocks = <&osc24M>;
84 };
85
Maxime Ripardb0a09c72014-02-05 14:05:04 +010086 pll6: clk@01c20028 {
Maxime Ripard98096562013-07-23 23:54:19 +020087 #clock-cells = <0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +010088 compatible = "allwinner,sun6i-a31-pll6-clk";
89 reg = <0x01c20028 0x4>;
90 clocks = <&osc24M>;
91 clock-output-names = "pll6";
Maxime Ripard98096562013-07-23 23:54:19 +020092 };
93
94 cpu: cpu@01c20050 {
95 #clock-cells = <0>;
96 compatible = "allwinner,sun4i-cpu-clk";
97 reg = <0x01c20050 0x4>;
98
99 /*
100 * PLL1 is listed twice here.
101 * While it looks suspicious, it's actually documented
102 * that way both in the datasheet and in the code from
103 * Allwinner.
104 */
105 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
106 };
107
108 axi: axi@01c20050 {
109 #clock-cells = <0>;
110 compatible = "allwinner,sun4i-axi-clk";
111 reg = <0x01c20050 0x4>;
112 clocks = <&cpu>;
113 };
114
115 ahb1_mux: ahb1_mux@01c20054 {
116 #clock-cells = <0>;
117 compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
118 reg = <0x01c20054 0x4>;
119 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>;
120 };
121
122 ahb1: ahb1@01c20054 {
123 #clock-cells = <0>;
124 compatible = "allwinner,sun4i-ahb-clk";
125 reg = <0x01c20054 0x4>;
126 clocks = <&ahb1_mux>;
127 };
128
129 ahb1_gates: ahb1_gates@01c20060 {
130 #clock-cells = <1>;
131 compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
132 reg = <0x01c20060 0x8>;
133 clocks = <&ahb1>;
134 clock-output-names = "ahb1_mipidsi", "ahb1_ss",
135 "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
136 "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
137 "ahb1_nand0", "ahb1_sdram",
138 "ahb1_gmac", "ahb1_ts", "ahb1_hstimer",
139 "ahb1_spi0", "ahb1_spi1", "ahb1_spi2",
140 "ahb1_spi3", "ahb1_otg", "ahb1_ehci0",
141 "ahb1_ehci1", "ahb1_ohci0",
142 "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve",
143 "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi",
144 "ahb1_hdmi", "ahb1_de0", "ahb1_de1",
145 "ahb1_fe0", "ahb1_fe1", "ahb1_mp",
146 "ahb1_gpu", "ahb1_deu0", "ahb1_deu1",
147 "ahb1_drc0", "ahb1_drc1";
148 };
149
150 apb1: apb1@01c20054 {
151 #clock-cells = <0>;
152 compatible = "allwinner,sun4i-apb0-clk";
153 reg = <0x01c20054 0x4>;
154 clocks = <&ahb1>;
155 };
156
157 apb1_gates: apb1_gates@01c20060 {
158 #clock-cells = <1>;
159 compatible = "allwinner,sun6i-a31-apb1-gates-clk";
160 reg = <0x01c20068 0x4>;
161 clocks = <&apb1>;
162 clock-output-names = "apb1_codec", "apb1_digital_mic",
163 "apb1_pio", "apb1_daudio0",
164 "apb1_daudio1";
165 };
166
167 apb2_mux: apb2_mux@01c20058 {
168 #clock-cells = <0>;
169 compatible = "allwinner,sun4i-apb1-mux-clk";
170 reg = <0x01c20058 0x4>;
171 clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
172 };
173
174 apb2: apb2@01c20058 {
175 #clock-cells = <0>;
176 compatible = "allwinner,sun6i-a31-apb2-div-clk";
177 reg = <0x01c20058 0x4>;
178 clocks = <&apb2_mux>;
179 };
180
181 apb2_gates: apb2_gates@01c2006c {
182 #clock-cells = <1>;
183 compatible = "allwinner,sun6i-a31-apb2-gates-clk";
Maxime Ripard439d9f52013-09-24 16:30:05 +0300184 reg = <0x01c2006c 0x4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200185 clocks = <&apb2>;
186 clock-output-names = "apb2_i2c0", "apb2_i2c1",
187 "apb2_i2c2", "apb2_i2c3", "apb2_uart0",
188 "apb2_uart1", "apb2_uart2", "apb2_uart3",
189 "apb2_uart4", "apb2_uart5";
190 };
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100191
192 spi0_clk: clk@01c200a0 {
193 #clock-cells = <0>;
194 compatible = "allwinner,sun4i-mod0-clk";
195 reg = <0x01c200a0 0x4>;
196 clocks = <&osc24M>, <&pll6>;
197 clock-output-names = "spi0";
198 };
199
200 spi1_clk: clk@01c200a4 {
201 #clock-cells = <0>;
202 compatible = "allwinner,sun4i-mod0-clk";
203 reg = <0x01c200a4 0x4>;
204 clocks = <&osc24M>, <&pll6>;
205 clock-output-names = "spi1";
206 };
207
208 spi2_clk: clk@01c200a8 {
209 #clock-cells = <0>;
210 compatible = "allwinner,sun4i-mod0-clk";
211 reg = <0x01c200a8 0x4>;
212 clocks = <&osc24M>, <&pll6>;
213 clock-output-names = "spi2";
214 };
215
216 spi3_clk: clk@01c200ac {
217 #clock-cells = <0>;
218 compatible = "allwinner,sun4i-mod0-clk";
219 reg = <0x01c200ac 0x4>;
220 clocks = <&osc24M>, <&pll6>;
221 clock-output-names = "spi3";
222 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100223 };
224
225 soc@01c00000 {
226 compatible = "simple-bus";
227 #address-cells = <1>;
228 #size-cells = <1>;
229 ranges;
230
Maxime Ripard140e1722013-03-12 22:16:05 +0100231 pio: pinctrl@01c20800 {
232 compatible = "allwinner,sun6i-a31-pinctrl";
233 reg = <0x01c20800 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100234 interrupts = <0 11 4>,
235 <0 15 4>,
236 <0 16 4>,
237 <0 17 4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200238 clocks = <&apb1_gates 5>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100239 gpio-controller;
240 interrupt-controller;
241 #address-cells = <1>;
242 #size-cells = <0>;
243 #gpio-cells = <3>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200244
245 uart0_pins_a: uart0@0 {
246 allwinner,pins = "PH20", "PH21";
247 allwinner,function = "uart0";
248 allwinner,drive = <0>;
249 allwinner,pull = <0>;
250 };
Maxime Ripard140e1722013-03-12 22:16:05 +0100251 };
252
Maxime Ripard24a661e92013-09-24 11:10:41 +0300253 ahb1_rst: reset@01c202c0 {
254 #reset-cells = <1>;
255 compatible = "allwinner,sun6i-a31-ahb1-reset";
256 reg = <0x01c202c0 0xc>;
257 };
258
259 apb1_rst: reset@01c202d0 {
260 #reset-cells = <1>;
261 compatible = "allwinner,sun6i-a31-clock-reset";
262 reg = <0x01c202d0 0x4>;
263 };
264
265 apb2_rst: reset@01c202d8 {
266 #reset-cells = <1>;
267 compatible = "allwinner,sun6i-a31-clock-reset";
268 reg = <0x01c202d8 0x4>;
269 };
270
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100271 timer@01c20c00 {
272 compatible = "allwinner,sun4i-timer";
273 reg = <0x01c20c00 0xa0>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100274 interrupts = <0 18 4>,
275 <0 19 4>,
276 <0 20 4>,
277 <0 21 4>,
278 <0 22 4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200279 clocks = <&osc24M>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100280 };
281
282 wdt1: watchdog@01c20ca0 {
283 compatible = "allwinner,sun6i-wdt";
284 reg = <0x01c20ca0 0x20>;
285 };
286
287 uart0: serial@01c28000 {
288 compatible = "snps,dw-apb-uart";
289 reg = <0x01c28000 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100290 interrupts = <0 0 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100291 reg-shift = <2>;
292 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200293 clocks = <&apb2_gates 16>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300294 resets = <&apb2_rst 16>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100295 status = "disabled";
296 };
297
298 uart1: serial@01c28400 {
299 compatible = "snps,dw-apb-uart";
300 reg = <0x01c28400 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100301 interrupts = <0 1 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100302 reg-shift = <2>;
303 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200304 clocks = <&apb2_gates 17>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300305 resets = <&apb2_rst 17>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100306 status = "disabled";
307 };
308
309 uart2: serial@01c28800 {
310 compatible = "snps,dw-apb-uart";
311 reg = <0x01c28800 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100312 interrupts = <0 2 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100313 reg-shift = <2>;
314 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200315 clocks = <&apb2_gates 18>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300316 resets = <&apb2_rst 18>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100317 status = "disabled";
318 };
319
320 uart3: serial@01c28c00 {
321 compatible = "snps,dw-apb-uart";
322 reg = <0x01c28c00 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100323 interrupts = <0 3 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100324 reg-shift = <2>;
325 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200326 clocks = <&apb2_gates 19>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300327 resets = <&apb2_rst 19>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100328 status = "disabled";
329 };
330
331 uart4: serial@01c29000 {
332 compatible = "snps,dw-apb-uart";
333 reg = <0x01c29000 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100334 interrupts = <0 4 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100335 reg-shift = <2>;
336 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200337 clocks = <&apb2_gates 20>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300338 resets = <&apb2_rst 20>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100339 status = "disabled";
340 };
341
342 uart5: serial@01c29400 {
343 compatible = "snps,dw-apb-uart";
344 reg = <0x01c29400 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100345 interrupts = <0 5 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100346 reg-shift = <2>;
347 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200348 clocks = <&apb2_gates 21>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300349 resets = <&apb2_rst 21>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100350 status = "disabled";
351 };
352
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100353 spi0: spi@01c68000 {
354 compatible = "allwinner,sun6i-a31-spi";
355 reg = <0x01c68000 0x1000>;
356 interrupts = <0 65 4>;
357 clocks = <&ahb1_gates 20>, <&spi0_clk>;
358 clock-names = "ahb", "mod";
359 resets = <&ahb1_rst 20>;
360 status = "disabled";
361 };
362
363 spi1: spi@01c69000 {
364 compatible = "allwinner,sun6i-a31-spi";
365 reg = <0x01c69000 0x1000>;
366 interrupts = <0 66 4>;
367 clocks = <&ahb1_gates 21>, <&spi1_clk>;
368 clock-names = "ahb", "mod";
369 resets = <&ahb1_rst 21>;
370 status = "disabled";
371 };
372
373 spi2: spi@01c6a000 {
374 compatible = "allwinner,sun6i-a31-spi";
375 reg = <0x01c6a000 0x1000>;
376 interrupts = <0 67 4>;
377 clocks = <&ahb1_gates 22>, <&spi2_clk>;
378 clock-names = "ahb", "mod";
379 resets = <&ahb1_rst 22>;
380 status = "disabled";
381 };
382
383 spi3: spi@01c6b000 {
384 compatible = "allwinner,sun6i-a31-spi";
385 reg = <0x01c6b000 0x1000>;
386 interrupts = <0 68 4>;
387 clocks = <&ahb1_gates 23>, <&spi3_clk>;
388 clock-names = "ahb", "mod";
389 resets = <&ahb1_rst 23>;
390 status = "disabled";
391 };
392
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100393 gic: interrupt-controller@01c81000 {
394 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
395 reg = <0x01c81000 0x1000>,
396 <0x01c82000 0x1000>,
397 <0x01c84000 0x2000>,
398 <0x01c86000 0x2000>;
399 interrupt-controller;
400 #interrupt-cells = <3>;
401 interrupts = <1 9 0xf04>;
402 };
Maxime Ripard81ee4292013-11-03 10:30:12 +0100403
404 cpucfg@01f01c00 {
405 compatible = "allwinner,sun6i-a31-cpuconfig";
406 reg = <0x01f01c00 0x300>;
407 };
408
409 prcm@01f01c00 {
410 compatible = "allwinner,sun6i-a31-prcm";
411 reg = <0x01f01400 0x200>;
412 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100413 };
414};