xref: /linux/scripts/dtc/include-prefixes/arm/allwinner/sun8i-v3s.dtsi (revision 41192b67593928a3e1aa26edb7cb45e00c728dde)
1724ba675SRob Herring/*
2724ba675SRob Herring * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
3724ba675SRob Herring * Copyright (C) 2021 Tobias Schramm <t.schramm@manjaro.org>
4724ba675SRob Herring *
5724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
6724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
7724ba675SRob Herring * licensing only applies to this file, and not this project as a
8724ba675SRob Herring * whole.
9724ba675SRob Herring *
10724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
11724ba675SRob Herring *     modify it under the terms of the GNU General Public License as
12724ba675SRob Herring *     published by the Free Software Foundation; either version 2 of the
13724ba675SRob Herring *     License, or (at your option) any later version.
14724ba675SRob Herring *
15724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
16724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18724ba675SRob Herring *     GNU General Public License for more details.
19724ba675SRob Herring *
20724ba675SRob Herring * Or, alternatively,
21724ba675SRob Herring *
22724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
23724ba675SRob Herring *     obtaining a copy of this software and associated documentation
24724ba675SRob Herring *     files (the "Software"), to deal in the Software without
25724ba675SRob Herring *     restriction, including without limitation the rights to use,
26724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
27724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
28724ba675SRob Herring *     Software is furnished to do so, subject to the following
29724ba675SRob Herring *     conditions:
30724ba675SRob Herring *
31724ba675SRob Herring *     The above copyright notice and this permission notice shall be
32724ba675SRob Herring *     included in all copies or substantial portions of the Software.
33724ba675SRob Herring *
34724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
42724ba675SRob Herring */
43724ba675SRob Herring
44724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
45724ba675SRob Herring#include <dt-bindings/clock/sun6i-rtc.h>
46724ba675SRob Herring#include <dt-bindings/clock/sun8i-v3s-ccu.h>
47724ba675SRob Herring#include <dt-bindings/reset/sun8i-v3s-ccu.h>
48724ba675SRob Herring#include <dt-bindings/clock/sun8i-de2.h>
49724ba675SRob Herring
50724ba675SRob Herring/ {
51724ba675SRob Herring	#address-cells = <1>;
52724ba675SRob Herring	#size-cells = <1>;
53724ba675SRob Herring	interrupt-parent = <&gic>;
54724ba675SRob Herring
55724ba675SRob Herring	chosen {
56724ba675SRob Herring		#address-cells = <1>;
57724ba675SRob Herring		#size-cells = <1>;
58724ba675SRob Herring		ranges;
59724ba675SRob Herring
60724ba675SRob Herring		framebuffer-lcd {
61724ba675SRob Herring			compatible = "allwinner,simple-framebuffer",
62724ba675SRob Herring				     "simple-framebuffer";
63724ba675SRob Herring			allwinner,pipeline = "mixer0-lcd0";
64724ba675SRob Herring			clocks = <&display_clocks CLK_MIXER0>,
65724ba675SRob Herring				 <&ccu CLK_TCON0>;
66724ba675SRob Herring			status = "disabled";
67724ba675SRob Herring		};
68724ba675SRob Herring	};
69724ba675SRob Herring
70724ba675SRob Herring	cpus {
71724ba675SRob Herring		#address-cells = <1>;
72724ba675SRob Herring		#size-cells = <0>;
73724ba675SRob Herring
74724ba675SRob Herring		cpu@0 {
75724ba675SRob Herring			compatible = "arm,cortex-a7";
76724ba675SRob Herring			device_type = "cpu";
77724ba675SRob Herring			reg = <0>;
78724ba675SRob Herring			clocks = <&ccu CLK_CPU>;
79724ba675SRob Herring		};
80724ba675SRob Herring	};
81724ba675SRob Herring
82724ba675SRob Herring	de: display-engine {
83724ba675SRob Herring		compatible = "allwinner,sun8i-v3s-display-engine";
84724ba675SRob Herring		allwinner,pipelines = <&mixer0>;
85724ba675SRob Herring		status = "disabled";
86724ba675SRob Herring	};
87724ba675SRob Herring
88724ba675SRob Herring	timer {
89724ba675SRob Herring		compatible = "arm,armv7-timer";
90724ba675SRob Herring		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91724ba675SRob Herring			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92724ba675SRob Herring			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93724ba675SRob Herring			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
94724ba675SRob Herring	};
95724ba675SRob Herring
96724ba675SRob Herring	clocks {
97724ba675SRob Herring		#address-cells = <1>;
98724ba675SRob Herring		#size-cells = <1>;
99724ba675SRob Herring		ranges;
100724ba675SRob Herring
101724ba675SRob Herring		osc24M: osc24M_clk {
102724ba675SRob Herring			#clock-cells = <0>;
103724ba675SRob Herring			compatible = "fixed-clock";
104724ba675SRob Herring			clock-frequency = <24000000>;
105724ba675SRob Herring			clock-accuracy = <50000>;
106724ba675SRob Herring			clock-output-names = "osc24M";
107724ba675SRob Herring		};
108724ba675SRob Herring
109724ba675SRob Herring		osc32k: osc32k_clk {
110724ba675SRob Herring			#clock-cells = <0>;
111724ba675SRob Herring			compatible = "fixed-clock";
112724ba675SRob Herring			clock-frequency = <32768>;
113724ba675SRob Herring			clock-accuracy = <50000>;
114724ba675SRob Herring			clock-output-names = "ext-osc32k";
115724ba675SRob Herring		};
116724ba675SRob Herring	};
117724ba675SRob Herring
118724ba675SRob Herring	soc {
119724ba675SRob Herring		compatible = "simple-bus";
120724ba675SRob Herring		#address-cells = <1>;
121724ba675SRob Herring		#size-cells = <1>;
122724ba675SRob Herring		ranges;
123724ba675SRob Herring
124724ba675SRob Herring		display_clocks: clock@1000000 {
125724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-de2-clk";
126724ba675SRob Herring			reg = <0x01000000 0x10000>;
127724ba675SRob Herring			clocks = <&ccu CLK_BUS_DE>,
128724ba675SRob Herring				 <&ccu CLK_DE>;
129724ba675SRob Herring			clock-names = "bus",
130724ba675SRob Herring				      "mod";
131724ba675SRob Herring			resets = <&ccu RST_BUS_DE>;
132724ba675SRob Herring			#clock-cells = <1>;
133724ba675SRob Herring			#reset-cells = <1>;
134724ba675SRob Herring		};
135724ba675SRob Herring
136724ba675SRob Herring		mixer0: mixer@1100000 {
137724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-de2-mixer";
138724ba675SRob Herring			reg = <0x01100000 0x100000>;
139724ba675SRob Herring			clocks = <&display_clocks 0>,
140724ba675SRob Herring				 <&display_clocks 6>;
141724ba675SRob Herring			clock-names = "bus",
142724ba675SRob Herring				      "mod";
143724ba675SRob Herring			resets = <&display_clocks 0>;
144724ba675SRob Herring
145724ba675SRob Herring			ports {
146724ba675SRob Herring				#address-cells = <1>;
147724ba675SRob Herring				#size-cells = <0>;
148724ba675SRob Herring
149724ba675SRob Herring				mixer0_out: port@1 {
150724ba675SRob Herring					reg = <1>;
151724ba675SRob Herring
152724ba675SRob Herring					mixer0_out_tcon0: endpoint {
153724ba675SRob Herring						remote-endpoint = <&tcon0_in_mixer0>;
154724ba675SRob Herring					};
155724ba675SRob Herring				};
156724ba675SRob Herring			};
157724ba675SRob Herring		};
158724ba675SRob Herring
159724ba675SRob Herring		syscon: system-control@1c00000 {
160724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-system-control",
161724ba675SRob Herring				     "allwinner,sun8i-h3-system-control";
162724ba675SRob Herring			reg = <0x01c00000 0xd0>;
163724ba675SRob Herring			#address-cells = <1>;
164724ba675SRob Herring			#size-cells = <1>;
165724ba675SRob Herring			ranges;
166724ba675SRob Herring		};
167724ba675SRob Herring
168724ba675SRob Herring		nmi_intc: interrupt-controller@1c000d0 {
169724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-nmi",
170724ba675SRob Herring				     "allwinner,sun9i-a80-nmi";
171724ba675SRob Herring			interrupt-controller;
172724ba675SRob Herring			#interrupt-cells = <2>;
173724ba675SRob Herring			reg = <0x01c000d0 0x0c>;
174724ba675SRob Herring			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
175724ba675SRob Herring		};
176724ba675SRob Herring
177724ba675SRob Herring		dma: dma-controller@1c02000 {
178724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-dma";
179724ba675SRob Herring			reg = <0x01c02000 0x1000>;
180724ba675SRob Herring			interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
181724ba675SRob Herring			clocks = <&ccu CLK_BUS_DMA>;
182724ba675SRob Herring			resets = <&ccu RST_BUS_DMA>;
183724ba675SRob Herring			#dma-cells = <1>;
184724ba675SRob Herring		};
185724ba675SRob Herring
186724ba675SRob Herring		tcon0: lcd-controller@1c0c000 {
187724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-tcon";
188724ba675SRob Herring			reg = <0x01c0c000 0x1000>;
189724ba675SRob Herring			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
190724ba675SRob Herring			clocks = <&ccu CLK_BUS_TCON0>,
191724ba675SRob Herring				 <&ccu CLK_TCON0>;
192724ba675SRob Herring			clock-names = "ahb",
193724ba675SRob Herring				      "tcon-ch0";
194724ba675SRob Herring			clock-output-names = "tcon-data-clock";
195724ba675SRob Herring			#clock-cells = <0>;
196724ba675SRob Herring			resets = <&ccu RST_BUS_TCON0>;
197724ba675SRob Herring			reset-names = "lcd";
198724ba675SRob Herring			status = "disabled";
199724ba675SRob Herring
200724ba675SRob Herring			ports {
201724ba675SRob Herring				#address-cells = <1>;
202724ba675SRob Herring				#size-cells = <0>;
203724ba675SRob Herring
204724ba675SRob Herring				tcon0_in: port@0 {
205724ba675SRob Herring					reg = <0>;
206724ba675SRob Herring
207724ba675SRob Herring					tcon0_in_mixer0: endpoint {
208724ba675SRob Herring						remote-endpoint = <&mixer0_out_tcon0>;
209724ba675SRob Herring					};
210724ba675SRob Herring				};
211724ba675SRob Herring
212724ba675SRob Herring				tcon0_out: port@1 {
213724ba675SRob Herring					#address-cells = <1>;
214724ba675SRob Herring					#size-cells = <0>;
215724ba675SRob Herring					reg = <1>;
216724ba675SRob Herring				};
217724ba675SRob Herring			};
218724ba675SRob Herring		};
219724ba675SRob Herring
220724ba675SRob Herring
221724ba675SRob Herring		mmc0: mmc@1c0f000 {
222724ba675SRob Herring			compatible = "allwinner,sun7i-a20-mmc";
223724ba675SRob Herring			reg = <0x01c0f000 0x1000>;
224724ba675SRob Herring			clocks = <&ccu CLK_BUS_MMC0>,
225724ba675SRob Herring				 <&ccu CLK_MMC0>,
226724ba675SRob Herring				 <&ccu CLK_MMC0_OUTPUT>,
227724ba675SRob Herring				 <&ccu CLK_MMC0_SAMPLE>;
228724ba675SRob Herring			clock-names = "ahb",
229724ba675SRob Herring				      "mmc",
230724ba675SRob Herring				      "output",
231724ba675SRob Herring				      "sample";
232724ba675SRob Herring			resets = <&ccu RST_BUS_MMC0>;
233724ba675SRob Herring			reset-names = "ahb";
234724ba675SRob Herring			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
235724ba675SRob Herring			pinctrl-names = "default";
236724ba675SRob Herring			pinctrl-0 = <&mmc0_pins>;
237724ba675SRob Herring			status = "disabled";
238724ba675SRob Herring			#address-cells = <1>;
239724ba675SRob Herring			#size-cells = <0>;
240724ba675SRob Herring		};
241724ba675SRob Herring
242724ba675SRob Herring		mmc1: mmc@1c10000 {
243724ba675SRob Herring			compatible = "allwinner,sun7i-a20-mmc";
244724ba675SRob Herring			reg = <0x01c10000 0x1000>;
245724ba675SRob Herring			clocks = <&ccu CLK_BUS_MMC1>,
246724ba675SRob Herring				 <&ccu CLK_MMC1>,
247724ba675SRob Herring				 <&ccu CLK_MMC1_OUTPUT>,
248724ba675SRob Herring				 <&ccu CLK_MMC1_SAMPLE>;
249724ba675SRob Herring			clock-names = "ahb",
250724ba675SRob Herring				      "mmc",
251724ba675SRob Herring				      "output",
252724ba675SRob Herring				      "sample";
253724ba675SRob Herring			resets = <&ccu RST_BUS_MMC1>;
254724ba675SRob Herring			reset-names = "ahb";
255724ba675SRob Herring			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
256724ba675SRob Herring			pinctrl-names = "default";
257724ba675SRob Herring			pinctrl-0 = <&mmc1_pins>;
258724ba675SRob Herring			status = "disabled";
259724ba675SRob Herring			#address-cells = <1>;
260724ba675SRob Herring			#size-cells = <0>;
261724ba675SRob Herring		};
262724ba675SRob Herring
263724ba675SRob Herring		mmc2: mmc@1c11000 {
264724ba675SRob Herring			compatible = "allwinner,sun7i-a20-mmc";
265724ba675SRob Herring			reg = <0x01c11000 0x1000>;
266724ba675SRob Herring			clocks = <&ccu CLK_BUS_MMC2>,
267724ba675SRob Herring				 <&ccu CLK_MMC2>,
268724ba675SRob Herring				 <&ccu CLK_MMC2_OUTPUT>,
269724ba675SRob Herring				 <&ccu CLK_MMC2_SAMPLE>;
270724ba675SRob Herring			clock-names = "ahb",
271724ba675SRob Herring				      "mmc",
272724ba675SRob Herring				      "output",
273724ba675SRob Herring				      "sample";
274724ba675SRob Herring			resets = <&ccu RST_BUS_MMC2>;
275724ba675SRob Herring			reset-names = "ahb";
276724ba675SRob Herring			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
277724ba675SRob Herring			status = "disabled";
278724ba675SRob Herring			#address-cells = <1>;
279724ba675SRob Herring			#size-cells = <0>;
280724ba675SRob Herring		};
281724ba675SRob Herring
282724ba675SRob Herring		crypto@1c15000 {
283724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-crypto",
284724ba675SRob Herring				     "allwinner,sun8i-a33-crypto";
285724ba675SRob Herring			reg = <0x01c15000 0x1000>;
286724ba675SRob Herring			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
287724ba675SRob Herring			clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
288724ba675SRob Herring			clock-names = "ahb", "mod";
289724ba675SRob Herring			dmas = <&dma 16>, <&dma 16>;
290724ba675SRob Herring			dma-names = "rx", "tx";
291724ba675SRob Herring			resets = <&ccu RST_BUS_CE>;
292724ba675SRob Herring			reset-names = "ahb";
293724ba675SRob Herring		};
294724ba675SRob Herring
295724ba675SRob Herring		usb_otg: usb@1c19000 {
296724ba675SRob Herring			compatible = "allwinner,sun8i-h3-musb";
297724ba675SRob Herring			reg = <0x01c19000 0x0400>;
298724ba675SRob Herring			clocks = <&ccu CLK_BUS_OTG>;
299724ba675SRob Herring			resets = <&ccu RST_BUS_OTG>;
300724ba675SRob Herring			interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
301724ba675SRob Herring			interrupt-names = "mc";
302724ba675SRob Herring			phys = <&usbphy 0>;
303724ba675SRob Herring			phy-names = "usb";
304724ba675SRob Herring			extcon = <&usbphy 0>;
305724ba675SRob Herring			status = "disabled";
306724ba675SRob Herring		};
307724ba675SRob Herring
308724ba675SRob Herring		usbphy: phy@1c19400 {
309724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-usb-phy";
310724ba675SRob Herring			reg = <0x01c19400 0x2c>,
311724ba675SRob Herring			      <0x01c1a800 0x4>;
312724ba675SRob Herring			reg-names = "phy_ctrl",
313724ba675SRob Herring				    "pmu0";
314724ba675SRob Herring			clocks = <&ccu CLK_USB_PHY0>;
315724ba675SRob Herring			clock-names = "usb0_phy";
316724ba675SRob Herring			resets = <&ccu RST_USB_PHY0>;
317724ba675SRob Herring			reset-names = "usb0_reset";
318724ba675SRob Herring			status = "disabled";
319724ba675SRob Herring			#phy-cells = <1>;
320724ba675SRob Herring		};
321724ba675SRob Herring
322724ba675SRob Herring		ccu: clock@1c20000 {
323724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-ccu";
324724ba675SRob Herring			reg = <0x01c20000 0x400>;
325724ba675SRob Herring			clocks = <&osc24M>, <&rtc CLK_OSC32K>;
326724ba675SRob Herring			clock-names = "hosc", "losc";
327724ba675SRob Herring			#clock-cells = <1>;
328724ba675SRob Herring			#reset-cells = <1>;
329724ba675SRob Herring		};
330724ba675SRob Herring
331724ba675SRob Herring		rtc: rtc@1c20400 {
332724ba675SRob Herring			#clock-cells = <1>;
333724ba675SRob Herring			compatible = "allwinner,sun8i-v3-rtc";
334724ba675SRob Herring			reg = <0x01c20400 0x54>;
335724ba675SRob Herring			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
336724ba675SRob Herring				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
337724ba675SRob Herring			clocks = <&osc32k>;
338724ba675SRob Herring			clock-output-names = "osc32k", "osc32k-out";
339724ba675SRob Herring		};
340724ba675SRob Herring
341724ba675SRob Herring		pio: pinctrl@1c20800 {
342724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-pinctrl";
343724ba675SRob Herring			reg = <0x01c20800 0x400>;
344724ba675SRob Herring			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
345724ba675SRob Herring				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
346724ba675SRob Herring			clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
347724ba675SRob Herring				 <&rtc CLK_OSC32K>;
348724ba675SRob Herring			clock-names = "apb", "hosc", "losc";
349724ba675SRob Herring			gpio-controller;
350724ba675SRob Herring			#gpio-cells = <3>;
351724ba675SRob Herring			interrupt-controller;
352724ba675SRob Herring			#interrupt-cells = <3>;
353724ba675SRob Herring
354724ba675SRob Herring			/omit-if-no-ref/
355724ba675SRob Herring			csi0_mclk_pin: csi0-mclk-pin {
356724ba675SRob Herring				pins = "PE20";
357724ba675SRob Herring				function = "csi_mipi";
358724ba675SRob Herring			};
359724ba675SRob Herring
360724ba675SRob Herring			/omit-if-no-ref/
361724ba675SRob Herring			csi1_8bit_pins: csi1-8bit-pins {
362724ba675SRob Herring				pins = "PE0", "PE2", "PE3", "PE8", "PE9",
363724ba675SRob Herring				       "PE10", "PE11", "PE12", "PE13", "PE14",
364724ba675SRob Herring				       "PE15";
365724ba675SRob Herring				function = "csi";
366724ba675SRob Herring			};
367724ba675SRob Herring
368724ba675SRob Herring			/omit-if-no-ref/
369724ba675SRob Herring			csi1_mclk_pin: csi1-mclk-pin {
370724ba675SRob Herring				pins = "PE1";
371724ba675SRob Herring				function = "csi";
372724ba675SRob Herring			};
373724ba675SRob Herring
374724ba675SRob Herring			i2c0_pins: i2c0-pins {
375724ba675SRob Herring				pins = "PB6", "PB7";
376724ba675SRob Herring				function = "i2c0";
377724ba675SRob Herring			};
378724ba675SRob Herring
379724ba675SRob Herring			/omit-if-no-ref/
380724ba675SRob Herring			i2c1_pb_pins: i2c1-pb-pins {
381724ba675SRob Herring				pins = "PB8", "PB9";
382724ba675SRob Herring				function = "i2c1";
383724ba675SRob Herring			};
384724ba675SRob Herring
385724ba675SRob Herring			/omit-if-no-ref/
386724ba675SRob Herring			i2c1_pe_pins: i2c1-pe-pins {
387724ba675SRob Herring				pins = "PE21", "PE22";
388724ba675SRob Herring				function = "i2c1";
389724ba675SRob Herring			};
390724ba675SRob Herring
391724ba675SRob Herring			uart0_pb_pins: uart0-pb-pins {
392724ba675SRob Herring				pins = "PB8", "PB9";
393724ba675SRob Herring				function = "uart0";
394724ba675SRob Herring			};
395724ba675SRob Herring
396724ba675SRob Herring			uart2_pins: uart2-pins {
397724ba675SRob Herring				pins = "PB0", "PB1";
398724ba675SRob Herring				function = "uart2";
399724ba675SRob Herring			};
400724ba675SRob Herring
401724ba675SRob Herring			mmc0_pins: mmc0-pins {
402724ba675SRob Herring				pins = "PF0", "PF1", "PF2", "PF3",
403724ba675SRob Herring				       "PF4", "PF5";
404724ba675SRob Herring				function = "mmc0";
405724ba675SRob Herring				drive-strength = <30>;
406724ba675SRob Herring				bias-pull-up;
407724ba675SRob Herring			};
408724ba675SRob Herring
409724ba675SRob Herring			mmc1_pins: mmc1-pins {
410724ba675SRob Herring				pins = "PG0", "PG1", "PG2", "PG3",
411724ba675SRob Herring				       "PG4", "PG5";
412724ba675SRob Herring				function = "mmc1";
413724ba675SRob Herring				drive-strength = <30>;
414724ba675SRob Herring				bias-pull-up;
415724ba675SRob Herring			};
416724ba675SRob Herring
417*41192b67SChris Morgan			/omit-if-no-ref/
418*41192b67SChris Morgan			pwm0_pin: pwm0-pin {
419*41192b67SChris Morgan				pins = "PB4";
420*41192b67SChris Morgan				function = "pwm0";
421*41192b67SChris Morgan			};
422*41192b67SChris Morgan
423*41192b67SChris Morgan			/omit-if-no-ref/
424*41192b67SChris Morgan			pwm1_pin: pwm1-pin {
425*41192b67SChris Morgan				pins = "PB5";
426*41192b67SChris Morgan				function = "pwm1";
427*41192b67SChris Morgan			};
428*41192b67SChris Morgan
429724ba675SRob Herring			spi0_pins: spi0-pins {
430724ba675SRob Herring				pins = "PC0", "PC1", "PC2", "PC3";
431724ba675SRob Herring				function = "spi0";
432724ba675SRob Herring			};
433724ba675SRob Herring		};
434724ba675SRob Herring
435724ba675SRob Herring		timer@1c20c00 {
436724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-timer";
437724ba675SRob Herring			reg = <0x01c20c00 0xa0>;
438724ba675SRob Herring			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
439724ba675SRob Herring				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
440724ba675SRob Herring				     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
441724ba675SRob Herring			clocks = <&osc24M>;
442724ba675SRob Herring		};
443724ba675SRob Herring
444724ba675SRob Herring		wdt0: watchdog@1c20ca0 {
445724ba675SRob Herring			compatible = "allwinner,sun6i-a31-wdt";
446724ba675SRob Herring			reg = <0x01c20ca0 0x20>;
447724ba675SRob Herring			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
448724ba675SRob Herring			clocks = <&osc24M>;
449724ba675SRob Herring		};
450724ba675SRob Herring
451724ba675SRob Herring		pwm: pwm@1c21400 {
452724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-pwm",
453724ba675SRob Herring				     "allwinner,sun7i-a20-pwm";
454724ba675SRob Herring			reg = <0x01c21400 0xc>;
455724ba675SRob Herring			clocks = <&osc24M>;
456724ba675SRob Herring			#pwm-cells = <3>;
457724ba675SRob Herring			status = "disabled";
458724ba675SRob Herring		};
459724ba675SRob Herring
460724ba675SRob Herring		lradc: lradc@1c22800 {
461724ba675SRob Herring			compatible = "allwinner,sun4i-a10-lradc-keys";
462724ba675SRob Herring			reg = <0x01c22800 0x400>;
463724ba675SRob Herring			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
464724ba675SRob Herring			status = "disabled";
465724ba675SRob Herring		};
466724ba675SRob Herring
467724ba675SRob Herring		codec: codec@1c22c00 {
468724ba675SRob Herring			#sound-dai-cells = <0>;
469724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-codec";
470724ba675SRob Herring			reg = <0x01c22c00 0x400>;
471724ba675SRob Herring			interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
472724ba675SRob Herring			clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
473724ba675SRob Herring			clock-names = "apb", "codec";
474724ba675SRob Herring			resets = <&ccu RST_BUS_CODEC>;
475724ba675SRob Herring			dmas = <&dma 15>, <&dma 15>;
476724ba675SRob Herring			dma-names = "rx", "tx";
477724ba675SRob Herring			allwinner,codec-analog-controls = <&codec_analog>;
478724ba675SRob Herring			status = "disabled";
479724ba675SRob Herring		};
480724ba675SRob Herring
481724ba675SRob Herring		codec_analog: codec-analog@1c23000 {
482724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-codec-analog";
483724ba675SRob Herring			reg = <0x01c23000 0x4>;
484724ba675SRob Herring		};
485724ba675SRob Herring
486724ba675SRob Herring		uart0: serial@1c28000 {
487724ba675SRob Herring			compatible = "snps,dw-apb-uart";
488724ba675SRob Herring			reg = <0x01c28000 0x400>;
489724ba675SRob Herring			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
490724ba675SRob Herring			reg-shift = <2>;
491724ba675SRob Herring			reg-io-width = <4>;
492724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART0>;
493724ba675SRob Herring			dmas = <&dma 6>, <&dma 6>;
494724ba675SRob Herring			dma-names = "tx", "rx";
495724ba675SRob Herring			resets = <&ccu RST_BUS_UART0>;
496724ba675SRob Herring			status = "disabled";
497724ba675SRob Herring		};
498724ba675SRob Herring
499724ba675SRob Herring		uart1: serial@1c28400 {
500724ba675SRob Herring			compatible = "snps,dw-apb-uart";
501724ba675SRob Herring			reg = <0x01c28400 0x400>;
502724ba675SRob Herring			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
503724ba675SRob Herring			reg-shift = <2>;
504724ba675SRob Herring			reg-io-width = <4>;
505724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART1>;
506724ba675SRob Herring			dmas = <&dma 7>, <&dma 7>;
507724ba675SRob Herring			dma-names = "tx", "rx";
508724ba675SRob Herring			resets = <&ccu RST_BUS_UART1>;
509724ba675SRob Herring			status = "disabled";
510724ba675SRob Herring		};
511724ba675SRob Herring
512724ba675SRob Herring		uart2: serial@1c28800 {
513724ba675SRob Herring			compatible = "snps,dw-apb-uart";
514724ba675SRob Herring			reg = <0x01c28800 0x400>;
515724ba675SRob Herring			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
516724ba675SRob Herring			reg-shift = <2>;
517724ba675SRob Herring			reg-io-width = <4>;
518724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART2>;
519724ba675SRob Herring			dmas = <&dma 8>, <&dma 8>;
520724ba675SRob Herring			dma-names = "tx", "rx";
521724ba675SRob Herring			resets = <&ccu RST_BUS_UART2>;
522724ba675SRob Herring			pinctrl-0 = <&uart2_pins>;
523724ba675SRob Herring			pinctrl-names = "default";
524724ba675SRob Herring			status = "disabled";
525724ba675SRob Herring		};
526724ba675SRob Herring
527724ba675SRob Herring		i2c0: i2c@1c2ac00 {
528724ba675SRob Herring			compatible = "allwinner,sun6i-a31-i2c";
529724ba675SRob Herring			reg = <0x01c2ac00 0x400>;
530724ba675SRob Herring			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
531724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2C0>;
532724ba675SRob Herring			resets = <&ccu RST_BUS_I2C0>;
533724ba675SRob Herring			pinctrl-names = "default";
534724ba675SRob Herring			pinctrl-0 = <&i2c0_pins>;
535724ba675SRob Herring			status = "disabled";
536724ba675SRob Herring			#address-cells = <1>;
537724ba675SRob Herring			#size-cells = <0>;
538724ba675SRob Herring		};
539724ba675SRob Herring
540724ba675SRob Herring		i2c1: i2c@1c2b000 {
541724ba675SRob Herring			compatible = "allwinner,sun6i-a31-i2c";
542724ba675SRob Herring			reg = <0x01c2b000 0x400>;
543724ba675SRob Herring			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
544724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2C1>;
545724ba675SRob Herring			resets = <&ccu RST_BUS_I2C1>;
546724ba675SRob Herring			status = "disabled";
547724ba675SRob Herring			#address-cells = <1>;
548724ba675SRob Herring			#size-cells = <0>;
549724ba675SRob Herring		};
550724ba675SRob Herring
551724ba675SRob Herring		emac: ethernet@1c30000 {
552724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-emac";
553724ba675SRob Herring			syscon = <&syscon>;
554724ba675SRob Herring			reg = <0x01c30000 0x10000>;
555724ba675SRob Herring			interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
556724ba675SRob Herring			interrupt-names = "macirq";
557724ba675SRob Herring			resets = <&ccu RST_BUS_EMAC>;
558724ba675SRob Herring			reset-names = "stmmaceth";
559724ba675SRob Herring			clocks = <&ccu CLK_BUS_EMAC>;
560724ba675SRob Herring			clock-names = "stmmaceth";
561724ba675SRob Herring			phy-handle = <&int_mii_phy>;
562724ba675SRob Herring			phy-mode = "mii";
563724ba675SRob Herring			status = "disabled";
564724ba675SRob Herring
565724ba675SRob Herring			mdio: mdio {
566724ba675SRob Herring				#address-cells = <1>;
567724ba675SRob Herring				#size-cells = <0>;
568724ba675SRob Herring				compatible = "snps,dwmac-mdio";
569724ba675SRob Herring			};
570724ba675SRob Herring
571724ba675SRob Herring			mdio_mux: mdio-mux {
572724ba675SRob Herring				compatible = "allwinner,sun8i-h3-mdio-mux";
573724ba675SRob Herring				#address-cells = <1>;
574724ba675SRob Herring				#size-cells = <0>;
575724ba675SRob Herring
576724ba675SRob Herring				mdio-parent-bus = <&mdio>;
577724ba675SRob Herring				/* Only one MDIO is usable at the time */
578724ba675SRob Herring				internal_mdio: mdio@1 {
579724ba675SRob Herring					compatible = "allwinner,sun8i-h3-mdio-internal";
580724ba675SRob Herring					reg = <1>;
581724ba675SRob Herring					#address-cells = <1>;
582724ba675SRob Herring					#size-cells = <0>;
583724ba675SRob Herring
584724ba675SRob Herring					int_mii_phy: ethernet-phy@1 {
585724ba675SRob Herring						compatible = "ethernet-phy-ieee802.3-c22";
586724ba675SRob Herring						reg = <1>;
587724ba675SRob Herring						clocks = <&ccu CLK_BUS_EPHY>;
588724ba675SRob Herring						resets = <&ccu RST_BUS_EPHY>;
589724ba675SRob Herring					};
590724ba675SRob Herring				};
591724ba675SRob Herring			};
592724ba675SRob Herring		};
593724ba675SRob Herring
594724ba675SRob Herring		spi0: spi@1c68000 {
595724ba675SRob Herring			compatible = "allwinner,sun8i-h3-spi";
596724ba675SRob Herring			reg = <0x01c68000 0x1000>;
597724ba675SRob Herring			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
598724ba675SRob Herring			clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
599724ba675SRob Herring			clock-names = "ahb", "mod";
600724ba675SRob Herring			dmas = <&dma 23>, <&dma 23>;
601724ba675SRob Herring			dma-names = "rx", "tx";
602724ba675SRob Herring			pinctrl-names = "default";
603724ba675SRob Herring			pinctrl-0 = <&spi0_pins>;
604724ba675SRob Herring			resets = <&ccu RST_BUS_SPI0>;
605724ba675SRob Herring			status = "disabled";
606724ba675SRob Herring			#address-cells = <1>;
607724ba675SRob Herring			#size-cells = <0>;
608724ba675SRob Herring		};
609724ba675SRob Herring
610724ba675SRob Herring		gic: interrupt-controller@1c81000 {
611724ba675SRob Herring			compatible = "arm,gic-400";
612724ba675SRob Herring			reg = <0x01c81000 0x1000>,
613724ba675SRob Herring			      <0x01c82000 0x2000>,
614724ba675SRob Herring			      <0x01c84000 0x2000>,
615724ba675SRob Herring			      <0x01c86000 0x2000>;
616724ba675SRob Herring			interrupt-controller;
617724ba675SRob Herring			#interrupt-cells = <3>;
618724ba675SRob Herring			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
619724ba675SRob Herring		};
620724ba675SRob Herring
621724ba675SRob Herring		csi1: camera@1cb4000 {
622724ba675SRob Herring			compatible = "allwinner,sun8i-v3s-csi";
623724ba675SRob Herring			reg = <0x01cb4000 0x3000>;
624724ba675SRob Herring			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
625724ba675SRob Herring			clocks = <&ccu CLK_BUS_CSI>,
626724ba675SRob Herring				 <&ccu CLK_CSI1_SCLK>,
627724ba675SRob Herring				 <&ccu CLK_DRAM_CSI>;
628724ba675SRob Herring			clock-names = "bus", "mod", "ram";
629724ba675SRob Herring			resets = <&ccu RST_BUS_CSI>;
630724ba675SRob Herring			status = "disabled";
631724ba675SRob Herring		};
632724ba675SRob Herring	};
633724ba675SRob Herring};
634