xref: /linux/scripts/dtc/include-prefixes/arm/allwinner/sunxi-h3-h5.dtsi (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1724ba675SRob Herring/*
2724ba675SRob Herring * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
3724ba675SRob Herring *
4724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
5724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
6724ba675SRob Herring * licensing only applies to this file, and not this project as a
7724ba675SRob Herring * whole.
8724ba675SRob Herring *
9724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
10724ba675SRob Herring *     modify it under the terms of the GNU General Public License as
11724ba675SRob Herring *     published by the Free Software Foundation; either version 2 of the
12724ba675SRob Herring *     License, or (at your option) any later version.
13724ba675SRob Herring *
14724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
15724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17724ba675SRob Herring *     GNU General Public License for more details.
18724ba675SRob Herring *
19724ba675SRob Herring * Or, alternatively,
20724ba675SRob Herring *
21724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
22724ba675SRob Herring *     obtaining a copy of this software and associated documentation
23724ba675SRob Herring *     files (the "Software"), to deal in the Software without
24724ba675SRob Herring *     restriction, including without limitation the rights to use,
25724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
26724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
27724ba675SRob Herring *     Software is furnished to do so, subject to the following
28724ba675SRob Herring *     conditions:
29724ba675SRob Herring *
30724ba675SRob Herring *     The above copyright notice and this permission notice shall be
31724ba675SRob Herring *     included in all copies or substantial portions of the Software.
32724ba675SRob Herring *
33724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
41724ba675SRob Herring */
42724ba675SRob Herring
43724ba675SRob Herring#include <dt-bindings/clock/sun6i-rtc.h>
44724ba675SRob Herring#include <dt-bindings/clock/sun8i-de2.h>
45724ba675SRob Herring#include <dt-bindings/clock/sun8i-h3-ccu.h>
46724ba675SRob Herring#include <dt-bindings/clock/sun8i-r-ccu.h>
47724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
48724ba675SRob Herring#include <dt-bindings/reset/sun8i-de2.h>
49724ba675SRob Herring#include <dt-bindings/reset/sun8i-h3-ccu.h>
50724ba675SRob Herring#include <dt-bindings/reset/sun8i-r-ccu.h>
51724ba675SRob Herring
52724ba675SRob Herring/ {
53724ba675SRob Herring	interrupt-parent = <&gic>;
54724ba675SRob Herring	#address-cells = <1>;
55724ba675SRob Herring	#size-cells = <1>;
56724ba675SRob Herring
57724ba675SRob Herring	chosen {
58724ba675SRob Herring		#address-cells = <1>;
59724ba675SRob Herring		#size-cells = <1>;
60724ba675SRob Herring		ranges;
61724ba675SRob Herring
62724ba675SRob Herring		framebuffer-hdmi {
63724ba675SRob Herring			compatible = "allwinner,simple-framebuffer",
64724ba675SRob Herring				     "simple-framebuffer";
65724ba675SRob Herring			allwinner,pipeline = "mixer0-lcd0-hdmi";
66724ba675SRob Herring			clocks = <&display_clocks CLK_MIXER0>,
67724ba675SRob Herring				 <&ccu CLK_TCON0>, <&ccu CLK_HDMI>;
68724ba675SRob Herring			status = "disabled";
69724ba675SRob Herring		};
70724ba675SRob Herring
71724ba675SRob Herring		framebuffer-tve {
72724ba675SRob Herring			compatible = "allwinner,simple-framebuffer",
73724ba675SRob Herring				     "simple-framebuffer";
74724ba675SRob Herring			allwinner,pipeline = "mixer1-lcd1-tve";
75724ba675SRob Herring			clocks = <&display_clocks CLK_MIXER1>,
76724ba675SRob Herring				 <&ccu CLK_TVE>;
77724ba675SRob Herring			status = "disabled";
78724ba675SRob Herring		};
79724ba675SRob Herring	};
80724ba675SRob Herring
81724ba675SRob Herring	clocks {
82724ba675SRob Herring		#address-cells = <1>;
83724ba675SRob Herring		#size-cells = <1>;
84724ba675SRob Herring		ranges;
85724ba675SRob Herring
86*0f47ef3fSKrzysztof Kozlowski		osc24M: osc24M-clk {
87724ba675SRob Herring			#clock-cells = <0>;
88724ba675SRob Herring			compatible = "fixed-clock";
89724ba675SRob Herring			clock-frequency = <24000000>;
90724ba675SRob Herring			clock-accuracy = <50000>;
91724ba675SRob Herring			clock-output-names = "osc24M";
92724ba675SRob Herring		};
93724ba675SRob Herring
94*0f47ef3fSKrzysztof Kozlowski		osc32k: osc32k-clk {
95724ba675SRob Herring			#clock-cells = <0>;
96724ba675SRob Herring			compatible = "fixed-clock";
97724ba675SRob Herring			clock-frequency = <32768>;
98724ba675SRob Herring			clock-accuracy = <50000>;
99724ba675SRob Herring			clock-output-names = "ext_osc32k";
100724ba675SRob Herring		};
101724ba675SRob Herring	};
102724ba675SRob Herring
103724ba675SRob Herring	de: display-engine {
104724ba675SRob Herring		compatible = "allwinner,sun8i-h3-display-engine";
105724ba675SRob Herring		allwinner,pipelines = <&mixer0>;
106724ba675SRob Herring		status = "disabled";
107724ba675SRob Herring	};
108724ba675SRob Herring
109724ba675SRob Herring	soc {
110724ba675SRob Herring		compatible = "simple-bus";
111724ba675SRob Herring		#address-cells = <1>;
112724ba675SRob Herring		#size-cells = <1>;
113724ba675SRob Herring		dma-ranges;
114724ba675SRob Herring		ranges;
115724ba675SRob Herring
116724ba675SRob Herring		display_clocks: clock@1000000 {
117724ba675SRob Herring			/* compatible is in per SoC .dtsi file */
118724ba675SRob Herring			reg = <0x01000000 0x10000>;
119724ba675SRob Herring			clocks = <&ccu CLK_BUS_DE>,
120724ba675SRob Herring				 <&ccu CLK_DE>;
121724ba675SRob Herring			clock-names = "bus",
122724ba675SRob Herring				      "mod";
123724ba675SRob Herring			resets = <&ccu RST_BUS_DE>;
124724ba675SRob Herring			#clock-cells = <1>;
125724ba675SRob Herring			#reset-cells = <1>;
126724ba675SRob Herring		};
127724ba675SRob Herring
128724ba675SRob Herring		mixer0: mixer@1100000 {
129724ba675SRob Herring			compatible = "allwinner,sun8i-h3-de2-mixer-0";
130724ba675SRob Herring			reg = <0x01100000 0x100000>;
131724ba675SRob Herring			clocks = <&display_clocks CLK_BUS_MIXER0>,
132724ba675SRob Herring				 <&display_clocks CLK_MIXER0>;
133724ba675SRob Herring			clock-names = "bus",
134724ba675SRob Herring				      "mod";
135724ba675SRob Herring			resets = <&display_clocks RST_MIXER0>;
136724ba675SRob Herring
137724ba675SRob Herring			ports {
138724ba675SRob Herring				#address-cells = <1>;
139724ba675SRob Herring				#size-cells = <0>;
140724ba675SRob Herring
141724ba675SRob Herring				mixer0_out: port@1 {
142724ba675SRob Herring					reg = <1>;
143724ba675SRob Herring
144724ba675SRob Herring					mixer0_out_tcon0: endpoint {
145724ba675SRob Herring						remote-endpoint = <&tcon0_in_mixer0>;
146724ba675SRob Herring					};
147724ba675SRob Herring				};
148724ba675SRob Herring			};
149724ba675SRob Herring		};
150724ba675SRob Herring
151724ba675SRob Herring		dma: dma-controller@1c02000 {
152724ba675SRob Herring			compatible = "allwinner,sun8i-h3-dma";
153724ba675SRob Herring			reg = <0x01c02000 0x1000>;
154724ba675SRob Herring			interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
155724ba675SRob Herring			clocks = <&ccu CLK_BUS_DMA>;
156724ba675SRob Herring			resets = <&ccu RST_BUS_DMA>;
157724ba675SRob Herring			#dma-cells = <1>;
158724ba675SRob Herring		};
159724ba675SRob Herring
160724ba675SRob Herring		tcon0: lcd-controller@1c0c000 {
161724ba675SRob Herring			compatible = "allwinner,sun8i-h3-tcon-tv",
162724ba675SRob Herring				     "allwinner,sun8i-a83t-tcon-tv";
163724ba675SRob Herring			reg = <0x01c0c000 0x1000>;
164724ba675SRob Herring			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
165724ba675SRob Herring			clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
166724ba675SRob Herring			clock-names = "ahb", "tcon-ch1";
167724ba675SRob Herring			resets = <&ccu RST_BUS_TCON0>;
168724ba675SRob Herring			reset-names = "lcd";
169724ba675SRob Herring
170724ba675SRob Herring			ports {
171724ba675SRob Herring				#address-cells = <1>;
172724ba675SRob Herring				#size-cells = <0>;
173724ba675SRob Herring
174724ba675SRob Herring				tcon0_in: port@0 {
175724ba675SRob Herring					reg = <0>;
176724ba675SRob Herring
177724ba675SRob Herring					tcon0_in_mixer0: endpoint {
178724ba675SRob Herring						remote-endpoint = <&mixer0_out_tcon0>;
179724ba675SRob Herring					};
180724ba675SRob Herring				};
181724ba675SRob Herring
182724ba675SRob Herring				tcon0_out: port@1 {
183724ba675SRob Herring					#address-cells = <1>;
184724ba675SRob Herring					#size-cells = <0>;
185724ba675SRob Herring					reg = <1>;
186724ba675SRob Herring
187724ba675SRob Herring					tcon0_out_hdmi: endpoint@1 {
188724ba675SRob Herring						reg = <1>;
189724ba675SRob Herring						remote-endpoint = <&hdmi_in_tcon0>;
190724ba675SRob Herring					};
191724ba675SRob Herring				};
192724ba675SRob Herring			};
193724ba675SRob Herring		};
194724ba675SRob Herring
195724ba675SRob Herring		mmc0: mmc@1c0f000 {
196724ba675SRob Herring			/* compatible and clocks are in per SoC .dtsi file */
197724ba675SRob Herring			reg = <0x01c0f000 0x1000>;
198724ba675SRob Herring			pinctrl-names = "default";
199724ba675SRob Herring			pinctrl-0 = <&mmc0_pins>;
200724ba675SRob Herring			resets = <&ccu RST_BUS_MMC0>;
201724ba675SRob Herring			reset-names = "ahb";
202724ba675SRob Herring			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
203724ba675SRob Herring			status = "disabled";
204724ba675SRob Herring			#address-cells = <1>;
205724ba675SRob Herring			#size-cells = <0>;
206724ba675SRob Herring		};
207724ba675SRob Herring
208724ba675SRob Herring		mmc1: mmc@1c10000 {
209724ba675SRob Herring			/* compatible and clocks are in per SoC .dtsi file */
210724ba675SRob Herring			reg = <0x01c10000 0x1000>;
211724ba675SRob Herring			pinctrl-names = "default";
212724ba675SRob Herring			pinctrl-0 = <&mmc1_pins>;
213724ba675SRob Herring			resets = <&ccu RST_BUS_MMC1>;
214724ba675SRob Herring			reset-names = "ahb";
215724ba675SRob Herring			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
216724ba675SRob Herring			status = "disabled";
217724ba675SRob Herring			#address-cells = <1>;
218724ba675SRob Herring			#size-cells = <0>;
219724ba675SRob Herring		};
220724ba675SRob Herring
221724ba675SRob Herring		mmc2: mmc@1c11000 {
222724ba675SRob Herring			/* compatible and clocks are in per SoC .dtsi file */
223724ba675SRob Herring			reg = <0x01c11000 0x1000>;
224724ba675SRob Herring			resets = <&ccu RST_BUS_MMC2>;
225724ba675SRob Herring			reset-names = "ahb";
226724ba675SRob Herring			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
227724ba675SRob Herring			status = "disabled";
228724ba675SRob Herring			#address-cells = <1>;
229724ba675SRob Herring			#size-cells = <0>;
230724ba675SRob Herring		};
231724ba675SRob Herring
232724ba675SRob Herring		sid: eeprom@1c14000 {
233724ba675SRob Herring			/* compatible is in per SoC .dtsi file */
234724ba675SRob Herring			reg = <0x1c14000 0x400>;
235724ba675SRob Herring			#address-cells = <1>;
236724ba675SRob Herring			#size-cells = <1>;
237724ba675SRob Herring
238724ba675SRob Herring			ths_calibration: thermal-sensor-calibration@34 {
239724ba675SRob Herring				reg = <0x34 4>;
240724ba675SRob Herring			};
241724ba675SRob Herring		};
242724ba675SRob Herring
243724ba675SRob Herring		msgbox: mailbox@1c17000 {
244724ba675SRob Herring			compatible = "allwinner,sun8i-h3-msgbox",
245724ba675SRob Herring				     "allwinner,sun6i-a31-msgbox";
246724ba675SRob Herring			reg = <0x01c17000 0x1000>;
247724ba675SRob Herring			clocks = <&ccu CLK_BUS_MSGBOX>;
248724ba675SRob Herring			resets = <&ccu RST_BUS_MSGBOX>;
249724ba675SRob Herring			interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
250724ba675SRob Herring			#mbox-cells = <1>;
251724ba675SRob Herring		};
252724ba675SRob Herring
253724ba675SRob Herring		usb_otg: usb@1c19000 {
254724ba675SRob Herring			compatible = "allwinner,sun8i-h3-musb";
255724ba675SRob Herring			reg = <0x01c19000 0x400>;
256724ba675SRob Herring			clocks = <&ccu CLK_BUS_OTG>;
257724ba675SRob Herring			resets = <&ccu RST_BUS_OTG>;
258724ba675SRob Herring			interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
259724ba675SRob Herring			interrupt-names = "mc";
260724ba675SRob Herring			phys = <&usbphy 0>;
261724ba675SRob Herring			phy-names = "usb";
262724ba675SRob Herring			extcon = <&usbphy 0>;
263724ba675SRob Herring			dr_mode = "otg";
264724ba675SRob Herring			status = "disabled";
265724ba675SRob Herring		};
266724ba675SRob Herring
267724ba675SRob Herring		usbphy: phy@1c19400 {
268724ba675SRob Herring			compatible = "allwinner,sun8i-h3-usb-phy";
269724ba675SRob Herring			reg = <0x01c19400 0x2c>,
270724ba675SRob Herring			      <0x01c1a800 0x4>,
271724ba675SRob Herring			      <0x01c1b800 0x4>,
272724ba675SRob Herring			      <0x01c1c800 0x4>,
273724ba675SRob Herring			      <0x01c1d800 0x4>;
274724ba675SRob Herring			reg-names = "phy_ctrl",
275724ba675SRob Herring				    "pmu0",
276724ba675SRob Herring				    "pmu1",
277724ba675SRob Herring				    "pmu2",
278724ba675SRob Herring				    "pmu3";
279724ba675SRob Herring			clocks = <&ccu CLK_USB_PHY0>,
280724ba675SRob Herring				 <&ccu CLK_USB_PHY1>,
281724ba675SRob Herring				 <&ccu CLK_USB_PHY2>,
282724ba675SRob Herring				 <&ccu CLK_USB_PHY3>;
283724ba675SRob Herring			clock-names = "usb0_phy",
284724ba675SRob Herring				      "usb1_phy",
285724ba675SRob Herring				      "usb2_phy",
286724ba675SRob Herring				      "usb3_phy";
287724ba675SRob Herring			resets = <&ccu RST_USB_PHY0>,
288724ba675SRob Herring				 <&ccu RST_USB_PHY1>,
289724ba675SRob Herring				 <&ccu RST_USB_PHY2>,
290724ba675SRob Herring				 <&ccu RST_USB_PHY3>;
291724ba675SRob Herring			reset-names = "usb0_reset",
292724ba675SRob Herring				      "usb1_reset",
293724ba675SRob Herring				      "usb2_reset",
294724ba675SRob Herring				      "usb3_reset";
295724ba675SRob Herring			status = "disabled";
296724ba675SRob Herring			#phy-cells = <1>;
297724ba675SRob Herring		};
298724ba675SRob Herring
299724ba675SRob Herring		ehci0: usb@1c1a000 {
300724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
301724ba675SRob Herring			reg = <0x01c1a000 0x100>;
302724ba675SRob Herring			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
303724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
304724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
305724ba675SRob Herring			phys = <&usbphy 0>;
306724ba675SRob Herring			phy-names = "usb";
307724ba675SRob Herring			status = "disabled";
308724ba675SRob Herring		};
309724ba675SRob Herring
310724ba675SRob Herring		ohci0: usb@1c1a400 {
311724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
312724ba675SRob Herring			reg = <0x01c1a400 0x100>;
313724ba675SRob Herring			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
314724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
315724ba675SRob Herring				 <&ccu CLK_USB_OHCI0>;
316724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
317724ba675SRob Herring			phys = <&usbphy 0>;
318724ba675SRob Herring			phy-names = "usb";
319724ba675SRob Herring			status = "disabled";
320724ba675SRob Herring		};
321724ba675SRob Herring
322724ba675SRob Herring		ehci1: usb@1c1b000 {
323724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
324724ba675SRob Herring			reg = <0x01c1b000 0x100>;
325724ba675SRob Herring			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
326724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>;
327724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
328724ba675SRob Herring			phys = <&usbphy 1>;
329724ba675SRob Herring			phy-names = "usb";
330724ba675SRob Herring			status = "disabled";
331724ba675SRob Herring		};
332724ba675SRob Herring
333724ba675SRob Herring		ohci1: usb@1c1b400 {
334724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
335724ba675SRob Herring			reg = <0x01c1b400 0x100>;
336724ba675SRob Herring			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
337724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>,
338724ba675SRob Herring				 <&ccu CLK_USB_OHCI1>;
339724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
340724ba675SRob Herring			phys = <&usbphy 1>;
341724ba675SRob Herring			phy-names = "usb";
342724ba675SRob Herring			status = "disabled";
343724ba675SRob Herring		};
344724ba675SRob Herring
345724ba675SRob Herring		ehci2: usb@1c1c000 {
346724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
347724ba675SRob Herring			reg = <0x01c1c000 0x100>;
348724ba675SRob Herring			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
349724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>;
350724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
351724ba675SRob Herring			phys = <&usbphy 2>;
352724ba675SRob Herring			phy-names = "usb";
353724ba675SRob Herring			status = "disabled";
354724ba675SRob Herring		};
355724ba675SRob Herring
356724ba675SRob Herring		ohci2: usb@1c1c400 {
357724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
358724ba675SRob Herring			reg = <0x01c1c400 0x100>;
359724ba675SRob Herring			interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
360724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>,
361724ba675SRob Herring				 <&ccu CLK_USB_OHCI2>;
362724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
363724ba675SRob Herring			phys = <&usbphy 2>;
364724ba675SRob Herring			phy-names = "usb";
365724ba675SRob Herring			status = "disabled";
366724ba675SRob Herring		};
367724ba675SRob Herring
368724ba675SRob Herring		ehci3: usb@1c1d000 {
369724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
370724ba675SRob Herring			reg = <0x01c1d000 0x100>;
371724ba675SRob Herring			interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
372724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>;
373724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
374724ba675SRob Herring			phys = <&usbphy 3>;
375724ba675SRob Herring			phy-names = "usb";
376724ba675SRob Herring			status = "disabled";
377724ba675SRob Herring		};
378724ba675SRob Herring
379724ba675SRob Herring		ohci3: usb@1c1d400 {
380724ba675SRob Herring			compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
381724ba675SRob Herring			reg = <0x01c1d400 0x100>;
382724ba675SRob Herring			interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
383724ba675SRob Herring			clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>,
384724ba675SRob Herring				 <&ccu CLK_USB_OHCI3>;
385724ba675SRob Herring			resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
386724ba675SRob Herring			phys = <&usbphy 3>;
387724ba675SRob Herring			phy-names = "usb";
388724ba675SRob Herring			status = "disabled";
389724ba675SRob Herring		};
390724ba675SRob Herring
391724ba675SRob Herring		ccu: clock@1c20000 {
392724ba675SRob Herring			/* compatible is in per SoC .dtsi file */
393724ba675SRob Herring			reg = <0x01c20000 0x400>;
394724ba675SRob Herring			clocks = <&osc24M>, <&rtc CLK_OSC32K>;
395724ba675SRob Herring			clock-names = "hosc", "losc";
396724ba675SRob Herring			#clock-cells = <1>;
397724ba675SRob Herring			#reset-cells = <1>;
398724ba675SRob Herring		};
399724ba675SRob Herring
400724ba675SRob Herring		pio: pinctrl@1c20800 {
401724ba675SRob Herring			/* compatible is in per SoC .dtsi file */
402724ba675SRob Herring			reg = <0x01c20800 0x400>;
403724ba675SRob Herring			interrupt-parent = <&r_intc>;
404724ba675SRob Herring			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
405724ba675SRob Herring				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
406724ba675SRob Herring			clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
407724ba675SRob Herring				 <&rtc CLK_OSC32K>;
408724ba675SRob Herring			clock-names = "apb", "hosc", "losc";
409724ba675SRob Herring			gpio-controller;
410724ba675SRob Herring			#gpio-cells = <3>;
411724ba675SRob Herring			interrupt-controller;
412724ba675SRob Herring			#interrupt-cells = <3>;
413724ba675SRob Herring
414724ba675SRob Herring			csi_pins: csi-pins {
415724ba675SRob Herring				pins = "PE0", "PE2", "PE3", "PE4", "PE5",
416724ba675SRob Herring				       "PE6", "PE7", "PE8", "PE9", "PE10",
417724ba675SRob Herring				       "PE11";
418724ba675SRob Herring				function = "csi";
419724ba675SRob Herring			};
420724ba675SRob Herring
421724ba675SRob Herring			emac_rgmii_pins: emac-rgmii-pins {
422724ba675SRob Herring				pins = "PD0", "PD1", "PD2", "PD3", "PD4",
423724ba675SRob Herring				       "PD5", "PD7", "PD8", "PD9", "PD10",
424724ba675SRob Herring				       "PD12", "PD13", "PD15", "PD16", "PD17";
425724ba675SRob Herring				function = "emac";
426724ba675SRob Herring				drive-strength = <40>;
427724ba675SRob Herring			};
428724ba675SRob Herring
429724ba675SRob Herring			i2c0_pins: i2c0-pins {
430724ba675SRob Herring				pins = "PA11", "PA12";
431724ba675SRob Herring				function = "i2c0";
432724ba675SRob Herring			};
433724ba675SRob Herring
434724ba675SRob Herring			i2c1_pins: i2c1-pins {
435724ba675SRob Herring				pins = "PA18", "PA19";
436724ba675SRob Herring				function = "i2c1";
437724ba675SRob Herring			};
438724ba675SRob Herring
439724ba675SRob Herring			i2c2_pins: i2c2-pins {
440724ba675SRob Herring				pins = "PE12", "PE13";
441724ba675SRob Herring				function = "i2c2";
442724ba675SRob Herring			};
443724ba675SRob Herring
444724ba675SRob Herring			mmc0_pins: mmc0-pins {
445724ba675SRob Herring				pins = "PF0", "PF1", "PF2", "PF3",
446724ba675SRob Herring				       "PF4", "PF5";
447724ba675SRob Herring				function = "mmc0";
448724ba675SRob Herring				drive-strength = <30>;
449724ba675SRob Herring				bias-pull-up;
450724ba675SRob Herring			};
451724ba675SRob Herring
452724ba675SRob Herring			mmc1_pins: mmc1-pins {
453724ba675SRob Herring				pins = "PG0", "PG1", "PG2", "PG3",
454724ba675SRob Herring				       "PG4", "PG5";
455724ba675SRob Herring				function = "mmc1";
456724ba675SRob Herring				drive-strength = <30>;
457724ba675SRob Herring				bias-pull-up;
458724ba675SRob Herring			};
459724ba675SRob Herring
460724ba675SRob Herring			mmc2_8bit_pins: mmc2-8bit-pins {
461724ba675SRob Herring				pins = "PC5", "PC6", "PC8",
462724ba675SRob Herring				       "PC9", "PC10", "PC11",
463724ba675SRob Herring				       "PC12", "PC13", "PC14",
464724ba675SRob Herring				       "PC15", "PC16";
465724ba675SRob Herring				function = "mmc2";
466724ba675SRob Herring				drive-strength = <30>;
467724ba675SRob Herring				bias-pull-up;
468724ba675SRob Herring			};
469724ba675SRob Herring
470724ba675SRob Herring			spdif_tx_pin: spdif-tx-pin {
471724ba675SRob Herring				pins = "PA17";
472724ba675SRob Herring				function = "spdif";
473724ba675SRob Herring			};
474724ba675SRob Herring
475724ba675SRob Herring			spi0_pins: spi0-pins {
476724ba675SRob Herring				pins = "PC0", "PC1", "PC2", "PC3";
477724ba675SRob Herring				function = "spi0";
478724ba675SRob Herring			};
479724ba675SRob Herring
480724ba675SRob Herring			spi1_pins: spi1-pins {
481724ba675SRob Herring				pins = "PA15", "PA16", "PA14", "PA13";
482724ba675SRob Herring				function = "spi1";
483724ba675SRob Herring			};
484724ba675SRob Herring
485724ba675SRob Herring			uart0_pa_pins: uart0-pa-pins {
486724ba675SRob Herring				pins = "PA4", "PA5";
487724ba675SRob Herring				function = "uart0";
488724ba675SRob Herring			};
489724ba675SRob Herring
490724ba675SRob Herring			uart1_pins: uart1-pins {
491724ba675SRob Herring				pins = "PG6", "PG7";
492724ba675SRob Herring				function = "uart1";
493724ba675SRob Herring			};
494724ba675SRob Herring
495724ba675SRob Herring			uart1_rts_cts_pins: uart1-rts-cts-pins {
496724ba675SRob Herring				pins = "PG8", "PG9";
497724ba675SRob Herring				function = "uart1";
498724ba675SRob Herring			};
499724ba675SRob Herring
500724ba675SRob Herring			uart2_pins: uart2-pins {
501724ba675SRob Herring				pins = "PA0", "PA1";
502724ba675SRob Herring				function = "uart2";
503724ba675SRob Herring			};
504724ba675SRob Herring
505724ba675SRob Herring			uart2_rts_cts_pins: uart2-rts-cts-pins {
506724ba675SRob Herring				pins = "PA2", "PA3";
507724ba675SRob Herring				function = "uart2";
508724ba675SRob Herring			};
509724ba675SRob Herring
510724ba675SRob Herring			uart3_pins: uart3-pins {
511724ba675SRob Herring				pins = "PA13", "PA14";
512724ba675SRob Herring				function = "uart3";
513724ba675SRob Herring			};
514724ba675SRob Herring
515724ba675SRob Herring			uart3_rts_cts_pins: uart3-rts-cts-pins {
516724ba675SRob Herring				pins = "PA15", "PA16";
517724ba675SRob Herring				function = "uart3";
518724ba675SRob Herring			};
519724ba675SRob Herring		};
520724ba675SRob Herring
521724ba675SRob Herring		timer@1c20c00 {
522724ba675SRob Herring			compatible = "allwinner,sun8i-a23-timer";
523724ba675SRob Herring			reg = <0x01c20c00 0xa0>;
524724ba675SRob Herring			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
525724ba675SRob Herring				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
526724ba675SRob Herring			clocks = <&osc24M>;
527724ba675SRob Herring		};
528724ba675SRob Herring
529724ba675SRob Herring		emac: ethernet@1c30000 {
530724ba675SRob Herring			compatible = "allwinner,sun8i-h3-emac";
531724ba675SRob Herring			syscon = <&syscon>;
532724ba675SRob Herring			reg = <0x01c30000 0x10000>;
533724ba675SRob Herring			interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
534724ba675SRob Herring			interrupt-names = "macirq";
535724ba675SRob Herring			resets = <&ccu RST_BUS_EMAC>;
536724ba675SRob Herring			reset-names = "stmmaceth";
537724ba675SRob Herring			clocks = <&ccu CLK_BUS_EMAC>;
538724ba675SRob Herring			clock-names = "stmmaceth";
539724ba675SRob Herring			status = "disabled";
540724ba675SRob Herring
541724ba675SRob Herring			mdio: mdio {
542724ba675SRob Herring				#address-cells = <1>;
543724ba675SRob Herring				#size-cells = <0>;
544724ba675SRob Herring				compatible = "snps,dwmac-mdio";
545724ba675SRob Herring			};
546724ba675SRob Herring
547724ba675SRob Herring			mdio-mux {
548724ba675SRob Herring				compatible = "allwinner,sun8i-h3-mdio-mux";
549724ba675SRob Herring				#address-cells = <1>;
550724ba675SRob Herring				#size-cells = <0>;
551724ba675SRob Herring
552724ba675SRob Herring				mdio-parent-bus = <&mdio>;
553724ba675SRob Herring				/* Only one MDIO is usable at the time */
554724ba675SRob Herring				internal_mdio: mdio@1 {
555724ba675SRob Herring					compatible = "allwinner,sun8i-h3-mdio-internal";
556724ba675SRob Herring					reg = <1>;
557724ba675SRob Herring					#address-cells = <1>;
558724ba675SRob Herring					#size-cells = <0>;
559724ba675SRob Herring
560724ba675SRob Herring					int_mii_phy: ethernet-phy@1 {
561724ba675SRob Herring						compatible = "ethernet-phy-ieee802.3-c22";
562724ba675SRob Herring						reg = <1>;
563724ba675SRob Herring						clocks = <&ccu CLK_BUS_EPHY>;
564724ba675SRob Herring						resets = <&ccu RST_BUS_EPHY>;
565724ba675SRob Herring					};
566724ba675SRob Herring				};
567724ba675SRob Herring
568724ba675SRob Herring				external_mdio: mdio@2 {
569724ba675SRob Herring					reg = <2>;
570724ba675SRob Herring					#address-cells = <1>;
571724ba675SRob Herring					#size-cells = <0>;
572724ba675SRob Herring				};
573724ba675SRob Herring			};
574724ba675SRob Herring		};
575724ba675SRob Herring
576724ba675SRob Herring		mbus: dram-controller@1c62000 {
577724ba675SRob Herring			/* compatible is in per SoC .dtsi file */
578724ba675SRob Herring			reg = <0x01c62000 0x1000>,
579724ba675SRob Herring			      <0x01c63000 0x1000>;
580724ba675SRob Herring			reg-names = "mbus", "dram";
581724ba675SRob Herring			clocks = <&ccu CLK_MBUS>,
582724ba675SRob Herring				 <&ccu CLK_DRAM>,
583724ba675SRob Herring				 <&ccu CLK_BUS_DRAM>;
584724ba675SRob Herring			clock-names = "mbus", "dram", "bus";
585724ba675SRob Herring			#address-cells = <1>;
586724ba675SRob Herring			#size-cells = <1>;
587724ba675SRob Herring			dma-ranges = <0x00000000 0x40000000 0xc0000000>;
588724ba675SRob Herring			#interconnect-cells = <1>;
589724ba675SRob Herring		};
590724ba675SRob Herring
591724ba675SRob Herring		spi0: spi@1c68000 {
592724ba675SRob Herring			compatible = "allwinner,sun8i-h3-spi";
593724ba675SRob Herring			reg = <0x01c68000 0x1000>;
594724ba675SRob Herring			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
595724ba675SRob Herring			clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
596724ba675SRob Herring			clock-names = "ahb", "mod";
597724ba675SRob Herring			dmas = <&dma 23>, <&dma 23>;
598724ba675SRob Herring			dma-names = "rx", "tx";
599724ba675SRob Herring			pinctrl-names = "default";
600724ba675SRob Herring			pinctrl-0 = <&spi0_pins>;
601724ba675SRob Herring			resets = <&ccu RST_BUS_SPI0>;
602724ba675SRob Herring			status = "disabled";
603724ba675SRob Herring			#address-cells = <1>;
604724ba675SRob Herring			#size-cells = <0>;
605724ba675SRob Herring		};
606724ba675SRob Herring
607724ba675SRob Herring		spi1: spi@1c69000 {
608724ba675SRob Herring			compatible = "allwinner,sun8i-h3-spi";
609724ba675SRob Herring			reg = <0x01c69000 0x1000>;
610724ba675SRob Herring			interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
611724ba675SRob Herring			clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
612724ba675SRob Herring			clock-names = "ahb", "mod";
613724ba675SRob Herring			dmas = <&dma 24>, <&dma 24>;
614724ba675SRob Herring			dma-names = "rx", "tx";
615724ba675SRob Herring			pinctrl-names = "default";
616724ba675SRob Herring			pinctrl-0 = <&spi1_pins>;
617724ba675SRob Herring			resets = <&ccu RST_BUS_SPI1>;
618724ba675SRob Herring			status = "disabled";
619724ba675SRob Herring			#address-cells = <1>;
620724ba675SRob Herring			#size-cells = <0>;
621724ba675SRob Herring		};
622724ba675SRob Herring
623724ba675SRob Herring		wdt0: watchdog@1c20ca0 {
624724ba675SRob Herring			compatible = "allwinner,sun6i-a31-wdt";
625724ba675SRob Herring			reg = <0x01c20ca0 0x20>;
626724ba675SRob Herring			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
627724ba675SRob Herring			clocks = <&osc24M>;
628724ba675SRob Herring		};
629724ba675SRob Herring
630724ba675SRob Herring		spdif: spdif@1c21000 {
631724ba675SRob Herring			#sound-dai-cells = <0>;
632724ba675SRob Herring			compatible = "allwinner,sun8i-h3-spdif";
633724ba675SRob Herring			reg = <0x01c21000 0x400>;
634724ba675SRob Herring			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
635724ba675SRob Herring			clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
636724ba675SRob Herring			resets = <&ccu RST_BUS_SPDIF>;
637724ba675SRob Herring			clock-names = "apb", "spdif";
638724ba675SRob Herring			dmas = <&dma 2>;
639724ba675SRob Herring			dma-names = "tx";
640724ba675SRob Herring			status = "disabled";
641724ba675SRob Herring		};
642724ba675SRob Herring
643724ba675SRob Herring		pwm: pwm@1c21400 {
644724ba675SRob Herring			compatible = "allwinner,sun8i-h3-pwm";
645724ba675SRob Herring			reg = <0x01c21400 0x8>;
646724ba675SRob Herring			clocks = <&osc24M>;
647724ba675SRob Herring			#pwm-cells = <3>;
648724ba675SRob Herring			status = "disabled";
649724ba675SRob Herring		};
650724ba675SRob Herring
651724ba675SRob Herring		i2s0: i2s@1c22000 {
652724ba675SRob Herring			#sound-dai-cells = <0>;
653724ba675SRob Herring			compatible = "allwinner,sun8i-h3-i2s";
654724ba675SRob Herring			reg = <0x01c22000 0x400>;
655724ba675SRob Herring			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
656724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
657724ba675SRob Herring			clock-names = "apb", "mod";
658724ba675SRob Herring			dmas = <&dma 3>, <&dma 3>;
659724ba675SRob Herring			resets = <&ccu RST_BUS_I2S0>;
660724ba675SRob Herring			dma-names = "rx", "tx";
661724ba675SRob Herring			status = "disabled";
662724ba675SRob Herring		};
663724ba675SRob Herring
664724ba675SRob Herring		i2s1: i2s@1c22400 {
665724ba675SRob Herring			#sound-dai-cells = <0>;
666724ba675SRob Herring			compatible = "allwinner,sun8i-h3-i2s";
667724ba675SRob Herring			reg = <0x01c22400 0x400>;
668724ba675SRob Herring			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
669724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
670724ba675SRob Herring			clock-names = "apb", "mod";
671724ba675SRob Herring			dmas = <&dma 4>, <&dma 4>;
672724ba675SRob Herring			resets = <&ccu RST_BUS_I2S1>;
673724ba675SRob Herring			dma-names = "rx", "tx";
674724ba675SRob Herring			status = "disabled";
675724ba675SRob Herring		};
676724ba675SRob Herring
677724ba675SRob Herring		i2s2: i2s@1c22800 {
678724ba675SRob Herring			#sound-dai-cells = <0>;
679724ba675SRob Herring			compatible = "allwinner,sun8i-h3-i2s";
680724ba675SRob Herring			reg = <0x01c22800 0x400>;
681724ba675SRob Herring			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
682724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>;
683724ba675SRob Herring			clock-names = "apb", "mod";
684724ba675SRob Herring			dmas = <&dma 27>;
685724ba675SRob Herring			resets = <&ccu RST_BUS_I2S2>;
686724ba675SRob Herring			dma-names = "tx";
687724ba675SRob Herring			status = "disabled";
688724ba675SRob Herring		};
689724ba675SRob Herring
690724ba675SRob Herring		codec: codec@1c22c00 {
691724ba675SRob Herring			#sound-dai-cells = <0>;
692724ba675SRob Herring			compatible = "allwinner,sun8i-h3-codec";
693724ba675SRob Herring			reg = <0x01c22c00 0x400>;
694724ba675SRob Herring			interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
695724ba675SRob Herring			clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
696724ba675SRob Herring			clock-names = "apb", "codec";
697724ba675SRob Herring			resets = <&ccu RST_BUS_CODEC>;
698724ba675SRob Herring			dmas = <&dma 15>, <&dma 15>;
699724ba675SRob Herring			dma-names = "rx", "tx";
700724ba675SRob Herring			allwinner,codec-analog-controls = <&codec_analog>;
701724ba675SRob Herring			status = "disabled";
702724ba675SRob Herring		};
703724ba675SRob Herring
704724ba675SRob Herring		uart0: serial@1c28000 {
705724ba675SRob Herring			compatible = "snps,dw-apb-uart";
706724ba675SRob Herring			reg = <0x01c28000 0x400>;
707724ba675SRob Herring			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
708724ba675SRob Herring			reg-shift = <2>;
709724ba675SRob Herring			reg-io-width = <4>;
710724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART0>;
711724ba675SRob Herring			resets = <&ccu RST_BUS_UART0>;
712724ba675SRob Herring			dmas = <&dma 6>, <&dma 6>;
713724ba675SRob Herring			dma-names = "tx", "rx";
714724ba675SRob Herring			status = "disabled";
715724ba675SRob Herring		};
716724ba675SRob Herring
717724ba675SRob Herring		uart1: serial@1c28400 {
718724ba675SRob Herring			compatible = "snps,dw-apb-uart";
719724ba675SRob Herring			reg = <0x01c28400 0x400>;
720724ba675SRob Herring			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
721724ba675SRob Herring			reg-shift = <2>;
722724ba675SRob Herring			reg-io-width = <4>;
723724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART1>;
724724ba675SRob Herring			resets = <&ccu RST_BUS_UART1>;
725724ba675SRob Herring			dmas = <&dma 7>, <&dma 7>;
726724ba675SRob Herring			dma-names = "tx", "rx";
727724ba675SRob Herring			status = "disabled";
728724ba675SRob Herring		};
729724ba675SRob Herring
730724ba675SRob Herring		uart2: serial@1c28800 {
731724ba675SRob Herring			compatible = "snps,dw-apb-uart";
732724ba675SRob Herring			reg = <0x01c28800 0x400>;
733724ba675SRob Herring			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
734724ba675SRob Herring			reg-shift = <2>;
735724ba675SRob Herring			reg-io-width = <4>;
736724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART2>;
737724ba675SRob Herring			resets = <&ccu RST_BUS_UART2>;
738724ba675SRob Herring			dmas = <&dma 8>, <&dma 8>;
739724ba675SRob Herring			dma-names = "tx", "rx";
740724ba675SRob Herring			status = "disabled";
741724ba675SRob Herring		};
742724ba675SRob Herring
743724ba675SRob Herring		uart3: serial@1c28c00 {
744724ba675SRob Herring			compatible = "snps,dw-apb-uart";
745724ba675SRob Herring			reg = <0x01c28c00 0x400>;
746724ba675SRob Herring			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
747724ba675SRob Herring			reg-shift = <2>;
748724ba675SRob Herring			reg-io-width = <4>;
749724ba675SRob Herring			clocks = <&ccu CLK_BUS_UART3>;
750724ba675SRob Herring			resets = <&ccu RST_BUS_UART3>;
751724ba675SRob Herring			dmas = <&dma 9>, <&dma 9>;
752724ba675SRob Herring			dma-names = "tx", "rx";
753724ba675SRob Herring			status = "disabled";
754724ba675SRob Herring		};
755724ba675SRob Herring
756724ba675SRob Herring		i2c0: i2c@1c2ac00 {
757724ba675SRob Herring			compatible = "allwinner,sun6i-a31-i2c";
758724ba675SRob Herring			reg = <0x01c2ac00 0x400>;
759724ba675SRob Herring			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
760724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2C0>;
761724ba675SRob Herring			resets = <&ccu RST_BUS_I2C0>;
762724ba675SRob Herring			pinctrl-names = "default";
763724ba675SRob Herring			pinctrl-0 = <&i2c0_pins>;
764724ba675SRob Herring			status = "disabled";
765724ba675SRob Herring			#address-cells = <1>;
766724ba675SRob Herring			#size-cells = <0>;
767724ba675SRob Herring		};
768724ba675SRob Herring
769724ba675SRob Herring		i2c1: i2c@1c2b000 {
770724ba675SRob Herring			compatible = "allwinner,sun6i-a31-i2c";
771724ba675SRob Herring			reg = <0x01c2b000 0x400>;
772724ba675SRob Herring			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
773724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2C1>;
774724ba675SRob Herring			resets = <&ccu RST_BUS_I2C1>;
775724ba675SRob Herring			pinctrl-names = "default";
776724ba675SRob Herring			pinctrl-0 = <&i2c1_pins>;
777724ba675SRob Herring			status = "disabled";
778724ba675SRob Herring			#address-cells = <1>;
779724ba675SRob Herring			#size-cells = <0>;
780724ba675SRob Herring		};
781724ba675SRob Herring
782724ba675SRob Herring		i2c2: i2c@1c2b400 {
783724ba675SRob Herring			compatible = "allwinner,sun6i-a31-i2c";
784724ba675SRob Herring			reg = <0x01c2b400 0x400>;
785724ba675SRob Herring			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
786724ba675SRob Herring			clocks = <&ccu CLK_BUS_I2C2>;
787724ba675SRob Herring			resets = <&ccu RST_BUS_I2C2>;
788724ba675SRob Herring			pinctrl-names = "default";
789724ba675SRob Herring			pinctrl-0 = <&i2c2_pins>;
790724ba675SRob Herring			status = "disabled";
791724ba675SRob Herring			#address-cells = <1>;
792724ba675SRob Herring			#size-cells = <0>;
793724ba675SRob Herring		};
794724ba675SRob Herring
795724ba675SRob Herring		gic: interrupt-controller@1c81000 {
796724ba675SRob Herring			compatible = "arm,gic-400";
797724ba675SRob Herring			reg = <0x01c81000 0x1000>,
798724ba675SRob Herring			      <0x01c82000 0x2000>,
799724ba675SRob Herring			      <0x01c84000 0x2000>,
800724ba675SRob Herring			      <0x01c86000 0x2000>;
801724ba675SRob Herring			interrupt-controller;
802724ba675SRob Herring			#interrupt-cells = <3>;
803724ba675SRob Herring			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
804724ba675SRob Herring		};
805724ba675SRob Herring
806724ba675SRob Herring		csi: camera@1cb0000 {
807724ba675SRob Herring			compatible = "allwinner,sun8i-h3-csi";
808724ba675SRob Herring			reg = <0x01cb0000 0x1000>;
809724ba675SRob Herring			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
810724ba675SRob Herring			clocks = <&ccu CLK_BUS_CSI>,
811724ba675SRob Herring				 <&ccu CLK_CSI_SCLK>,
812724ba675SRob Herring				 <&ccu CLK_DRAM_CSI>;
813724ba675SRob Herring			clock-names = "bus", "mod", "ram";
814724ba675SRob Herring			resets = <&ccu RST_BUS_CSI>;
815724ba675SRob Herring			pinctrl-names = "default";
816724ba675SRob Herring			pinctrl-0 = <&csi_pins>;
817724ba675SRob Herring			status = "disabled";
818724ba675SRob Herring		};
819724ba675SRob Herring
820724ba675SRob Herring		hdmi: hdmi@1ee0000 {
821724ba675SRob Herring			compatible = "allwinner,sun8i-h3-dw-hdmi",
822724ba675SRob Herring				     "allwinner,sun8i-a83t-dw-hdmi";
823724ba675SRob Herring			reg = <0x01ee0000 0x10000>;
824724ba675SRob Herring			reg-io-width = <1>;
825724ba675SRob Herring			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
826724ba675SRob Herring			clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
827724ba675SRob Herring				 <&ccu CLK_HDMI>, <&rtc CLK_OSC32K>;
828724ba675SRob Herring			clock-names = "iahb", "isfr", "tmds", "cec";
829724ba675SRob Herring			resets = <&ccu RST_BUS_HDMI1>;
830724ba675SRob Herring			reset-names = "ctrl";
831724ba675SRob Herring			phys = <&hdmi_phy>;
832724ba675SRob Herring			phy-names = "phy";
833724ba675SRob Herring			status = "disabled";
834724ba675SRob Herring
835724ba675SRob Herring			ports {
836724ba675SRob Herring				#address-cells = <1>;
837724ba675SRob Herring				#size-cells = <0>;
838724ba675SRob Herring
839724ba675SRob Herring				hdmi_in: port@0 {
840724ba675SRob Herring					reg = <0>;
841724ba675SRob Herring
842724ba675SRob Herring					hdmi_in_tcon0: endpoint {
843724ba675SRob Herring						remote-endpoint = <&tcon0_out_hdmi>;
844724ba675SRob Herring					};
845724ba675SRob Herring				};
846724ba675SRob Herring
847724ba675SRob Herring				hdmi_out: port@1 {
848724ba675SRob Herring					reg = <1>;
849724ba675SRob Herring				};
850724ba675SRob Herring			};
851724ba675SRob Herring		};
852724ba675SRob Herring
853724ba675SRob Herring		hdmi_phy: hdmi-phy@1ef0000 {
854724ba675SRob Herring			compatible = "allwinner,sun8i-h3-hdmi-phy";
855724ba675SRob Herring			reg = <0x01ef0000 0x10000>;
856724ba675SRob Herring			clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
857724ba675SRob Herring				 <&ccu CLK_PLL_VIDEO>;
858724ba675SRob Herring			clock-names = "bus", "mod", "pll-0";
859724ba675SRob Herring			resets = <&ccu RST_BUS_HDMI0>;
860724ba675SRob Herring			reset-names = "phy";
861724ba675SRob Herring			#phy-cells = <0>;
862724ba675SRob Herring		};
863724ba675SRob Herring
864724ba675SRob Herring		rtc: rtc@1f00000 {
865724ba675SRob Herring			/* compatible is in per SoC .dtsi file */
866724ba675SRob Herring			reg = <0x01f00000 0x400>;
867724ba675SRob Herring			interrupt-parent = <&r_intc>;
868724ba675SRob Herring			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
869724ba675SRob Herring				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
870724ba675SRob Herring			clock-output-names = "osc32k", "osc32k-out", "iosc";
871724ba675SRob Herring			clocks = <&osc32k>;
872724ba675SRob Herring			#clock-cells = <1>;
873724ba675SRob Herring		};
874724ba675SRob Herring
875724ba675SRob Herring		r_intc: interrupt-controller@1f00c00 {
876724ba675SRob Herring			compatible = "allwinner,sun8i-h3-r-intc",
877724ba675SRob Herring				     "allwinner,sun6i-a31-r-intc";
878724ba675SRob Herring			interrupt-controller;
879724ba675SRob Herring			#interrupt-cells = <3>;
880724ba675SRob Herring			reg = <0x01f00c00 0x400>;
881724ba675SRob Herring			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
882724ba675SRob Herring		};
883724ba675SRob Herring
884724ba675SRob Herring		r_ccu: clock@1f01400 {
885724ba675SRob Herring			compatible = "allwinner,sun8i-h3-r-ccu";
886724ba675SRob Herring			reg = <0x01f01400 0x100>;
887724ba675SRob Herring			clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>,
888724ba675SRob Herring				 <&ccu CLK_PLL_PERIPH0>;
889724ba675SRob Herring			clock-names = "hosc", "losc", "iosc", "pll-periph";
890724ba675SRob Herring			#clock-cells = <1>;
891724ba675SRob Herring			#reset-cells = <1>;
892724ba675SRob Herring		};
893724ba675SRob Herring
894724ba675SRob Herring		codec_analog: codec-analog@1f015c0 {
895724ba675SRob Herring			compatible = "allwinner,sun8i-h3-codec-analog";
896724ba675SRob Herring			reg = <0x01f015c0 0x4>;
897724ba675SRob Herring		};
898724ba675SRob Herring
899724ba675SRob Herring		ir: ir@1f02000 {
900724ba675SRob Herring			compatible = "allwinner,sun6i-a31-ir";
901724ba675SRob Herring			clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
902724ba675SRob Herring			clock-names = "apb", "ir";
903724ba675SRob Herring			resets = <&r_ccu RST_APB0_IR>;
904724ba675SRob Herring			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
905724ba675SRob Herring			reg = <0x01f02000 0x400>;
906724ba675SRob Herring			status = "disabled";
907724ba675SRob Herring		};
908724ba675SRob Herring
909724ba675SRob Herring		r_i2c: i2c@1f02400 {
910724ba675SRob Herring			compatible = "allwinner,sun6i-a31-i2c";
911724ba675SRob Herring			reg = <0x01f02400 0x400>;
912724ba675SRob Herring			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
913724ba675SRob Herring			pinctrl-names = "default";
914724ba675SRob Herring			pinctrl-0 = <&r_i2c_pins>;
915724ba675SRob Herring			clocks = <&r_ccu CLK_APB0_I2C>;
916724ba675SRob Herring			resets = <&r_ccu RST_APB0_I2C>;
917724ba675SRob Herring			status = "disabled";
918724ba675SRob Herring			#address-cells = <1>;
919724ba675SRob Herring			#size-cells = <0>;
920724ba675SRob Herring		};
921724ba675SRob Herring
922724ba675SRob Herring		r_uart: serial@1f02800 {
923724ba675SRob Herring			compatible = "snps,dw-apb-uart";
924724ba675SRob Herring			reg = <0x01f02800 0x400>;
925724ba675SRob Herring			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
926724ba675SRob Herring			reg-shift = <2>;
927724ba675SRob Herring			reg-io-width = <4>;
928724ba675SRob Herring			clocks = <&r_ccu CLK_APB0_UART>;
929724ba675SRob Herring			resets = <&r_ccu RST_APB0_UART>;
930724ba675SRob Herring			pinctrl-names = "default";
931724ba675SRob Herring			pinctrl-0 = <&r_uart_pins>;
932724ba675SRob Herring			status = "disabled";
933724ba675SRob Herring		};
934724ba675SRob Herring
935724ba675SRob Herring		r_pio: pinctrl@1f02c00 {
936724ba675SRob Herring			compatible = "allwinner,sun8i-h3-r-pinctrl";
937724ba675SRob Herring			reg = <0x01f02c00 0x400>;
938724ba675SRob Herring			interrupt-parent = <&r_intc>;
939724ba675SRob Herring			interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
940724ba675SRob Herring			clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>,
941724ba675SRob Herring				 <&rtc CLK_OSC32K>;
942724ba675SRob Herring			clock-names = "apb", "hosc", "losc";
943724ba675SRob Herring			gpio-controller;
944724ba675SRob Herring			#gpio-cells = <3>;
945724ba675SRob Herring			interrupt-controller;
946724ba675SRob Herring			#interrupt-cells = <3>;
947724ba675SRob Herring
948724ba675SRob Herring			r_ir_rx_pin: r-ir-rx-pin {
949724ba675SRob Herring				pins = "PL11";
950724ba675SRob Herring				function = "s_cir_rx";
951724ba675SRob Herring			};
952724ba675SRob Herring
953724ba675SRob Herring			r_i2c_pins: r-i2c-pins {
954724ba675SRob Herring				pins = "PL0", "PL1";
955724ba675SRob Herring				function = "s_i2c";
956724ba675SRob Herring			};
957724ba675SRob Herring
958724ba675SRob Herring			r_pwm_pin: r-pwm-pin {
959724ba675SRob Herring				pins = "PL10";
960724ba675SRob Herring				function = "s_pwm";
961724ba675SRob Herring			};
962724ba675SRob Herring
963724ba675SRob Herring			r_uart_pins: r-uart-pins {
964724ba675SRob Herring				pins = "PL2", "PL3";
965724ba675SRob Herring				function = "s_uart";
966724ba675SRob Herring			};
967724ba675SRob Herring		};
968724ba675SRob Herring
969724ba675SRob Herring		r_pwm: pwm@1f03800 {
970724ba675SRob Herring			compatible = "allwinner,sun8i-h3-pwm";
971724ba675SRob Herring			reg = <0x01f03800 0x8>;
972724ba675SRob Herring			pinctrl-names = "default";
973724ba675SRob Herring			pinctrl-0 = <&r_pwm_pin>;
974724ba675SRob Herring			clocks = <&osc24M>;
975724ba675SRob Herring			#pwm-cells = <3>;
976724ba675SRob Herring			status = "disabled";
977724ba675SRob Herring		};
978724ba675SRob Herring	};
979724ba675SRob Herring};
980