xref: /openbmc/u-boot/arch/arm/dts/sun9i-a80.dtsi (revision ad5b5801)
1/*
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 "skeleton64.dtsi"
46
47#include <dt-bindings/interrupt-controller/arm-gic.h>
48
49#include <dt-bindings/pinctrl/sun4i-a10.h>
50
51/ {
52	interrupt-parent = <&gic>;
53
54	cpus {
55		#address-cells = <1>;
56		#size-cells = <0>;
57
58		cpu0: cpu@0 {
59			compatible = "arm,cortex-a7";
60			device_type = "cpu";
61			reg = <0x0>;
62		};
63
64		cpu1: cpu@1 {
65			compatible = "arm,cortex-a7";
66			device_type = "cpu";
67			reg = <0x1>;
68		};
69
70		cpu2: cpu@2 {
71			compatible = "arm,cortex-a7";
72			device_type = "cpu";
73			reg = <0x2>;
74		};
75
76		cpu3: cpu@3 {
77			compatible = "arm,cortex-a7";
78			device_type = "cpu";
79			reg = <0x3>;
80		};
81
82		cpu4: cpu@100 {
83			compatible = "arm,cortex-a15";
84			device_type = "cpu";
85			reg = <0x100>;
86		};
87
88		cpu5: cpu@101 {
89			compatible = "arm,cortex-a15";
90			device_type = "cpu";
91			reg = <0x101>;
92		};
93
94		cpu6: cpu@102 {
95			compatible = "arm,cortex-a15";
96			device_type = "cpu";
97			reg = <0x102>;
98		};
99
100		cpu7: cpu@103 {
101			compatible = "arm,cortex-a15";
102			device_type = "cpu";
103			reg = <0x103>;
104		};
105	};
106
107	memory {
108		/* 8GB max. with LPAE */
109		reg = <0 0x20000000 0x02 0>;
110	};
111
112	timer {
113		compatible = "arm,armv7-timer";
114		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
115			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
116			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
117			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
118		clock-frequency = <24000000>;
119		arm,cpu-registers-not-fw-configured;
120	};
121
122	clocks {
123		#address-cells = <1>;
124		#size-cells = <1>;
125		/*
126		 * map 64 bit address range down to 32 bits,
127		 * as the peripherals are all under 512MB.
128		 */
129		ranges = <0 0 0 0x20000000>;
130
131		/*
132		 * This clock is actually configurable from the PRCM address
133		 * space. The external 24M oscillator can be turned off, and
134		 * the clock switched to an internal 16M RC oscillator. Under
135		 * normal operation there's no reason to do this, and the
136		 * default is to use the external good one, so just model this
137		 * as a fixed clock. Also it is not entirely clear if the
138		 * osc24M mux in the PRCM affects the entire clock tree, which
139		 * would also throw all the PLL clock rates off, or just the
140		 * downstream clocks in the PRCM.
141		 */
142		osc24M: osc24M_clk {
143			#clock-cells = <0>;
144			compatible = "fixed-clock";
145			clock-frequency = <24000000>;
146			clock-output-names = "osc24M";
147		};
148
149		/*
150		 * The 32k clock is from an external source, normally the
151		 * AC100 codec/RTC chip. This clock is by default enabled
152		 * and clocked at 32768 Hz, from the oscillator connected
153		 * to the AC100. It is configurable, but no such driver or
154		 * bindings exist yet.
155		 */
156		osc32k: osc32k_clk {
157			#clock-cells = <0>;
158			compatible = "fixed-clock";
159			clock-frequency = <32768>;
160			clock-output-names = "osc32k";
161		};
162
163		usb_mod_clk: clk@00a08000 {
164			#clock-cells = <1>;
165			#reset-cells = <1>;
166			compatible = "allwinner,sun9i-a80-usb-mod-clk";
167			reg = <0x00a08000 0x4>;
168			clocks = <&ahb1_gates 1>;
169			clock-output-names = "usb0_ahb", "usb_ohci0",
170					     "usb1_ahb", "usb_ohci1",
171					     "usb2_ahb", "usb_ohci2";
172		};
173
174		usb_phy_clk: clk@00a08004 {
175			#clock-cells = <1>;
176			#reset-cells = <1>;
177			compatible = "allwinner,sun9i-a80-usb-phy-clk";
178			reg = <0x00a08004 0x4>;
179			clocks = <&ahb1_gates 1>;
180			clock-output-names = "usb_phy0", "usb_hsic1_480M",
181					     "usb_phy1", "usb_hsic2_480M",
182					     "usb_phy2", "usb_hsic_12M";
183		};
184
185		pll3: clk@06000008 {
186			/* placeholder until implemented */
187			#clock-cells = <0>;
188			compatible = "fixed-clock";
189			clock-rate = <0>;
190			clock-output-names = "pll3";
191		};
192
193		pll4: clk@0600000c {
194			#clock-cells = <0>;
195			compatible = "allwinner,sun9i-a80-pll4-clk";
196			reg = <0x0600000c 0x4>;
197			clocks = <&osc24M>;
198			clock-output-names = "pll4";
199		};
200
201		pll12: clk@0600002c {
202			#clock-cells = <0>;
203			compatible = "allwinner,sun9i-a80-pll4-clk";
204			reg = <0x0600002c 0x4>;
205			clocks = <&osc24M>;
206			clock-output-names = "pll12";
207		};
208
209		gt_clk: clk@0600005c {
210			#clock-cells = <0>;
211			compatible = "allwinner,sun9i-a80-gt-clk";
212			reg = <0x0600005c 0x4>;
213			clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
214			clock-output-names = "gt";
215		};
216
217		ahb0: clk@06000060 {
218			#clock-cells = <0>;
219			compatible = "allwinner,sun9i-a80-ahb-clk";
220			reg = <0x06000060 0x4>;
221			clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
222			clock-output-names = "ahb0";
223		};
224
225		ahb1: clk@06000064 {
226			#clock-cells = <0>;
227			compatible = "allwinner,sun9i-a80-ahb-clk";
228			reg = <0x06000064 0x4>;
229			clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
230			clock-output-names = "ahb1";
231		};
232
233		ahb2: clk@06000068 {
234			#clock-cells = <0>;
235			compatible = "allwinner,sun9i-a80-ahb-clk";
236			reg = <0x06000068 0x4>;
237			clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
238			clock-output-names = "ahb2";
239		};
240
241		apb0: clk@06000070 {
242			#clock-cells = <0>;
243			compatible = "allwinner,sun9i-a80-apb0-clk";
244			reg = <0x06000070 0x4>;
245			clocks = <&osc24M>, <&pll4>;
246			clock-output-names = "apb0";
247		};
248
249		apb1: clk@06000074 {
250			#clock-cells = <0>;
251			compatible = "allwinner,sun9i-a80-apb1-clk";
252			reg = <0x06000074 0x4>;
253			clocks = <&osc24M>, <&pll4>;
254			clock-output-names = "apb1";
255		};
256
257		cci400_clk: clk@06000078 {
258			#clock-cells = <0>;
259			compatible = "allwinner,sun9i-a80-gt-clk";
260			reg = <0x06000078 0x4>;
261			clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
262			clock-output-names = "cci400";
263		};
264
265		mmc0_clk: clk@06000410 {
266			#clock-cells = <1>;
267			compatible = "allwinner,sun9i-a80-mmc-clk";
268			reg = <0x06000410 0x4>;
269			clocks = <&osc24M>, <&pll4>;
270			clock-output-names = "mmc0", "mmc0_output",
271					     "mmc0_sample";
272		};
273
274		mmc1_clk: clk@06000414 {
275			#clock-cells = <1>;
276			compatible = "allwinner,sun9i-a80-mmc-clk";
277			reg = <0x06000414 0x4>;
278			clocks = <&osc24M>, <&pll4>;
279			clock-output-names = "mmc1", "mmc1_output",
280					     "mmc1_sample";
281		};
282
283		mmc2_clk: clk@06000418 {
284			#clock-cells = <1>;
285			compatible = "allwinner,sun9i-a80-mmc-clk";
286			reg = <0x06000418 0x4>;
287			clocks = <&osc24M>, <&pll4>;
288			clock-output-names = "mmc2", "mmc2_output",
289					     "mmc2_sample";
290		};
291
292		mmc3_clk: clk@0600041c {
293			#clock-cells = <1>;
294			compatible = "allwinner,sun9i-a80-mmc-clk";
295			reg = <0x0600041c 0x4>;
296			clocks = <&osc24M>, <&pll4>;
297			clock-output-names = "mmc3", "mmc3_output",
298					     "mmc3_sample";
299		};
300
301		ahb0_gates: clk@06000580 {
302			#clock-cells = <1>;
303			compatible = "allwinner,sun9i-a80-ahb0-gates-clk";
304			reg = <0x06000580 0x4>;
305			clocks = <&ahb0>;
306			clock-indices = <0>, <1>, <3>,
307					<5>, <8>, <12>,
308					<13>, <14>,
309					<15>, <16>, <18>,
310					<20>, <21>, <22>,
311					<23>;
312			clock-output-names = "ahb0_fd", "ahb0_ve", "ahb0_gpu",
313					"ahb0_ss", "ahb0_sd", "ahb0_nand1",
314					"ahb0_nand0", "ahb0_sdram",
315					"ahb0_mipi_hsi", "ahb0_sata", "ahb0_ts",
316					"ahb0_spi0", "ahb0_spi1", "ahb0_spi2",
317					"ahb0_spi3";
318		};
319
320		ahb1_gates: clk@06000584 {
321			#clock-cells = <1>;
322			compatible = "allwinner,sun9i-a80-ahb1-gates-clk";
323			reg = <0x06000584 0x4>;
324			clocks = <&ahb1>;
325			clock-indices = <0>, <1>,
326					<17>, <21>,
327					<22>, <23>,
328					<24>;
329			clock-output-names = "ahb1_usbotg", "ahb1_usbhci",
330					"ahb1_gmac", "ahb1_msgbox",
331					"ahb1_spinlock", "ahb1_hstimer",
332					"ahb1_dma";
333		};
334
335		ahb2_gates: clk@06000588 {
336			#clock-cells = <1>;
337			compatible = "allwinner,sun9i-a80-ahb2-gates-clk";
338			reg = <0x06000588 0x4>;
339			clocks = <&ahb2>;
340			clock-indices = <0>, <1>,
341					<2>, <4>, <5>,
342					<7>, <8>, <11>;
343			clock-output-names = "ahb2_lcd0", "ahb2_lcd1",
344					"ahb2_edp", "ahb2_csi", "ahb2_hdmi",
345					"ahb2_de", "ahb2_mp", "ahb2_mipi_dsi";
346		};
347
348		apb0_gates: clk@06000590 {
349			#clock-cells = <1>;
350			compatible = "allwinner,sun9i-a80-apb0-gates-clk";
351			reg = <0x06000590 0x4>;
352			clocks = <&apb0>;
353			clock-indices = <1>, <5>,
354					<11>, <12>, <13>,
355					<15>, <17>, <18>,
356					<19>;
357			clock-output-names = "apb0_spdif", "apb0_pio",
358					"apb0_ac97", "apb0_i2s0", "apb0_i2s1",
359					"apb0_lradc", "apb0_gpadc", "apb0_twd",
360					"apb0_cirtx";
361		};
362
363		apb1_gates: clk@06000594 {
364			#clock-cells = <1>;
365			compatible = "allwinner,sun9i-a80-apb1-gates-clk";
366			reg = <0x06000594 0x4>;
367			clocks = <&apb1>;
368			clock-indices = <0>, <1>,
369					<2>, <3>, <4>,
370					<16>, <17>,
371					<18>, <19>,
372					<20>, <21>;
373			clock-output-names = "apb1_i2c0", "apb1_i2c1",
374					"apb1_i2c2", "apb1_i2c3", "apb1_i2c4",
375					"apb1_uart0", "apb1_uart1",
376					"apb1_uart2", "apb1_uart3",
377					"apb1_uart4", "apb1_uart5";
378		};
379
380		cpus_clk: clk@08001410 {
381			compatible = "allwinner,sun9i-a80-cpus-clk";
382			reg = <0x08001410 0x4>;
383			#clock-cells = <0>;
384			clocks = <&osc32k>, <&osc24M>, <&pll4>, <&pll3>;
385			clock-output-names = "cpus";
386		};
387
388		ahbs: ahbs_clk {
389			compatible = "fixed-factor-clock";
390			#clock-cells = <0>;
391			clock-div = <1>;
392			clock-mult = <1>;
393			clocks = <&cpus_clk>;
394			clock-output-names = "ahbs";
395		};
396
397		apbs: clk@0800141c {
398			compatible = "allwinner,sun8i-a23-apb0-clk";
399			reg = <0x0800141c 0x4>;
400			#clock-cells = <0>;
401			clocks = <&ahbs>;
402			clock-output-names = "apbs";
403		};
404
405		apbs_gates: clk@08001428 {
406			compatible = "allwinner,sun9i-a80-apbs-gates-clk";
407			reg = <0x08001428 0x4>;
408			#clock-cells = <1>;
409			clocks = <&apbs>;
410			clock-indices = <0>, <1>,
411					<2>, <3>,
412					<4>, <5>,
413					<6>, <7>,
414					<12>, <13>,
415					<16>, <17>,
416					<18>, <20>;
417			clock-output-names = "apbs_pio", "apbs_ir",
418					"apbs_timer", "apbs_rsb",
419					"apbs_uart", "apbs_1wire",
420					"apbs_i2c0", "apbs_i2c1",
421					"apbs_ps2_0", "apbs_ps2_1",
422					"apbs_dma", "apbs_i2s0",
423					"apbs_i2s1", "apbs_twd";
424		};
425
426		r_1wire_clk: clk@08001450 {
427			reg = <0x08001450 0x4>;
428			#clock-cells = <0>;
429			compatible = "allwinner,sun4i-a10-mod0-clk";
430			clocks = <&osc32k>, <&osc24M>;
431			clock-output-names = "r_1wire";
432		};
433
434		r_ir_clk: clk@08001454 {
435			reg = <0x08001454 0x4>;
436			#clock-cells = <0>;
437			compatible = "allwinner,sun4i-a10-mod0-clk";
438			clocks = <&osc32k>, <&osc24M>;
439			clock-output-names = "r_ir";
440		};
441	};
442
443	soc {
444		compatible = "simple-bus";
445		#address-cells = <1>;
446		#size-cells = <1>;
447		/*
448		 * map 64 bit address range down to 32 bits,
449		 * as the peripherals are all under 512MB.
450		 */
451		ranges = <0 0 0 0x20000000>;
452
453		ehci0: usb@00a00000 {
454			compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
455			reg = <0x00a00000 0x100>;
456			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
457			clocks = <&usb_mod_clk 1>;
458			resets = <&usb_mod_clk 17>;
459			phys = <&usbphy1>;
460			phy-names = "usb";
461			status = "disabled";
462		};
463
464		ohci0: usb@00a00400 {
465			compatible = "allwinner,sun9i-a80-ohci", "generic-ohci";
466			reg = <0x00a00400 0x100>;
467			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
468			clocks = <&usb_mod_clk 1>, <&usb_mod_clk 2>;
469			resets = <&usb_mod_clk 17>;
470			phys = <&usbphy1>;
471			phy-names = "usb";
472			status = "disabled";
473		};
474
475		usbphy1: phy@00a00800 {
476			compatible = "allwinner,sun9i-a80-usb-phy";
477			reg = <0x00a00800 0x4>;
478			clocks = <&usb_phy_clk 1>;
479			clock-names = "phy";
480			resets = <&usb_phy_clk 17>;
481			reset-names = "phy";
482			status = "disabled";
483			#phy-cells = <0>;
484		};
485
486		ehci1: usb@00a01000 {
487			compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
488			reg = <0x00a01000 0x100>;
489			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
490			clocks = <&usb_mod_clk 3>;
491			resets = <&usb_mod_clk 18>;
492			phys = <&usbphy2>;
493			phy-names = "usb";
494			status = "disabled";
495		};
496
497		usbphy2: phy@00a01800 {
498			compatible = "allwinner,sun9i-a80-usb-phy";
499			reg = <0x00a01800 0x4>;
500			clocks = <&usb_phy_clk 2>, <&usb_phy_clk 10>,
501				 <&usb_phy_clk 3>;
502			clock-names = "hsic_480M", "hsic_12M", "phy";
503			resets = <&usb_phy_clk 18>, <&usb_phy_clk 19>;
504			reset-names = "hsic", "phy";
505			status = "disabled";
506			#phy-cells = <0>;
507			/* usb1 is always used with HSIC */
508			phy_type = "hsic";
509		};
510
511		ehci2: usb@00a02000 {
512			compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
513			reg = <0x00a02000 0x100>;
514			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
515			clocks = <&usb_mod_clk 5>;
516			resets = <&usb_mod_clk 19>;
517			phys = <&usbphy3>;
518			phy-names = "usb";
519			status = "disabled";
520		};
521
522		ohci2: usb@00a02400 {
523			compatible = "allwinner,sun9i-a80-ohci", "generic-ohci";
524			reg = <0x00a02400 0x100>;
525			interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
526			clocks = <&usb_mod_clk 5>, <&usb_mod_clk 6>;
527			resets = <&usb_mod_clk 19>;
528			phys = <&usbphy3>;
529			phy-names = "usb";
530			status = "disabled";
531		};
532
533		usbphy3: phy@00a02800 {
534			compatible = "allwinner,sun9i-a80-usb-phy";
535			reg = <0x00a02800 0x4>;
536			clocks = <&usb_phy_clk 4>, <&usb_phy_clk 10>,
537				 <&usb_phy_clk 5>;
538			clock-names = "hsic_480M", "hsic_12M", "phy";
539			resets = <&usb_phy_clk 20>, <&usb_phy_clk 21>;
540			reset-names = "hsic", "phy";
541			status = "disabled";
542			#phy-cells = <0>;
543		};
544
545		mmc0: mmc@01c0f000 {
546			compatible = "allwinner,sun9i-a80-mmc";
547			reg = <0x01c0f000 0x1000>;
548			clocks = <&mmc_config_clk 0>, <&mmc0_clk 0>,
549				 <&mmc0_clk 1>, <&mmc0_clk 2>;
550			clock-names = "ahb", "mmc", "output", "sample";
551			resets = <&mmc_config_clk 0>;
552			reset-names = "ahb";
553			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
554			status = "disabled";
555			#address-cells = <1>;
556			#size-cells = <0>;
557		};
558
559		mmc1: mmc@01c10000 {
560			compatible = "allwinner,sun9i-a80-mmc";
561			reg = <0x01c10000 0x1000>;
562			clocks = <&mmc_config_clk 1>, <&mmc1_clk 0>,
563				 <&mmc1_clk 1>, <&mmc1_clk 2>;
564			clock-names = "ahb", "mmc", "output", "sample";
565			resets = <&mmc_config_clk 1>;
566			reset-names = "ahb";
567			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
568			status = "disabled";
569			#address-cells = <1>;
570			#size-cells = <0>;
571		};
572
573		mmc2: mmc@01c11000 {
574			compatible = "allwinner,sun9i-a80-mmc";
575			reg = <0x01c11000 0x1000>;
576			clocks = <&mmc_config_clk 2>, <&mmc2_clk 0>,
577				 <&mmc2_clk 1>, <&mmc2_clk 2>;
578			clock-names = "ahb", "mmc", "output", "sample";
579			resets = <&mmc_config_clk 2>;
580			reset-names = "ahb";
581			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
582			status = "disabled";
583			#address-cells = <1>;
584			#size-cells = <0>;
585		};
586
587		mmc3: mmc@01c12000 {
588			compatible = "allwinner,sun9i-a80-mmc";
589			reg = <0x01c12000 0x1000>;
590			clocks = <&mmc_config_clk 3>, <&mmc3_clk 0>,
591				 <&mmc3_clk 1>, <&mmc3_clk 2>;
592			clock-names = "ahb", "mmc", "output", "sample";
593			resets = <&mmc_config_clk 3>;
594			reset-names = "ahb";
595			interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
596			status = "disabled";
597			#address-cells = <1>;
598			#size-cells = <0>;
599		};
600
601		mmc_config_clk: clk@01c13000 {
602			compatible = "allwinner,sun9i-a80-mmc-config-clk";
603			reg = <0x01c13000 0x10>;
604			clocks = <&ahb0_gates 8>;
605			clock-names = "ahb";
606			resets = <&ahb0_resets 8>;
607			reset-names = "ahb";
608			#clock-cells = <1>;
609			#reset-cells = <1>;
610			clock-output-names = "mmc0_config", "mmc1_config",
611					     "mmc2_config", "mmc3_config";
612		};
613
614		gic: interrupt-controller@01c41000 {
615			compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
616			reg = <0x01c41000 0x1000>,
617			      <0x01c42000 0x1000>,
618			      <0x01c44000 0x2000>,
619			      <0x01c46000 0x2000>;
620			interrupt-controller;
621			#interrupt-cells = <3>;
622			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
623		};
624
625		ahb0_resets: reset@060005a0 {
626			#reset-cells = <1>;
627			compatible = "allwinner,sun6i-a31-clock-reset";
628			reg = <0x060005a0 0x4>;
629		};
630
631		ahb1_resets: reset@060005a4 {
632			#reset-cells = <1>;
633			compatible = "allwinner,sun6i-a31-clock-reset";
634			reg = <0x060005a4 0x4>;
635		};
636
637		ahb2_resets: reset@060005a8 {
638			#reset-cells = <1>;
639			compatible = "allwinner,sun6i-a31-clock-reset";
640			reg = <0x060005a8 0x4>;
641		};
642
643		apb0_resets: reset@060005b0 {
644			#reset-cells = <1>;
645			compatible = "allwinner,sun6i-a31-clock-reset";
646			reg = <0x060005b0 0x4>;
647		};
648
649		apb1_resets: reset@060005b4 {
650			#reset-cells = <1>;
651			compatible = "allwinner,sun6i-a31-clock-reset";
652			reg = <0x060005b4 0x4>;
653		};
654
655		timer@06000c00 {
656			compatible = "allwinner,sun4i-a10-timer";
657			reg = <0x06000c00 0xa0>;
658			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
659				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
660				     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
661				     <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
662				     <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
663				     <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
664
665			clocks = <&osc24M>;
666		};
667
668		wdt: watchdog@06000ca0 {
669			compatible = "allwinner,sun6i-a31-wdt";
670			reg = <0x06000ca0 0x20>;
671			interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
672		};
673
674		pio: pinctrl@06000800 {
675			compatible = "allwinner,sun9i-a80-pinctrl";
676			reg = <0x06000800 0x400>;
677			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
678				     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
679				     <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
680				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
681				     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
682			clocks = <&apb0_gates 5>;
683			gpio-controller;
684			interrupt-controller;
685			#interrupt-cells = <3>;
686			#size-cells = <0>;
687			#gpio-cells = <3>;
688
689			i2c3_pins_a: i2c3@0 {
690				allwinner,pins = "PG10", "PG11";
691				allwinner,function = "i2c3";
692				allwinner,drive = <SUN4I_PINCTRL_10_MA>;
693				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
694			};
695
696			mmc0_pins: mmc0 {
697				allwinner,pins = "PF0", "PF1" ,"PF2", "PF3",
698						 "PF4", "PF5";
699				allwinner,function = "mmc0";
700				allwinner,drive = <SUN4I_PINCTRL_30_MA>;
701				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
702			};
703
704			mmc2_8bit_pins: mmc2_8bit {
705				allwinner,pins = "PC6", "PC7", "PC8", "PC9",
706						 "PC10", "PC11", "PC12",
707						 "PC13", "PC14", "PC15",
708						 "PC16";
709				allwinner,function = "mmc2";
710				allwinner,drive = <SUN4I_PINCTRL_30_MA>;
711				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
712			};
713
714			uart0_pins_a: uart0@0 {
715				allwinner,pins = "PH12", "PH13";
716				allwinner,function = "uart0";
717				allwinner,drive = <SUN4I_PINCTRL_10_MA>;
718				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
719			};
720
721			uart4_pins_a: uart4@0 {
722				allwinner,pins = "PG12", "PG13", "PG14", "PG15";
723				allwinner,function = "uart4";
724				allwinner,drive = <SUN4I_PINCTRL_10_MA>;
725				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
726			};
727		};
728
729		uart0: serial@07000000 {
730			compatible = "snps,dw-apb-uart";
731			reg = <0x07000000 0x400>;
732			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
733			reg-shift = <2>;
734			reg-io-width = <4>;
735			clocks = <&apb1_gates 16>;
736			resets = <&apb1_resets 16>;
737			status = "disabled";
738		};
739
740		uart1: serial@07000400 {
741			compatible = "snps,dw-apb-uart";
742			reg = <0x07000400 0x400>;
743			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
744			reg-shift = <2>;
745			reg-io-width = <4>;
746			clocks = <&apb1_gates 17>;
747			resets = <&apb1_resets 17>;
748			status = "disabled";
749		};
750
751		uart2: serial@07000800 {
752			compatible = "snps,dw-apb-uart";
753			reg = <0x07000800 0x400>;
754			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
755			reg-shift = <2>;
756			reg-io-width = <4>;
757			clocks = <&apb1_gates 18>;
758			resets = <&apb1_resets 18>;
759			status = "disabled";
760		};
761
762		uart3: serial@07000c00 {
763			compatible = "snps,dw-apb-uart";
764			reg = <0x07000c00 0x400>;
765			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
766			reg-shift = <2>;
767			reg-io-width = <4>;
768			clocks = <&apb1_gates 19>;
769			resets = <&apb1_resets 19>;
770			status = "disabled";
771		};
772
773		uart4: serial@07001000 {
774			compatible = "snps,dw-apb-uart";
775			reg = <0x07001000 0x400>;
776			interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
777			reg-shift = <2>;
778			reg-io-width = <4>;
779			clocks = <&apb1_gates 20>;
780			resets = <&apb1_resets 20>;
781			status = "disabled";
782		};
783
784		uart5: serial@07001400 {
785			compatible = "snps,dw-apb-uart";
786			reg = <0x07001400 0x400>;
787			interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
788			reg-shift = <2>;
789			reg-io-width = <4>;
790			clocks = <&apb1_gates 21>;
791			resets = <&apb1_resets 21>;
792			status = "disabled";
793		};
794
795		i2c0: i2c@07002800 {
796			compatible = "allwinner,sun6i-a31-i2c";
797			reg = <0x07002800 0x400>;
798			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
799			clocks = <&apb1_gates 0>;
800			resets = <&apb1_resets 0>;
801			status = "disabled";
802			#address-cells = <1>;
803			#size-cells = <0>;
804		};
805
806		i2c1: i2c@07002c00 {
807			compatible = "allwinner,sun6i-a31-i2c";
808			reg = <0x07002c00 0x400>;
809			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
810			clocks = <&apb1_gates 1>;
811			resets = <&apb1_resets 1>;
812			status = "disabled";
813			#address-cells = <1>;
814			#size-cells = <0>;
815		};
816
817		i2c2: i2c@07003000 {
818			compatible = "allwinner,sun6i-a31-i2c";
819			reg = <0x07003000 0x400>;
820			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
821			clocks = <&apb1_gates 2>;
822			resets = <&apb1_resets 2>;
823			status = "disabled";
824			#address-cells = <1>;
825			#size-cells = <0>;
826		};
827
828		i2c3: i2c@07003400 {
829			compatible = "allwinner,sun6i-a31-i2c";
830			reg = <0x07003400 0x400>;
831			interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
832			clocks = <&apb1_gates 3>;
833			resets = <&apb1_resets 3>;
834			status = "disabled";
835			#address-cells = <1>;
836			#size-cells = <0>;
837		};
838
839		i2c4: i2c@07003800 {
840			compatible = "allwinner,sun6i-a31-i2c";
841			reg = <0x07003800 0x400>;
842			interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
843			clocks = <&apb1_gates 4>;
844			resets = <&apb1_resets 4>;
845			status = "disabled";
846			#address-cells = <1>;
847			#size-cells = <0>;
848		};
849
850		r_wdt: watchdog@08001000 {
851			compatible = "allwinner,sun6i-a31-wdt";
852			reg = <0x08001000 0x20>;
853			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
854		};
855
856		apbs_rst: reset@080014b0 {
857			reg = <0x080014b0 0x4>;
858			compatible = "allwinner,sun6i-a31-clock-reset";
859			#reset-cells = <1>;
860		};
861
862		nmi_intc: interrupt-controller@080015a0 {
863			compatible = "allwinner,sun9i-a80-nmi";
864			interrupt-controller;
865			#interrupt-cells = <2>;
866			reg = <0x080015a0 0xc>;
867			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
868		};
869
870		r_ir: ir@08002000 {
871			compatible = "allwinner,sun5i-a13-ir";
872			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
873			pinctrl-names = "default";
874			pinctrl-0 = <&r_ir_pins>;
875			clocks = <&apbs_gates 1>, <&r_ir_clk>;
876			clock-names = "apb", "ir";
877			resets = <&apbs_rst 1>;
878			reg = <0x08002000 0x40>;
879			status = "disabled";
880		};
881
882		r_uart: serial@08002800 {
883			compatible = "snps,dw-apb-uart";
884			reg = <0x08002800 0x400>;
885			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
886			reg-shift = <2>;
887			reg-io-width = <4>;
888			clocks = <&apbs_gates 4>;
889			resets = <&apbs_rst 4>;
890			status = "disabled";
891		};
892
893		r_pio: pinctrl@08002c00 {
894			compatible = "allwinner,sun9i-a80-r-pinctrl";
895			reg = <0x08002c00 0x400>;
896			interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
897				     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
898			clocks = <&apbs_gates 0>;
899			resets = <&apbs_rst 0>;
900			gpio-controller;
901			interrupt-controller;
902			#address-cells = <1>;
903			#size-cells = <0>;
904			#gpio-cells = <3>;
905
906			r_ir_pins: r_ir {
907				allwinner,pins = "PL6";
908				allwinner,function = "s_cir_rx";
909				allwinner,drive = <SUN4I_PINCTRL_10_MA>;
910				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
911			};
912
913			r_rsb_pins: r_rsb {
914				allwinner,pins = "PN0", "PN1";
915				allwinner,function = "s_rsb";
916				allwinner,drive = <SUN4I_PINCTRL_20_MA>;
917				allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
918			};
919		};
920
921		r_rsb: i2c@08003400 {
922			compatible = "allwinner,sun8i-a23-rsb";
923			reg = <0x08003400 0x400>;
924			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
925			clocks = <&apbs_gates 3>;
926			clock-frequency = <3000000>;
927			resets = <&apbs_rst 3>;
928			pinctrl-names = "default";
929			pinctrl-0 = <&r_rsb_pins>;
930			status = "disabled";
931			#address-cells = <1>;
932			#size-cells = <0>;
933		};
934	};
935};
936