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"
52 #include <dt-bindings/interrupt-controller/arm-gic.h>
54 #include <dt-bindings/pinctrl/sun4i-a10.h>
57 interrupt-parent = <&gic>;
65 compatible = "allwinner,simple-framebuffer",
67 allwinner,pipeline = "de_be0-lcd0";
78 compatible = "arm,cortex-a7";
84 compatible = "arm,cortex-a7";
91 reg = <0x40000000 0x40000000>;
101 compatible = "fixed-clock";
102 clock-frequency = <24000000>;
103 clock-output-names = "osc24M";
108 compatible = "fixed-clock";
109 clock-frequency = <32768>;
110 clock-output-names = "osc32k";
115 compatible = "allwinner,sun8i-a23-pll1-clk";
116 reg = <0x01c20000 0x4>;
118 clock-output-names = "pll1";
121 /* dummy clock until actually implemented */
124 compatible = "fixed-clock";
125 clock-frequency = <600000000>;
126 clock-output-names = "pll6";
129 cpu: cpu_clk@01c20050 {
131 compatible = "allwinner,sun4i-a10-cpu-clk";
132 reg = <0x01c20050 0x4>;
135 * PLL1 is listed twice here.
136 * While it looks suspicious, it's actually documented
137 * that way both in the datasheet and in the code from
140 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
141 clock-output-names = "cpu";
144 axi: axi_clk@01c20050 {
146 compatible = "allwinner,sun8i-a23-axi-clk";
147 reg = <0x01c20050 0x4>;
149 clock-output-names = "axi";
152 ahb1_mux: ahb1_mux_clk@01c20054 {
154 compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
155 reg = <0x01c20054 0x4>;
156 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>;
157 clock-output-names = "ahb1_mux";
160 ahb1: ahb1_clk@01c20054 {
162 compatible = "allwinner,sun4i-a10-ahb-clk";
163 reg = <0x01c20054 0x4>;
164 clocks = <&ahb1_mux>;
165 clock-output-names = "ahb1";
168 apb1: apb1_clk@01c20054 {
170 compatible = "allwinner,sun4i-a10-apb0-clk";
171 reg = <0x01c20054 0x4>;
173 clock-output-names = "apb1";
176 ahb1_gates: clk@01c20060 {
178 compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
179 reg = <0x01c20060 0x8>;
181 clock-output-names = "ahb1_mipidsi", "ahb1_dma",
182 "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
183 "ahb1_nand", "ahb1_sdram",
184 "ahb1_hstimer", "ahb1_spi0",
185 "ahb1_spi1", "ahb1_otg", "ahb1_ehci",
186 "ahb1_ohci", "ahb1_ve", "ahb1_lcd",
187 "ahb1_csi", "ahb1_be", "ahb1_fe",
188 "ahb1_gpu", "ahb1_spinlock",
192 apb1_gates: clk@01c20068 {
194 compatible = "allwinner,sun8i-a23-apb1-gates-clk";
195 reg = <0x01c20068 0x4>;
197 clock-output-names = "apb1_codec", "apb1_pio",
198 "apb1_daudio0", "apb1_daudio1";
203 compatible = "allwinner,sun4i-a10-apb1-clk";
204 reg = <0x01c20058 0x4>;
205 clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
206 clock-output-names = "apb2";
209 apb2_gates: clk@01c2006c {
211 compatible = "allwinner,sun8i-a23-apb2-gates-clk";
212 reg = <0x01c2006c 0x4>;
214 clock-output-names = "apb2_i2c0", "apb2_i2c1",
215 "apb2_i2c2", "apb2_uart0",
216 "apb2_uart1", "apb2_uart2",
217 "apb2_uart3", "apb2_uart4";
220 mmc0_clk: clk@01c20088 {
222 compatible = "allwinner,sun4i-a10-mod0-clk";
223 reg = <0x01c20088 0x4>;
224 clocks = <&osc24M>, <&pll6>;
225 clock-output-names = "mmc0";
228 mmc1_clk: clk@01c2008c {
230 compatible = "allwinner,sun4i-a10-mod0-clk";
231 reg = <0x01c2008c 0x4>;
232 clocks = <&osc24M>, <&pll6>;
233 clock-output-names = "mmc1";
236 mmc2_clk: clk@01c20090 {
238 compatible = "allwinner,sun4i-a10-mod0-clk";
239 reg = <0x01c20090 0x4>;
240 clocks = <&osc24M>, <&pll6>;
241 clock-output-names = "mmc2";
246 compatible = "simple-bus";
247 #address-cells = <1>;
251 dma: dma-controller@01c02000 {
252 compatible = "allwinner,sun8i-a23-dma";
253 reg = <0x01c02000 0x1000>;
254 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
255 clocks = <&ahb1_gates 6>;
256 resets = <&ahb1_rst 6>;
261 compatible = "allwinner,sun5i-a13-mmc";
262 reg = <0x01c0f000 0x1000>;
263 clocks = <&ahb1_gates 8>, <&mmc0_clk>;
264 clock-names = "ahb", "mmc";
265 resets = <&ahb1_rst 8>;
267 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
272 compatible = "allwinner,sun5i-a13-mmc";
273 reg = <0x01c10000 0x1000>;
274 clocks = <&ahb1_gates 9>, <&mmc1_clk>;
275 clock-names = "ahb", "mmc";
276 resets = <&ahb1_rst 9>;
278 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
283 compatible = "allwinner,sun5i-a13-mmc";
284 reg = <0x01c11000 0x1000>;
285 clocks = <&ahb1_gates 10>, <&mmc2_clk>;
286 clock-names = "ahb", "mmc";
287 resets = <&ahb1_rst 10>;
289 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
293 pio: pinctrl@01c20800 {
294 compatible = "allwinner,sun8i-a23-pinctrl";
295 reg = <0x01c20800 0x400>;
296 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
297 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
298 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
299 clocks = <&apb1_gates 5>;
301 interrupt-controller;
302 #address-cells = <1>;
306 uart0_pins_a: uart0@0 {
307 allwinner,pins = "PF2", "PF4";
308 allwinner,function = "uart0";
309 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
310 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
313 mmc0_pins_a: mmc0@0 {
314 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
315 allwinner,function = "mmc0";
316 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
317 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
320 mmc1_pins_a: mmc1@0 {
321 allwinner,pins = "PG0","PG1","PG2","PG3","PG4","PG5";
322 allwinner,function = "mmc1";
323 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
324 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
327 i2c0_pins_a: i2c0@0 {
328 allwinner,pins = "PH2", "PH3";
329 allwinner,function = "i2c0";
330 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
331 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
334 i2c1_pins_a: i2c1@0 {
335 allwinner,pins = "PH4", "PH5";
336 allwinner,function = "i2c1";
337 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
338 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
341 i2c2_pins_a: i2c2@0 {
342 allwinner,pins = "PE12", "PE13";
343 allwinner,function = "i2c2";
344 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
345 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
349 ahb1_rst: reset@01c202c0 {
351 compatible = "allwinner,sun6i-a31-clock-reset";
352 reg = <0x01c202c0 0xc>;
355 apb1_rst: reset@01c202d0 {
357 compatible = "allwinner,sun6i-a31-clock-reset";
358 reg = <0x01c202d0 0x4>;
361 apb2_rst: reset@01c202d8 {
363 compatible = "allwinner,sun6i-a31-clock-reset";
364 reg = <0x01c202d8 0x4>;
368 compatible = "allwinner,sun4i-a10-timer";
369 reg = <0x01c20c00 0xa0>;
370 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
371 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
375 wdt0: watchdog@01c20ca0 {
376 compatible = "allwinner,sun6i-a31-wdt";
377 reg = <0x01c20ca0 0x20>;
378 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
381 lradc: lradc@01c22800 {
382 compatible = "allwinner,sun4i-a10-lradc-keys";
383 reg = <0x01c22800 0x100>;
384 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
388 uart0: serial@01c28000 {
389 compatible = "snps,dw-apb-uart";
390 reg = <0x01c28000 0x400>;
391 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
394 clocks = <&apb2_gates 16>;
395 resets = <&apb2_rst 16>;
396 dmas = <&dma 6>, <&dma 6>;
397 dma-names = "rx", "tx";
401 uart1: serial@01c28400 {
402 compatible = "snps,dw-apb-uart";
403 reg = <0x01c28400 0x400>;
404 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
407 clocks = <&apb2_gates 17>;
408 resets = <&apb2_rst 17>;
409 dmas = <&dma 7>, <&dma 7>;
410 dma-names = "rx", "tx";
414 uart2: serial@01c28800 {
415 compatible = "snps,dw-apb-uart";
416 reg = <0x01c28800 0x400>;
417 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
420 clocks = <&apb2_gates 18>;
421 resets = <&apb2_rst 18>;
422 dmas = <&dma 8>, <&dma 8>;
423 dma-names = "rx", "tx";
427 uart3: serial@01c28c00 {
428 compatible = "snps,dw-apb-uart";
429 reg = <0x01c28c00 0x400>;
430 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
433 clocks = <&apb2_gates 19>;
434 resets = <&apb2_rst 19>;
435 dmas = <&dma 9>, <&dma 9>;
436 dma-names = "rx", "tx";
440 uart4: serial@01c29000 {
441 compatible = "snps,dw-apb-uart";
442 reg = <0x01c29000 0x400>;
443 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
446 clocks = <&apb2_gates 20>;
447 resets = <&apb2_rst 20>;
448 dmas = <&dma 10>, <&dma 10>;
449 dma-names = "rx", "tx";
454 compatible = "allwinner,sun6i-a31-i2c";
455 reg = <0x01c2ac00 0x400>;
456 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
457 clocks = <&apb2_gates 0>;
458 resets = <&apb2_rst 0>;
460 #address-cells = <1>;
465 compatible = "allwinner,sun6i-a31-i2c";
466 reg = <0x01c2b000 0x400>;
467 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
468 clocks = <&apb2_gates 1>;
469 resets = <&apb2_rst 1>;
471 #address-cells = <1>;
476 compatible = "allwinner,sun6i-a31-i2c";
477 reg = <0x01c2b400 0x400>;
478 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
479 clocks = <&apb2_gates 2>;
480 resets = <&apb2_rst 2>;
482 #address-cells = <1>;
486 gic: interrupt-controller@01c81000 {
487 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
488 reg = <0x01c81000 0x1000>,
492 interrupt-controller;
493 #interrupt-cells = <3>;
494 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
498 compatible = "allwinner,sun6i-a31-rtc";
499 reg = <0x01f00000 0x54>;
500 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
501 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
505 compatible = "allwinner,sun8i-a23-prcm";
506 reg = <0x01f01400 0x200>;
509 compatible = "fixed-factor-clock";
514 clock-output-names = "ar100";
518 compatible = "fixed-factor-clock";
523 clock-output-names = "ahb0";
527 compatible = "allwinner,sun8i-a23-apb0-clk";
530 clock-output-names = "apb0";
533 apb0_gates: apb0_gates_clk {
534 compatible = "allwinner,sun8i-a23-apb0-gates-clk";
537 clock-output-names = "apb0_pio", "apb0_timer",
538 "apb0_rsb", "apb0_uart",
543 compatible = "allwinner,sun6i-a31-clock-reset";
548 r_uart: serial@01f02800 {
549 compatible = "snps,dw-apb-uart";
550 reg = <0x01f02800 0x400>;
551 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
554 clocks = <&apb0_gates 4>;
555 resets = <&apb0_rst 4>;
559 r_pio: pinctrl@01f02c00 {
560 compatible = "allwinner,sun8i-a23-r-pinctrl";
561 reg = <0x01f02c00 0x400>;
562 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
563 clocks = <&apb0_gates 0>;
564 resets = <&apb0_rst 0>;
566 interrupt-controller;
567 #address-cells = <1>;
571 r_uart_pins_a: r_uart@0 {
572 allwinner,pins = "PL2", "PL3";
573 allwinner,function = "s_uart";
574 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
575 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;