2 * Copyright 2014 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public
22 * License along with this file; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
50 /include/ "skeleton.dtsi"
53 interrupt-parent = <&gic>;
60 compatible = "arm,cortex-a7";
66 compatible = "arm,cortex-a7";
73 reg = <0x40000000 0x40000000>;
83 compatible = "fixed-clock";
84 clock-frequency = <24000000>;
85 clock-output-names = "osc24M";
90 compatible = "fixed-clock";
91 clock-frequency = <32768>;
92 clock-output-names = "osc32k";
97 compatible = "allwinner,sun8i-a23-pll1-clk";
98 reg = <0x01c20000 0x4>;
100 clock-output-names = "pll1";
103 /* dummy clock until actually implemented */
106 compatible = "fixed-clock";
107 clock-frequency = <600000000>;
108 clock-output-names = "pll6";
111 cpu: cpu_clk@01c20050 {
113 compatible = "allwinner,sun4i-a10-cpu-clk";
114 reg = <0x01c20050 0x4>;
117 * PLL1 is listed twice here.
118 * While it looks suspicious, it's actually documented
119 * that way both in the datasheet and in the code from
122 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
123 clock-output-names = "cpu";
126 axi: axi_clk@01c20050 {
128 compatible = "allwinner,sun8i-a23-axi-clk";
129 reg = <0x01c20050 0x4>;
131 clock-output-names = "axi";
134 ahb1_mux: ahb1_mux_clk@01c20054 {
136 compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
137 reg = <0x01c20054 0x4>;
138 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>;
139 clock-output-names = "ahb1_mux";
142 ahb1: ahb1_clk@01c20054 {
144 compatible = "allwinner,sun4i-a10-ahb-clk";
145 reg = <0x01c20054 0x4>;
146 clocks = <&ahb1_mux>;
147 clock-output-names = "ahb1";
150 apb1: apb1_clk@01c20054 {
152 compatible = "allwinner,sun4i-a10-apb0-clk";
153 reg = <0x01c20054 0x4>;
155 clock-output-names = "apb1";
158 ahb1_gates: clk@01c20060 {
160 compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
161 reg = <0x01c20060 0x8>;
163 clock-output-names = "ahb1_mipidsi", "ahb1_dma",
164 "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
165 "ahb1_nand", "ahb1_sdram",
166 "ahb1_hstimer", "ahb1_spi0",
167 "ahb1_spi1", "ahb1_otg", "ahb1_ehci",
168 "ahb1_ohci", "ahb1_ve", "ahb1_lcd",
169 "ahb1_csi", "ahb1_be", "ahb1_fe",
170 "ahb1_gpu", "ahb1_spinlock",
174 apb1_gates: clk@01c20068 {
176 compatible = "allwinner,sun8i-a23-apb1-gates-clk";
177 reg = <0x01c20068 0x4>;
179 clock-output-names = "apb1_codec", "apb1_pio",
180 "apb1_daudio0", "apb1_daudio1";
185 compatible = "allwinner,sun4i-a10-apb1-clk";
186 reg = <0x01c20058 0x4>;
187 clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
188 clock-output-names = "apb2";
191 apb2_gates: clk@01c2006c {
193 compatible = "allwinner,sun8i-a23-apb2-gates-clk";
194 reg = <0x01c2006c 0x4>;
196 clock-output-names = "apb2_i2c0", "apb2_i2c1",
197 "apb2_i2c2", "apb2_uart0",
198 "apb2_uart1", "apb2_uart2",
199 "apb2_uart3", "apb2_uart4";
202 mmc0_clk: clk@01c20088 {
204 compatible = "allwinner,sun4i-a10-mod0-clk";
205 reg = <0x01c20088 0x4>;
206 clocks = <&osc24M>, <&pll6>;
207 clock-output-names = "mmc0";
210 mmc1_clk: clk@01c2008c {
212 compatible = "allwinner,sun4i-a10-mod0-clk";
213 reg = <0x01c2008c 0x4>;
214 clocks = <&osc24M>, <&pll6>;
215 clock-output-names = "mmc1";
218 mmc2_clk: clk@01c20090 {
220 compatible = "allwinner,sun4i-a10-mod0-clk";
221 reg = <0x01c20090 0x4>;
222 clocks = <&osc24M>, <&pll6>;
223 clock-output-names = "mmc2";
228 compatible = "simple-bus";
229 #address-cells = <1>;
233 dma: dma-controller@01c02000 {
234 compatible = "allwinner,sun8i-a23-dma";
235 reg = <0x01c02000 0x1000>;
236 interrupts = <0 50 4>;
237 clocks = <&ahb1_gates 6>;
238 resets = <&ahb1_rst 6>;
243 compatible = "allwinner,sun5i-a13-mmc";
244 reg = <0x01c0f000 0x1000>;
245 clocks = <&ahb1_gates 8>, <&mmc0_clk>;
246 clock-names = "ahb", "mmc";
247 resets = <&ahb1_rst 8>;
249 interrupts = <0 60 4>;
254 compatible = "allwinner,sun5i-a13-mmc";
255 reg = <0x01c10000 0x1000>;
256 clocks = <&ahb1_gates 9>, <&mmc1_clk>;
257 clock-names = "ahb", "mmc";
258 resets = <&ahb1_rst 9>;
260 interrupts = <0 61 4>;
265 compatible = "allwinner,sun5i-a13-mmc";
266 reg = <0x01c11000 0x1000>;
267 clocks = <&ahb1_gates 10>, <&mmc2_clk>;
268 clock-names = "ahb", "mmc";
269 resets = <&ahb1_rst 10>;
271 interrupts = <0 62 4>;
275 pio: pinctrl@01c20800 {
276 compatible = "allwinner,sun8i-a23-pinctrl";
277 reg = <0x01c20800 0x400>;
278 interrupts = <0 11 4>,
281 clocks = <&apb1_gates 5>;
283 interrupt-controller;
284 #address-cells = <1>;
288 uart0_pins_a: uart0@0 {
289 allwinner,pins = "PF2", "PF4";
290 allwinner,function = "uart0";
291 allwinner,drive = <0>;
292 allwinner,pull = <0>;
295 mmc0_pins_a: mmc0@0 {
296 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
297 allwinner,function = "mmc0";
298 allwinner,drive = <2>;
299 allwinner,pull = <0>;
302 mmc1_pins_a: mmc1@0 {
303 allwinner,pins = "PG0","PG1","PG2","PG3","PG4","PG5";
304 allwinner,function = "mmc1";
305 allwinner,drive = <2>;
306 allwinner,pull = <0>;
309 i2c0_pins_a: i2c0@0 {
310 allwinner,pins = "PH2", "PH3";
311 allwinner,function = "i2c0";
312 allwinner,drive = <0>;
313 allwinner,pull = <0>;
316 i2c1_pins_a: i2c1@0 {
317 allwinner,pins = "PH4", "PH5";
318 allwinner,function = "i2c1";
319 allwinner,drive = <0>;
320 allwinner,pull = <0>;
323 i2c2_pins_a: i2c2@0 {
324 allwinner,pins = "PE12", "PE13";
325 allwinner,function = "i2c2";
326 allwinner,drive = <0>;
327 allwinner,pull = <0>;
331 ahb1_rst: reset@01c202c0 {
333 compatible = "allwinner,sun6i-a31-clock-reset";
334 reg = <0x01c202c0 0xc>;
337 apb1_rst: reset@01c202d0 {
339 compatible = "allwinner,sun6i-a31-clock-reset";
340 reg = <0x01c202d0 0x4>;
343 apb2_rst: reset@01c202d8 {
345 compatible = "allwinner,sun6i-a31-clock-reset";
346 reg = <0x01c202d8 0x4>;
350 compatible = "allwinner,sun4i-a10-timer";
351 reg = <0x01c20c00 0xa0>;
352 interrupts = <0 18 4>,
357 wdt0: watchdog@01c20ca0 {
358 compatible = "allwinner,sun6i-a31-wdt";
359 reg = <0x01c20ca0 0x20>;
360 interrupts = <0 25 4>;
363 uart0: serial@01c28000 {
364 compatible = "snps,dw-apb-uart";
365 reg = <0x01c28000 0x400>;
366 interrupts = <0 0 4>;
369 clocks = <&apb2_gates 16>;
370 resets = <&apb2_rst 16>;
371 dmas = <&dma 6>, <&dma 6>;
372 dma-names = "rx", "tx";
376 uart1: serial@01c28400 {
377 compatible = "snps,dw-apb-uart";
378 reg = <0x01c28400 0x400>;
379 interrupts = <0 1 4>;
382 clocks = <&apb2_gates 17>;
383 resets = <&apb2_rst 17>;
384 dmas = <&dma 7>, <&dma 7>;
385 dma-names = "rx", "tx";
389 uart2: serial@01c28800 {
390 compatible = "snps,dw-apb-uart";
391 reg = <0x01c28800 0x400>;
392 interrupts = <0 2 4>;
395 clocks = <&apb2_gates 18>;
396 resets = <&apb2_rst 18>;
397 dmas = <&dma 8>, <&dma 8>;
398 dma-names = "rx", "tx";
402 uart3: serial@01c28c00 {
403 compatible = "snps,dw-apb-uart";
404 reg = <0x01c28c00 0x400>;
405 interrupts = <0 3 4>;
408 clocks = <&apb2_gates 19>;
409 resets = <&apb2_rst 19>;
410 dmas = <&dma 9>, <&dma 9>;
411 dma-names = "rx", "tx";
415 uart4: serial@01c29000 {
416 compatible = "snps,dw-apb-uart";
417 reg = <0x01c29000 0x400>;
418 interrupts = <0 4 4>;
421 clocks = <&apb2_gates 20>;
422 resets = <&apb2_rst 20>;
423 dmas = <&dma 10>, <&dma 10>;
424 dma-names = "rx", "tx";
429 compatible = "allwinner,sun6i-a31-i2c";
430 reg = <0x01c2ac00 0x400>;
431 interrupts = <0 6 4>;
432 clocks = <&apb2_gates 0>;
433 resets = <&apb2_rst 0>;
435 #address-cells = <1>;
440 compatible = "allwinner,sun6i-a31-i2c";
441 reg = <0x01c2b000 0x400>;
442 interrupts = <0 7 4>;
443 clocks = <&apb2_gates 1>;
444 resets = <&apb2_rst 1>;
446 #address-cells = <1>;
451 compatible = "allwinner,sun6i-a31-i2c";
452 reg = <0x01c2b400 0x400>;
453 interrupts = <0 8 4>;
454 clocks = <&apb2_gates 2>;
455 resets = <&apb2_rst 2>;
457 #address-cells = <1>;
461 gic: interrupt-controller@01c81000 {
462 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
463 reg = <0x01c81000 0x1000>,
467 interrupt-controller;
468 #interrupt-cells = <3>;
469 interrupts = <1 9 0xf04>;
473 compatible = "allwinner,sun6i-a31-rtc";
474 reg = <0x01f00000 0x54>;
475 interrupts = <0 40 4>, <0 41 4>;
479 compatible = "allwinner,sun8i-a23-prcm";
480 reg = <0x01f01400 0x200>;
483 compatible = "fixed-factor-clock";
488 clock-output-names = "ar100";
492 compatible = "fixed-factor-clock";
497 clock-output-names = "ahb0";
501 compatible = "allwinner,sun8i-a23-apb0-clk";
504 clock-output-names = "apb0";
507 apb0_gates: apb0_gates_clk {
508 compatible = "allwinner,sun8i-a23-apb0-gates-clk";
511 clock-output-names = "apb0_pio", "apb0_timer",
512 "apb0_rsb", "apb0_uart",
517 compatible = "allwinner,sun6i-a31-clock-reset";
522 r_uart: serial@01f02800 {
523 compatible = "snps,dw-apb-uart";
524 reg = <0x01f02800 0x400>;
525 interrupts = <0 38 4>;
528 clocks = <&apb0_gates 4>;
529 resets = <&apb0_rst 4>;
533 r_pio: pinctrl@01f02c00 {
534 compatible = "allwinner,sun8i-a23-r-pinctrl";
535 reg = <0x01f02c00 0x400>;
536 interrupts = <0 45 4>;
537 clocks = <&apb0_gates 0>;
538 resets = <&apb0_rst 0>;
540 interrupt-controller;
541 #address-cells = <1>;
545 r_uart_pins_a: r_uart@0 {
546 allwinner,pins = "PL2", "PL3";
547 allwinner,function = "s_uart";
548 allwinner,drive = <0>;
549 allwinner,pull = <0>;