xref: /linux/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi (revision 64c21f253a3737c15ab745e9276b2352d86aed26)
1/*
2 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
3 * Copyright (C) 2021 Tobias Schramm <t.schramm@manjaro.org>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 *  a) This file is free software; you can redistribute it and/or
11 *     modify it under the terms of the GNU General Public License as
12 *     published by the Free Software Foundation; either version 2 of the
13 *     License, or (at your option) any later version.
14 *
15 *     This file is distributed in the hope that it will be useful,
16 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *     GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 *  b) Permission is hereby granted, free of charge, to any person
23 *     obtaining a copy of this software and associated documentation
24 *     files (the "Software"), to deal in the Software without
25 *     restriction, including without limitation the rights to use,
26 *     copy, modify, merge, publish, distribute, sublicense, and/or
27 *     sell copies of the Software, and to permit persons to whom the
28 *     Software is furnished to do so, subject to the following
29 *     conditions:
30 *
31 *     The above copyright notice and this permission notice shall be
32 *     included in all copies or substantial portions of the Software.
33 *
34 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 *     OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44#include <dt-bindings/interrupt-controller/arm-gic.h>
45#include <dt-bindings/clock/sun6i-rtc.h>
46#include <dt-bindings/clock/sun8i-v3s-ccu.h>
47#include <dt-bindings/reset/sun8i-v3s-ccu.h>
48#include <dt-bindings/clock/sun8i-de2.h>
49
50/ {
51	#address-cells = <1>;
52	#size-cells = <1>;
53	interrupt-parent = <&gic>;
54
55	chosen {
56		#address-cells = <1>;
57		#size-cells = <1>;
58		ranges;
59
60		framebuffer-lcd {
61			compatible = "allwinner,simple-framebuffer",
62				     "simple-framebuffer";
63			allwinner,pipeline = "mixer0-lcd0";
64			clocks = <&display_clocks CLK_MIXER0>,
65				 <&ccu CLK_TCON0>;
66			status = "disabled";
67		};
68	};
69
70	cpus {
71		#address-cells = <1>;
72		#size-cells = <0>;
73
74		cpu@0 {
75			compatible = "arm,cortex-a7";
76			device_type = "cpu";
77			reg = <0>;
78			clocks = <&ccu CLK_CPU>;
79		};
80	};
81
82	de: display-engine {
83		compatible = "allwinner,sun8i-v3s-display-engine";
84		allwinner,pipelines = <&mixer0>;
85		status = "disabled";
86	};
87
88	timer {
89		compatible = "arm,armv7-timer";
90		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
94	};
95
96	clocks {
97		#address-cells = <1>;
98		#size-cells = <1>;
99		ranges;
100
101		osc24M: osc24M-clk {
102			#clock-cells = <0>;
103			compatible = "fixed-clock";
104			clock-frequency = <24000000>;
105			clock-accuracy = <50000>;
106			clock-output-names = "osc24M";
107		};
108
109		osc32k: osc32k-clk {
110			#clock-cells = <0>;
111			compatible = "fixed-clock";
112			clock-frequency = <32768>;
113			clock-accuracy = <50000>;
114			clock-output-names = "ext-osc32k";
115		};
116	};
117
118	soc {
119		compatible = "simple-bus";
120		#address-cells = <1>;
121		#size-cells = <1>;
122		ranges;
123
124		display_clocks: clock@1000000 {
125			compatible = "allwinner,sun8i-v3s-de2-clk";
126			reg = <0x01000000 0x10000>;
127			clocks = <&ccu CLK_BUS_DE>,
128				 <&ccu CLK_DE>;
129			clock-names = "bus",
130				      "mod";
131			resets = <&ccu RST_BUS_DE>;
132			#clock-cells = <1>;
133			#reset-cells = <1>;
134		};
135
136		mixer0: mixer@1100000 {
137			compatible = "allwinner,sun8i-v3s-de2-mixer";
138			reg = <0x01100000 0x100000>;
139			clocks = <&display_clocks 0>,
140				 <&display_clocks 6>;
141			clock-names = "bus",
142				      "mod";
143			resets = <&display_clocks 0>;
144
145			ports {
146				#address-cells = <1>;
147				#size-cells = <0>;
148
149				mixer0_out: port@1 {
150					reg = <1>;
151
152					mixer0_out_tcon0: endpoint {
153						remote-endpoint = <&tcon0_in_mixer0>;
154					};
155				};
156			};
157		};
158
159		syscon: system-control@1c00000 {
160			compatible = "allwinner,sun8i-v3s-system-control",
161				     "allwinner,sun8i-h3-system-control";
162			reg = <0x01c00000 0xd0>;
163			#address-cells = <1>;
164			#size-cells = <1>;
165			ranges;
166		};
167
168		nmi_intc: interrupt-controller@1c000d0 {
169			compatible = "allwinner,sun8i-v3s-nmi",
170				     "allwinner,sun9i-a80-nmi";
171			interrupt-controller;
172			#interrupt-cells = <2>;
173			reg = <0x01c000d0 0x0c>;
174			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
175		};
176
177		dma: dma-controller@1c02000 {
178			compatible = "allwinner,sun8i-v3s-dma";
179			reg = <0x01c02000 0x1000>;
180			interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
181			clocks = <&ccu CLK_BUS_DMA>;
182			resets = <&ccu RST_BUS_DMA>;
183			#dma-cells = <1>;
184		};
185
186		tcon0: lcd-controller@1c0c000 {
187			compatible = "allwinner,sun8i-v3s-tcon";
188			reg = <0x01c0c000 0x1000>;
189			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
190			clocks = <&ccu CLK_BUS_TCON0>,
191				 <&ccu CLK_TCON0>;
192			clock-names = "ahb",
193				      "tcon-ch0";
194			clock-output-names = "tcon-data-clock";
195			#clock-cells = <0>;
196			resets = <&ccu RST_BUS_TCON0>;
197			reset-names = "lcd";
198			status = "disabled";
199
200			ports {
201				#address-cells = <1>;
202				#size-cells = <0>;
203
204				tcon0_in: port@0 {
205					reg = <0>;
206
207					tcon0_in_mixer0: endpoint {
208						remote-endpoint = <&mixer0_out_tcon0>;
209					};
210				};
211
212				tcon0_out: port@1 {
213					#address-cells = <1>;
214					#size-cells = <0>;
215					reg = <1>;
216				};
217			};
218		};
219
220
221		mmc0: mmc@1c0f000 {
222			compatible = "allwinner,sun7i-a20-mmc";
223			reg = <0x01c0f000 0x1000>;
224			clocks = <&ccu CLK_BUS_MMC0>,
225				 <&ccu CLK_MMC0>,
226				 <&ccu CLK_MMC0_OUTPUT>,
227				 <&ccu CLK_MMC0_SAMPLE>;
228			clock-names = "ahb",
229				      "mmc",
230				      "output",
231				      "sample";
232			resets = <&ccu RST_BUS_MMC0>;
233			reset-names = "ahb";
234			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
235			pinctrl-names = "default";
236			pinctrl-0 = <&mmc0_pins>;
237			status = "disabled";
238			#address-cells = <1>;
239			#size-cells = <0>;
240		};
241
242		mmc1: mmc@1c10000 {
243			compatible = "allwinner,sun7i-a20-mmc";
244			reg = <0x01c10000 0x1000>;
245			clocks = <&ccu CLK_BUS_MMC1>,
246				 <&ccu CLK_MMC1>,
247				 <&ccu CLK_MMC1_OUTPUT>,
248				 <&ccu CLK_MMC1_SAMPLE>;
249			clock-names = "ahb",
250				      "mmc",
251				      "output",
252				      "sample";
253			resets = <&ccu RST_BUS_MMC1>;
254			reset-names = "ahb";
255			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
256			pinctrl-names = "default";
257			pinctrl-0 = <&mmc1_pins>;
258			status = "disabled";
259			#address-cells = <1>;
260			#size-cells = <0>;
261		};
262
263		mmc2: mmc@1c11000 {
264			compatible = "allwinner,sun7i-a20-mmc";
265			reg = <0x01c11000 0x1000>;
266			clocks = <&ccu CLK_BUS_MMC2>,
267				 <&ccu CLK_MMC2>,
268				 <&ccu CLK_MMC2_OUTPUT>,
269				 <&ccu CLK_MMC2_SAMPLE>;
270			clock-names = "ahb",
271				      "mmc",
272				      "output",
273				      "sample";
274			resets = <&ccu RST_BUS_MMC2>;
275			reset-names = "ahb";
276			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
277			status = "disabled";
278			#address-cells = <1>;
279			#size-cells = <0>;
280		};
281
282		crypto@1c15000 {
283			compatible = "allwinner,sun8i-v3s-crypto",
284				     "allwinner,sun8i-a33-crypto";
285			reg = <0x01c15000 0x1000>;
286			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
287			clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
288			clock-names = "ahb", "mod";
289			dmas = <&dma 16>, <&dma 16>;
290			dma-names = "rx", "tx";
291			resets = <&ccu RST_BUS_CE>;
292			reset-names = "ahb";
293		};
294
295		usb_otg: usb@1c19000 {
296			compatible = "allwinner,sun8i-h3-musb";
297			reg = <0x01c19000 0x0400>;
298			clocks = <&ccu CLK_BUS_OTG>;
299			resets = <&ccu RST_BUS_OTG>;
300			interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
301			interrupt-names = "mc";
302			phys = <&usbphy 0>;
303			phy-names = "usb";
304			extcon = <&usbphy 0>;
305			status = "disabled";
306		};
307
308		usbphy: phy@1c19400 {
309			compatible = "allwinner,sun8i-v3s-usb-phy";
310			reg = <0x01c19400 0x2c>,
311			      <0x01c1a800 0x4>;
312			reg-names = "phy_ctrl",
313				    "pmu0";
314			clocks = <&ccu CLK_USB_PHY0>;
315			clock-names = "usb0_phy";
316			resets = <&ccu RST_USB_PHY0>;
317			reset-names = "usb0_reset";
318			status = "disabled";
319			#phy-cells = <1>;
320		};
321
322		ehci: usb@1c1a000 {
323			compatible = "allwinner,sun8i-v3s-ehci", "generic-ehci";
324			reg = <0x01c1a000 0x100>;
325			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
326			clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
327			resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
328			phys = <&usbphy 0>;
329			phy-names = "usb";
330			status = "disabled";
331		};
332
333		ohci: usb@1c1a400 {
334			compatible = "allwinner,sun8i-v3s-ohci", "generic-ohci";
335			reg = <0x01c1a400 0x100>;
336			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
337			clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
338				 <&ccu CLK_USB_OHCI0>;
339			resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
340			phys = <&usbphy 0>;
341			phy-names = "usb";
342			status = "disabled";
343		};
344
345		ccu: clock@1c20000 {
346			compatible = "allwinner,sun8i-v3s-ccu";
347			reg = <0x01c20000 0x400>;
348			clocks = <&osc24M>, <&rtc CLK_OSC32K>;
349			clock-names = "hosc", "losc";
350			#clock-cells = <1>;
351			#reset-cells = <1>;
352		};
353
354		rtc: rtc@1c20400 {
355			#clock-cells = <1>;
356			compatible = "allwinner,sun8i-v3-rtc";
357			reg = <0x01c20400 0x54>;
358			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
359				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
360			clocks = <&osc32k>;
361			clock-output-names = "osc32k", "osc32k-out";
362		};
363
364		pio: pinctrl@1c20800 {
365			compatible = "allwinner,sun8i-v3s-pinctrl";
366			reg = <0x01c20800 0x400>;
367			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
368				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
369			clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
370				 <&rtc CLK_OSC32K>;
371			clock-names = "apb", "hosc", "losc";
372			gpio-controller;
373			#gpio-cells = <3>;
374			interrupt-controller;
375			#interrupt-cells = <3>;
376
377			/omit-if-no-ref/
378			csi0_mclk_pin: csi0-mclk-pin {
379				pins = "PE20";
380				function = "csi_mipi";
381			};
382
383			/omit-if-no-ref/
384			csi1_8bit_pins: csi1-8bit-pins {
385				pins = "PE0", "PE2", "PE3", "PE8", "PE9",
386				       "PE10", "PE11", "PE12", "PE13", "PE14",
387				       "PE15";
388				function = "csi";
389			};
390
391			/omit-if-no-ref/
392			csi1_mclk_pin: csi1-mclk-pin {
393				pins = "PE1";
394				function = "csi";
395			};
396
397			i2c0_pins: i2c0-pins {
398				pins = "PB6", "PB7";
399				function = "i2c0";
400			};
401
402			/omit-if-no-ref/
403			i2c1_pb_pins: i2c1-pb-pins {
404				pins = "PB8", "PB9";
405				function = "i2c1";
406			};
407
408			/omit-if-no-ref/
409			i2c1_pe_pins: i2c1-pe-pins {
410				pins = "PE21", "PE22";
411				function = "i2c1";
412			};
413
414			/omit-if-no-ref/
415			lcd_rgb666_pe_pins: lcd-rgb666-pe-pins {
416				pins = "PE0", "PE1", "PE2", "PE3", "PE4", "PE5",
417				       "PE6", "PE7", "PE8", "PE9", "PE10", "PE11",
418				       "PE12", "PE13", "PE14", "PE15", "PE16", "PE17",
419				       "PE18", "PE19", "PE23", "PE24";
420				function = "lcd";
421			};
422
423			uart0_pb_pins: uart0-pb-pins {
424				pins = "PB8", "PB9";
425				function = "uart0";
426			};
427
428			/omit-if-no-ref/
429			uart1_pe_pins: uart1-pe-pins {
430				pins = "PE21", "PE22";
431				function = "uart1";
432			};
433
434			uart2_pins: uart2-pins {
435				pins = "PB0", "PB1";
436				function = "uart2";
437			};
438
439			mmc0_pins: mmc0-pins {
440				pins = "PF0", "PF1", "PF2", "PF3",
441				       "PF4", "PF5";
442				function = "mmc0";
443				drive-strength = <30>;
444				bias-pull-up;
445			};
446
447			mmc1_pins: mmc1-pins {
448				pins = "PG0", "PG1", "PG2", "PG3",
449				       "PG4", "PG5";
450				function = "mmc1";
451				drive-strength = <30>;
452				bias-pull-up;
453			};
454
455			/omit-if-no-ref/
456			pwm0_pin: pwm0-pin {
457				pins = "PB4";
458				function = "pwm0";
459			};
460
461			/omit-if-no-ref/
462			pwm1_pin: pwm1-pin {
463				pins = "PB5";
464				function = "pwm1";
465			};
466
467			spi0_pins: spi0-pins {
468				pins = "PC0", "PC1", "PC2", "PC3";
469				function = "spi0";
470			};
471		};
472
473		timer@1c20c00 {
474			compatible = "allwinner,sun8i-v3s-timer";
475			reg = <0x01c20c00 0xa0>;
476			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
477				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
478				     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
479			clocks = <&osc24M>;
480		};
481
482		wdt0: watchdog@1c20ca0 {
483			compatible = "allwinner,sun6i-a31-wdt";
484			reg = <0x01c20ca0 0x20>;
485			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
486			clocks = <&osc24M>;
487		};
488
489		pwm: pwm@1c21400 {
490			compatible = "allwinner,sun8i-v3s-pwm",
491				     "allwinner,sun7i-a20-pwm";
492			reg = <0x01c21400 0xc>;
493			clocks = <&osc24M>;
494			#pwm-cells = <3>;
495			status = "disabled";
496		};
497
498		lradc: lradc@1c22800 {
499			compatible = "allwinner,sun4i-a10-lradc-keys";
500			reg = <0x01c22800 0x400>;
501			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
502			status = "disabled";
503		};
504
505		codec: codec@1c22c00 {
506			#sound-dai-cells = <0>;
507			compatible = "allwinner,sun8i-v3s-codec";
508			reg = <0x01c22c00 0x400>;
509			interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
510			clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
511			clock-names = "apb", "codec";
512			resets = <&ccu RST_BUS_CODEC>;
513			dmas = <&dma 15>, <&dma 15>;
514			dma-names = "rx", "tx";
515			allwinner,codec-analog-controls = <&codec_analog>;
516			status = "disabled";
517		};
518
519		codec_analog: codec-analog@1c23000 {
520			compatible = "allwinner,sun8i-v3s-codec-analog";
521			reg = <0x01c23000 0x4>;
522		};
523
524		uart0: serial@1c28000 {
525			compatible = "snps,dw-apb-uart";
526			reg = <0x01c28000 0x400>;
527			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
528			reg-shift = <2>;
529			reg-io-width = <4>;
530			clocks = <&ccu CLK_BUS_UART0>;
531			dmas = <&dma 6>, <&dma 6>;
532			dma-names = "tx", "rx";
533			resets = <&ccu RST_BUS_UART0>;
534			status = "disabled";
535		};
536
537		uart1: serial@1c28400 {
538			compatible = "snps,dw-apb-uart";
539			reg = <0x01c28400 0x400>;
540			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
541			reg-shift = <2>;
542			reg-io-width = <4>;
543			clocks = <&ccu CLK_BUS_UART1>;
544			dmas = <&dma 7>, <&dma 7>;
545			dma-names = "tx", "rx";
546			resets = <&ccu RST_BUS_UART1>;
547			status = "disabled";
548		};
549
550		uart2: serial@1c28800 {
551			compatible = "snps,dw-apb-uart";
552			reg = <0x01c28800 0x400>;
553			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
554			reg-shift = <2>;
555			reg-io-width = <4>;
556			clocks = <&ccu CLK_BUS_UART2>;
557			dmas = <&dma 8>, <&dma 8>;
558			dma-names = "tx", "rx";
559			resets = <&ccu RST_BUS_UART2>;
560			pinctrl-0 = <&uart2_pins>;
561			pinctrl-names = "default";
562			status = "disabled";
563		};
564
565		i2c0: i2c@1c2ac00 {
566			compatible = "allwinner,sun6i-a31-i2c";
567			reg = <0x01c2ac00 0x400>;
568			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
569			clocks = <&ccu CLK_BUS_I2C0>;
570			resets = <&ccu RST_BUS_I2C0>;
571			pinctrl-names = "default";
572			pinctrl-0 = <&i2c0_pins>;
573			status = "disabled";
574			#address-cells = <1>;
575			#size-cells = <0>;
576		};
577
578		i2c1: i2c@1c2b000 {
579			compatible = "allwinner,sun6i-a31-i2c";
580			reg = <0x01c2b000 0x400>;
581			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
582			clocks = <&ccu CLK_BUS_I2C1>;
583			resets = <&ccu RST_BUS_I2C1>;
584			status = "disabled";
585			#address-cells = <1>;
586			#size-cells = <0>;
587		};
588
589		emac: ethernet@1c30000 {
590			compatible = "allwinner,sun8i-v3s-emac";
591			syscon = <&syscon>;
592			reg = <0x01c30000 0x10000>;
593			interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
594			interrupt-names = "macirq";
595			resets = <&ccu RST_BUS_EMAC>;
596			reset-names = "stmmaceth";
597			clocks = <&ccu CLK_BUS_EMAC>;
598			clock-names = "stmmaceth";
599			phy-handle = <&int_mii_phy>;
600			phy-mode = "mii";
601			status = "disabled";
602
603			mdio: mdio {
604				#address-cells = <1>;
605				#size-cells = <0>;
606				compatible = "snps,dwmac-mdio";
607			};
608
609			mdio_mux: mdio-mux {
610				compatible = "allwinner,sun8i-h3-mdio-mux";
611				#address-cells = <1>;
612				#size-cells = <0>;
613
614				mdio-parent-bus = <&mdio>;
615				/* Only one MDIO is usable at the time */
616				internal_mdio: mdio@1 {
617					compatible = "allwinner,sun8i-h3-mdio-internal";
618					reg = <1>;
619					#address-cells = <1>;
620					#size-cells = <0>;
621
622					int_mii_phy: ethernet-phy@1 {
623						compatible = "ethernet-phy-ieee802.3-c22";
624						reg = <1>;
625						clocks = <&ccu CLK_BUS_EPHY>;
626						resets = <&ccu RST_BUS_EPHY>;
627					};
628				};
629			};
630		};
631
632		spi0: spi@1c68000 {
633			compatible = "allwinner,sun8i-h3-spi";
634			reg = <0x01c68000 0x1000>;
635			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
636			clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
637			clock-names = "ahb", "mod";
638			dmas = <&dma 23>, <&dma 23>;
639			dma-names = "rx", "tx";
640			pinctrl-names = "default";
641			pinctrl-0 = <&spi0_pins>;
642			resets = <&ccu RST_BUS_SPI0>;
643			status = "disabled";
644			#address-cells = <1>;
645			#size-cells = <0>;
646		};
647
648		gic: interrupt-controller@1c81000 {
649			compatible = "arm,gic-400";
650			reg = <0x01c81000 0x1000>,
651			      <0x01c82000 0x2000>,
652			      <0x01c84000 0x2000>,
653			      <0x01c86000 0x2000>;
654			interrupt-controller;
655			#interrupt-cells = <3>;
656			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
657		};
658
659		csi1: camera@1cb4000 {
660			compatible = "allwinner,sun8i-v3s-csi";
661			reg = <0x01cb4000 0x3000>;
662			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
663			clocks = <&ccu CLK_BUS_CSI>,
664				 <&ccu CLK_CSI_SCLK>,
665				 <&ccu CLK_DRAM_CSI>;
666			clock-names = "bus", "mod", "ram";
667			resets = <&ccu RST_BUS_CSI>;
668			status = "disabled";
669		};
670	};
671};
672