blob: 44f3cad3de75b44514cb19a4cecb6e86fe9f6417 [file] [log] [blame]
Hans de Goede6ef1be32015-06-02 15:53:40 +02001/*
2 * Copyright 2014 Chen-Yu Tsai
3 *
4 * Chen-Yu Tsai <wens@csie.org>
5 *
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
9 * whole.
10 *
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.
15 *
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.
20 *
21 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
43 */
44
45#include "skeleton.dtsi"
46
47#include <dt-bindings/interrupt-controller/arm-gic.h>
48
Maxime Ripardcacb69f2017-09-05 20:59:04 +020049#include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
50#include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
Hans de Goede6ef1be32015-06-02 15:53:40 +020051
52/ {
53 interrupt-parent = <&gic>;
54
55 chosen {
56 #address-cells = <1>;
57 #size-cells = <1>;
58 ranges;
59
Hans de Goede19888a42016-03-14 17:37:09 +010060 simplefb_lcd: framebuffer@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +020061 compatible = "allwinner,simple-framebuffer",
62 "simple-framebuffer";
63 allwinner,pipeline = "de_be0-lcd0";
Maxime Ripardcacb69f2017-09-05 20:59:04 +020064 clocks = <&ccu CLK_BUS_LCD>, <&ccu CLK_BUS_DE_BE>,
65 <&ccu CLK_LCD_CH0>, <&ccu CLK_DE_BE>,
66 <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_DRC>;
Hans de Goede6ef1be32015-06-02 15:53:40 +020067 status = "disabled";
68 };
69 };
70
71 timer {
72 compatible = "arm,armv7-timer";
73 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
74 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
75 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
76 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
77 clock-frequency = <24000000>;
78 arm,cpu-registers-not-fw-configured;
79 };
80
81 cpus {
82 enable-method = "allwinner,sun8i-a23";
83 #address-cells = <1>;
84 #size-cells = <0>;
85
Maxime Ripardcacb69f2017-09-05 20:59:04 +020086 cpu0: cpu@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +020087 compatible = "arm,cortex-a7";
88 device_type = "cpu";
89 reg = <0>;
90 };
91
92 cpu@1 {
93 compatible = "arm,cortex-a7";
94 device_type = "cpu";
95 reg = <1>;
96 };
97 };
98
99 clocks {
100 #address-cells = <1>;
101 #size-cells = <1>;
102 ranges;
103
104 osc24M: osc24M_clk {
105 #clock-cells = <0>;
106 compatible = "fixed-clock";
107 clock-frequency = <24000000>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200108 clock-accuracy = <50000>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200109 clock-output-names = "osc24M";
110 };
111
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200112 ext_osc32k: ext_osc32k_clk {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200113 #clock-cells = <0>;
114 compatible = "fixed-clock";
115 clock-frequency = <32768>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200116 clock-accuracy = <50000>;
117 clock-output-names = "ext-osc32k";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200118 };
119 };
120
Jagan Teki72e94982018-08-05 00:40:11 +0530121 soc@1c00000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200122 compatible = "simple-bus";
123 #address-cells = <1>;
124 #size-cells = <1>;
125 ranges;
126
Jagan Teki72e94982018-08-05 00:40:11 +0530127 dma: dma-controller@1c02000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200128 compatible = "allwinner,sun8i-a23-dma";
129 reg = <0x01c02000 0x1000>;
130 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200131 clocks = <&ccu CLK_BUS_DMA>;
132 resets = <&ccu RST_BUS_DMA>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200133 #dma-cells = <1>;
134 };
135
Jagan Teki72e94982018-08-05 00:40:11 +0530136 mmc0: mmc@1c0f000 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200137 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200138 reg = <0x01c0f000 0x1000>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200139 clocks = <&ccu CLK_BUS_MMC0>,
140 <&ccu CLK_MMC0>,
141 <&ccu CLK_MMC0_OUTPUT>,
142 <&ccu CLK_MMC0_SAMPLE>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200143 clock-names = "ahb",
144 "mmc",
145 "output",
146 "sample";
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200147 resets = <&ccu RST_BUS_MMC0>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200148 reset-names = "ahb";
149 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
150 status = "disabled";
151 #address-cells = <1>;
152 #size-cells = <0>;
153 };
154
Jagan Teki72e94982018-08-05 00:40:11 +0530155 mmc1: mmc@1c10000 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200156 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200157 reg = <0x01c10000 0x1000>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200158 clocks = <&ccu CLK_BUS_MMC1>,
159 <&ccu CLK_MMC1>,
160 <&ccu CLK_MMC1_OUTPUT>,
161 <&ccu CLK_MMC1_SAMPLE>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200162 clock-names = "ahb",
163 "mmc",
164 "output",
165 "sample";
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200166 resets = <&ccu RST_BUS_MMC1>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200167 reset-names = "ahb";
168 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
169 status = "disabled";
170 #address-cells = <1>;
171 #size-cells = <0>;
172 };
173
Jagan Teki72e94982018-08-05 00:40:11 +0530174 mmc2: mmc@1c11000 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200175 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200176 reg = <0x01c11000 0x1000>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200177 clocks = <&ccu CLK_BUS_MMC2>,
178 <&ccu CLK_MMC2>,
179 <&ccu CLK_MMC2_OUTPUT>,
180 <&ccu CLK_MMC2_SAMPLE>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200181 clock-names = "ahb",
182 "mmc",
183 "output",
184 "sample";
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200185 resets = <&ccu RST_BUS_MMC2>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200186 reset-names = "ahb";
187 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
188 status = "disabled";
189 #address-cells = <1>;
190 #size-cells = <0>;
191 };
192
Jagan Teki72e94982018-08-05 00:40:11 +0530193 nfc: nand@1c03000 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200194 compatible = "allwinner,sun4i-a10-nand";
195 reg = <0x01c03000 0x1000>;
196 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
197 clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>;
198 clock-names = "ahb", "mod";
199 resets = <&ccu RST_BUS_NAND>;
200 reset-names = "ahb";
Jagan Teki72e94982018-08-05 00:40:11 +0530201 pinctrl-names = "default";
202 pinctrl-0 = <&nand_pins &nand_pins_cs0 &nand_pins_rb0>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200203 status = "disabled";
204 #address-cells = <1>;
205 #size-cells = <0>;
206 };
207
Jagan Teki72e94982018-08-05 00:40:11 +0530208 usb_otg: usb@1c19000 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200209 /* compatible gets set in SoC specific dtsi file */
210 reg = <0x01c19000 0x0400>;
211 clocks = <&ccu CLK_BUS_OTG>;
212 resets = <&ccu RST_BUS_OTG>;
213 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
214 interrupt-names = "mc";
215 phys = <&usbphy 0>;
216 phy-names = "usb";
217 extcon = <&usbphy 0>;
218 status = "disabled";
219 };
220
Jagan Teki72e94982018-08-05 00:40:11 +0530221 usbphy: phy@1c19400 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200222 /*
223 * compatible and address regions get set in
224 * SoC specific dtsi file
225 */
226 clocks = <&ccu CLK_USB_PHY0>,
227 <&ccu CLK_USB_PHY1>;
228 clock-names = "usb0_phy",
229 "usb1_phy";
230 resets = <&ccu RST_USB_PHY0>,
231 <&ccu RST_USB_PHY1>;
232 reset-names = "usb0_reset",
233 "usb1_reset";
234 status = "disabled";
235 #phy-cells = <1>;
236 };
237
Jagan Teki72e94982018-08-05 00:40:11 +0530238 ehci0: usb@1c1a000 {
Hans de Goede0c86ceb2015-06-17 21:16:59 +0200239 compatible = "allwinner,sun8i-a23-ehci", "generic-ehci";
240 reg = <0x01c1a000 0x100>;
241 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200242 clocks = <&ccu CLK_BUS_EHCI>;
243 resets = <&ccu RST_BUS_EHCI>;
Hans de Goede7d831822015-08-05 17:39:14 +0200244 phys = <&usbphy 1>;
245 phy-names = "usb";
Hans de Goede0c86ceb2015-06-17 21:16:59 +0200246 status = "disabled";
247 };
248
Jagan Teki72e94982018-08-05 00:40:11 +0530249 ohci0: usb@1c1a400 {
Hans de Goede0c86ceb2015-06-17 21:16:59 +0200250 compatible = "allwinner,sun8i-a23-ohci", "generic-ohci";
251 reg = <0x01c1a400 0x100>;
252 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200253 clocks = <&ccu CLK_BUS_OHCI>, <&ccu CLK_USB_OHCI>;
254 resets = <&ccu RST_BUS_OHCI>;
Hans de Goede7d831822015-08-05 17:39:14 +0200255 phys = <&usbphy 1>;
256 phy-names = "usb";
Hans de Goede0c86ceb2015-06-17 21:16:59 +0200257 status = "disabled";
258 };
259
Jagan Teki72e94982018-08-05 00:40:11 +0530260 ccu: clock@1c20000 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200261 reg = <0x01c20000 0x400>;
262 clocks = <&osc24M>, <&rtc 0>;
263 clock-names = "hosc", "losc";
264 #clock-cells = <1>;
265 #reset-cells = <1>;
266 };
267
Jagan Teki72e94982018-08-05 00:40:11 +0530268 pio: pinctrl@1c20800 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200269 /* compatible gets set in SoC specific dtsi file */
270 reg = <0x01c20800 0x400>;
271 /* interrupts get set in SoC specific dtsi file */
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200272 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
273 clock-names = "apb", "hosc", "losc";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200274 gpio-controller;
275 interrupt-controller;
Hans de Goede7d831822015-08-05 17:39:14 +0200276 #interrupt-cells = <3>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200277 #gpio-cells = <3>;
278
279 uart0_pins_a: uart0@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200280 pins = "PF2", "PF4";
281 function = "uart0";
282 };
283
284 uart1_pins_a: uart1@0 {
285 pins = "PG6", "PG7";
286 function = "uart1";
287 };
288
289 uart1_pins_cts_rts_a: uart1-cts-rts@0 {
290 pins = "PG8", "PG9";
291 function = "uart1";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200292 };
293
294 mmc0_pins_a: mmc0@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200295 pins = "PF0", "PF1", "PF2",
296 "PF3", "PF4", "PF5";
297 function = "mmc0";
298 drive-strength = <30>;
299 bias-pull-up;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200300 };
301
302 mmc1_pins_a: mmc1@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200303 pins = "PG0", "PG1", "PG2",
304 "PG3", "PG4", "PG5";
305 function = "mmc1";
306 drive-strength = <30>;
307 bias-pull-up;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200308 };
309
Chen-Yu Tsai075567e2015-06-23 19:57:26 +0800310 mmc2_8bit_pins: mmc2_8bit {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200311 pins = "PC5", "PC6", "PC8",
312 "PC9", "PC10", "PC11",
313 "PC12", "PC13", "PC14",
314 "PC15", "PC16";
315 function = "mmc2";
316 drive-strength = <30>;
317 bias-pull-up;
Chen-Yu Tsai075567e2015-06-23 19:57:26 +0800318 };
319
Jagan Teki72e94982018-08-05 00:40:11 +0530320 nand_pins: nand-pins {
321 pins = "PC0", "PC1", "PC2", "PC5",
322 "PC8", "PC9", "PC10", "PC11",
323 "PC12", "PC13", "PC14", "PC15";
324 function = "nand0";
325 };
326
327 nand_pins_cs0: nand-pins-cs0 {
328 pins = "PC4";
329 function = "nand0";
330 bias-pull-up;
331 };
332
333 nand_pins_cs1: nand-pins-cs1 {
334 pins = "PC3";
335 function = "nand0";
336 bias-pull-up;
337 };
338
339 nand_pins_rb0: nand-pins-rb0 {
340 pins = "PC6";
341 function = "nand0";
342 bias-pull-up;
343 };
344
345 nand_pins_rb1: nand-pins-rb1 {
346 pins = "PC7";
347 function = "nand0";
348 bias-pull-up;
349 };
350
Hans de Goede19888a42016-03-14 17:37:09 +0100351 pwm0_pins: pwm0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200352 pins = "PH0";
353 function = "pwm0";
Hans de Goede19888a42016-03-14 17:37:09 +0100354 };
355
Hans de Goede6ef1be32015-06-02 15:53:40 +0200356 i2c0_pins_a: i2c0@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200357 pins = "PH2", "PH3";
358 function = "i2c0";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200359 };
360
361 i2c1_pins_a: i2c1@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200362 pins = "PH4", "PH5";
363 function = "i2c1";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200364 };
365
366 i2c2_pins_a: i2c2@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200367 pins = "PE12", "PE13";
368 function = "i2c2";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200369 };
Hans de Goede6ef1be32015-06-02 15:53:40 +0200370
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200371 lcd_rgb666_pins: lcd-rgb666@0 {
372 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
373 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
374 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
375 "PD24", "PD25", "PD26", "PD27";
376 function = "lcd0";
377 };
Hans de Goede6ef1be32015-06-02 15:53:40 +0200378 };
379
Jagan Teki72e94982018-08-05 00:40:11 +0530380 timer@1c20c00 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200381 compatible = "allwinner,sun4i-a10-timer";
382 reg = <0x01c20c00 0xa0>;
383 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
384 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
385 clocks = <&osc24M>;
386 };
387
Jagan Teki72e94982018-08-05 00:40:11 +0530388 wdt0: watchdog@1c20ca0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200389 compatible = "allwinner,sun6i-a31-wdt";
390 reg = <0x01c20ca0 0x20>;
391 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
392 };
393
Jagan Teki72e94982018-08-05 00:40:11 +0530394 pwm: pwm@1c21400 {
Hans de Goede19888a42016-03-14 17:37:09 +0100395 compatible = "allwinner,sun7i-a20-pwm";
396 reg = <0x01c21400 0xc>;
397 clocks = <&osc24M>;
398 #pwm-cells = <3>;
399 status = "disabled";
400 };
401
Jagan Teki72e94982018-08-05 00:40:11 +0530402 lradc: lradc@1c22800 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200403 compatible = "allwinner,sun4i-a10-lradc-keys";
404 reg = <0x01c22800 0x100>;
405 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
406 status = "disabled";
407 };
408
Jagan Teki72e94982018-08-05 00:40:11 +0530409 uart0: serial@1c28000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200410 compatible = "snps,dw-apb-uart";
411 reg = <0x01c28000 0x400>;
412 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
413 reg-shift = <2>;
414 reg-io-width = <4>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200415 clocks = <&ccu CLK_BUS_UART0>;
416 resets = <&ccu RST_BUS_UART0>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200417 dmas = <&dma 6>, <&dma 6>;
418 dma-names = "rx", "tx";
419 status = "disabled";
420 };
421
Jagan Teki72e94982018-08-05 00:40:11 +0530422 uart1: serial@1c28400 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200423 compatible = "snps,dw-apb-uart";
424 reg = <0x01c28400 0x400>;
425 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
426 reg-shift = <2>;
427 reg-io-width = <4>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200428 clocks = <&ccu CLK_BUS_UART1>;
429 resets = <&ccu RST_BUS_UART1>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200430 dmas = <&dma 7>, <&dma 7>;
431 dma-names = "rx", "tx";
432 status = "disabled";
433 };
434
Jagan Teki72e94982018-08-05 00:40:11 +0530435 uart2: serial@1c28800 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200436 compatible = "snps,dw-apb-uart";
437 reg = <0x01c28800 0x400>;
438 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
439 reg-shift = <2>;
440 reg-io-width = <4>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200441 clocks = <&ccu CLK_BUS_UART2>;
442 resets = <&ccu RST_BUS_UART2>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200443 dmas = <&dma 8>, <&dma 8>;
444 dma-names = "rx", "tx";
445 status = "disabled";
446 };
447
Jagan Teki72e94982018-08-05 00:40:11 +0530448 uart3: serial@1c28c00 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200449 compatible = "snps,dw-apb-uart";
450 reg = <0x01c28c00 0x400>;
451 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
452 reg-shift = <2>;
453 reg-io-width = <4>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200454 clocks = <&ccu CLK_BUS_UART3>;
455 resets = <&ccu RST_BUS_UART3>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200456 dmas = <&dma 9>, <&dma 9>;
457 dma-names = "rx", "tx";
458 status = "disabled";
459 };
460
Jagan Teki72e94982018-08-05 00:40:11 +0530461 uart4: serial@1c29000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200462 compatible = "snps,dw-apb-uart";
463 reg = <0x01c29000 0x400>;
464 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
465 reg-shift = <2>;
466 reg-io-width = <4>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200467 clocks = <&ccu CLK_BUS_UART4>;
468 resets = <&ccu RST_BUS_UART4>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200469 dmas = <&dma 10>, <&dma 10>;
470 dma-names = "rx", "tx";
471 status = "disabled";
472 };
473
Jagan Teki72e94982018-08-05 00:40:11 +0530474 i2c0: i2c@1c2ac00 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200475 compatible = "allwinner,sun6i-a31-i2c";
476 reg = <0x01c2ac00 0x400>;
477 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200478 clocks = <&ccu CLK_BUS_I2C0>;
479 resets = <&ccu RST_BUS_I2C0>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200480 status = "disabled";
481 #address-cells = <1>;
482 #size-cells = <0>;
483 };
484
Jagan Teki72e94982018-08-05 00:40:11 +0530485 i2c1: i2c@1c2b000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200486 compatible = "allwinner,sun6i-a31-i2c";
487 reg = <0x01c2b000 0x400>;
488 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200489 clocks = <&ccu CLK_BUS_I2C1>;
490 resets = <&ccu RST_BUS_I2C1>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200491 status = "disabled";
492 #address-cells = <1>;
493 #size-cells = <0>;
494 };
495
Jagan Teki72e94982018-08-05 00:40:11 +0530496 i2c2: i2c@1c2b400 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200497 compatible = "allwinner,sun6i-a31-i2c";
498 reg = <0x01c2b400 0x400>;
499 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200500 clocks = <&ccu CLK_BUS_I2C2>;
501 resets = <&ccu RST_BUS_I2C2>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200502 status = "disabled";
503 #address-cells = <1>;
504 #size-cells = <0>;
505 };
506
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200507 mali: gpu@1c40000 {
508 compatible = "allwinner,sun8i-a23-mali",
509 "allwinner,sun7i-a20-mali", "arm,mali-400";
510 reg = <0x01c40000 0x10000>;
511 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
512 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
513 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
514 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
515 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
516 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
517 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
518 interrupt-names = "gp",
519 "gpmmu",
520 "pp0",
521 "ppmmu0",
522 "pp1",
523 "ppmmu1",
524 "pmu";
525 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
526 clock-names = "bus", "core";
527 resets = <&ccu RST_BUS_GPU>;
528 #cooling-cells = <2>;
529
530 assigned-clocks = <&ccu CLK_GPU>;
531 assigned-clock-rates = <384000000>;
532 };
533
Jagan Teki72e94982018-08-05 00:40:11 +0530534 gic: interrupt-controller@1c81000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200535 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
536 reg = <0x01c81000 0x1000>,
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200537 <0x01c82000 0x2000>,
Hans de Goede6ef1be32015-06-02 15:53:40 +0200538 <0x01c84000 0x2000>,
539 <0x01c86000 0x2000>;
540 interrupt-controller;
541 #interrupt-cells = <3>;
542 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
543 };
544
Jagan Teki72e94982018-08-05 00:40:11 +0530545 rtc: rtc@1f00000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200546 compatible = "allwinner,sun6i-a31-rtc";
547 reg = <0x01f00000 0x54>;
548 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
549 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200550 clock-output-names = "osc32k";
551 clocks = <&ext_osc32k>;
552 #clock-cells = <1>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200553 };
554
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200555 nmi_intc: interrupt-controller@1f00c00 {
556 compatible = "allwinner,sun6i-a31-r-intc";
Hans de Goede19888a42016-03-14 17:37:09 +0100557 interrupt-controller;
558 #interrupt-cells = <2>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200559 reg = <0x01f00c00 0x400>;
Hans de Goede19888a42016-03-14 17:37:09 +0100560 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
561 };
562
Jagan Teki72e94982018-08-05 00:40:11 +0530563 prcm@1f01400 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200564 compatible = "allwinner,sun8i-a23-prcm";
565 reg = <0x01f01400 0x200>;
566
567 ar100: ar100_clk {
568 compatible = "fixed-factor-clock";
569 #clock-cells = <0>;
570 clock-div = <1>;
571 clock-mult = <1>;
572 clocks = <&osc24M>;
573 clock-output-names = "ar100";
574 };
575
576 ahb0: ahb0_clk {
577 compatible = "fixed-factor-clock";
578 #clock-cells = <0>;
579 clock-div = <1>;
580 clock-mult = <1>;
581 clocks = <&ar100>;
582 clock-output-names = "ahb0";
583 };
584
585 apb0: apb0_clk {
586 compatible = "allwinner,sun8i-a23-apb0-clk";
587 #clock-cells = <0>;
588 clocks = <&ahb0>;
589 clock-output-names = "apb0";
590 };
591
592 apb0_gates: apb0_gates_clk {
593 compatible = "allwinner,sun8i-a23-apb0-gates-clk";
594 #clock-cells = <1>;
595 clocks = <&apb0>;
596 clock-output-names = "apb0_pio", "apb0_timer",
597 "apb0_rsb", "apb0_uart",
598 "apb0_i2c";
599 };
600
601 apb0_rst: apb0_rst {
602 compatible = "allwinner,sun6i-a31-clock-reset";
603 #reset-cells = <1>;
604 };
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200605
606 codec_analog: codec-analog {
607 compatible = "allwinner,sun8i-a23-codec-analog";
608 };
Hans de Goede6ef1be32015-06-02 15:53:40 +0200609 };
610
Jagan Teki72e94982018-08-05 00:40:11 +0530611 cpucfg@1f01c00 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200612 compatible = "allwinner,sun8i-a23-cpuconfig";
613 reg = <0x01f01c00 0x300>;
614 };
615
Jagan Teki72e94982018-08-05 00:40:11 +0530616 r_uart: serial@1f02800 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200617 compatible = "snps,dw-apb-uart";
618 reg = <0x01f02800 0x400>;
619 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
620 reg-shift = <2>;
621 reg-io-width = <4>;
622 clocks = <&apb0_gates 4>;
623 resets = <&apb0_rst 4>;
624 status = "disabled";
625 };
626
Jagan Teki72e94982018-08-05 00:40:11 +0530627 r_pio: pinctrl@1f02c00 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200628 compatible = "allwinner,sun8i-a23-r-pinctrl";
629 reg = <0x01f02c00 0x400>;
630 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200631 clocks = <&apb0_gates 0>, <&osc24M>, <&rtc 0>;
632 clock-names = "apb", "hosc", "losc";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200633 resets = <&apb0_rst 0>;
634 gpio-controller;
635 interrupt-controller;
Hans de Goede19888a42016-03-14 17:37:09 +0100636 #interrupt-cells = <3>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200637 #address-cells = <1>;
638 #size-cells = <0>;
639 #gpio-cells = <3>;
640
Hans de Goede19888a42016-03-14 17:37:09 +0100641 r_rsb_pins: r_rsb {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200642 pins = "PL0", "PL1";
643 function = "s_rsb";
644 drive-strength = <20>;
645 bias-pull-up;
Hans de Goede19888a42016-03-14 17:37:09 +0100646 };
647
Hans de Goede6ef1be32015-06-02 15:53:40 +0200648 r_uart_pins_a: r_uart@0 {
Maxime Ripardcacb69f2017-09-05 20:59:04 +0200649 pins = "PL2", "PL3";
650 function = "s_uart";
Hans de Goede6ef1be32015-06-02 15:53:40 +0200651 };
652 };
Hans de Goede19888a42016-03-14 17:37:09 +0100653
Jagan Teki72e94982018-08-05 00:40:11 +0530654 r_rsb: rsb@1f03400 {
Hans de Goede19888a42016-03-14 17:37:09 +0100655 compatible = "allwinner,sun8i-a23-rsb";
656 reg = <0x01f03400 0x400>;
657 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
658 clocks = <&apb0_gates 3>;
659 clock-frequency = <3000000>;
660 resets = <&apb0_rst 3>;
661 pinctrl-names = "default";
662 pinctrl-0 = <&r_rsb_pins>;
663 status = "disabled";
664 #address-cells = <1>;
665 #size-cells = <0>;
666 };
Hans de Goede6ef1be32015-06-02 15:53:40 +0200667 };
668};