xref: /linux/scripts/dtc/include-prefixes/arm/socionext/uniphier-pro4.dtsi (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ OR MIT
2*724ba675SRob Herring//
3*724ba675SRob Herring// Device Tree Source for UniPhier Pro4 SoC
4*724ba675SRob Herring//
5*724ba675SRob Herring// Copyright (C) 2015-2016 Socionext Inc.
6*724ba675SRob Herring//   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
7*724ba675SRob Herring
8*724ba675SRob Herring#include <dt-bindings/gpio/uniphier-gpio.h>
9*724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	compatible = "socionext,uniphier-pro4";
13*724ba675SRob Herring	#address-cells = <1>;
14*724ba675SRob Herring	#size-cells = <1>;
15*724ba675SRob Herring
16*724ba675SRob Herring	cpus {
17*724ba675SRob Herring		#address-cells = <1>;
18*724ba675SRob Herring		#size-cells = <0>;
19*724ba675SRob Herring
20*724ba675SRob Herring		cpu@0 {
21*724ba675SRob Herring			device_type = "cpu";
22*724ba675SRob Herring			compatible = "arm,cortex-a9";
23*724ba675SRob Herring			reg = <0>;
24*724ba675SRob Herring			enable-method = "psci";
25*724ba675SRob Herring			next-level-cache = <&l2>;
26*724ba675SRob Herring		};
27*724ba675SRob Herring
28*724ba675SRob Herring		cpu@1 {
29*724ba675SRob Herring			device_type = "cpu";
30*724ba675SRob Herring			compatible = "arm,cortex-a9";
31*724ba675SRob Herring			reg = <1>;
32*724ba675SRob Herring			enable-method = "psci";
33*724ba675SRob Herring			next-level-cache = <&l2>;
34*724ba675SRob Herring		};
35*724ba675SRob Herring	};
36*724ba675SRob Herring
37*724ba675SRob Herring	psci {
38*724ba675SRob Herring		compatible = "arm,psci-0.2";
39*724ba675SRob Herring		method = "smc";
40*724ba675SRob Herring	};
41*724ba675SRob Herring
42*724ba675SRob Herring	clocks {
43*724ba675SRob Herring		refclk: ref {
44*724ba675SRob Herring			compatible = "fixed-clock";
45*724ba675SRob Herring			#clock-cells = <0>;
46*724ba675SRob Herring			clock-frequency = <25000000>;
47*724ba675SRob Herring		};
48*724ba675SRob Herring
49*724ba675SRob Herring		arm_timer_clk: arm-timer {
50*724ba675SRob Herring			#clock-cells = <0>;
51*724ba675SRob Herring			compatible = "fixed-clock";
52*724ba675SRob Herring			clock-frequency = <50000000>;
53*724ba675SRob Herring		};
54*724ba675SRob Herring	};
55*724ba675SRob Herring
56*724ba675SRob Herring	soc {
57*724ba675SRob Herring		compatible = "simple-bus";
58*724ba675SRob Herring		#address-cells = <1>;
59*724ba675SRob Herring		#size-cells = <1>;
60*724ba675SRob Herring		ranges;
61*724ba675SRob Herring		interrupt-parent = <&intc>;
62*724ba675SRob Herring
63*724ba675SRob Herring		l2: cache-controller@500c0000 {
64*724ba675SRob Herring			compatible = "socionext,uniphier-system-cache";
65*724ba675SRob Herring			reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
66*724ba675SRob Herring			      <0x506c0000 0x400>;
67*724ba675SRob Herring			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
68*724ba675SRob Herring				     <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
69*724ba675SRob Herring			cache-unified;
70*724ba675SRob Herring			cache-size = <(768 * 1024)>;
71*724ba675SRob Herring			cache-sets = <256>;
72*724ba675SRob Herring			cache-line-size = <128>;
73*724ba675SRob Herring			cache-level = <2>;
74*724ba675SRob Herring		};
75*724ba675SRob Herring
76*724ba675SRob Herring		spi0: spi@54006000 {
77*724ba675SRob Herring			compatible = "socionext,uniphier-scssi";
78*724ba675SRob Herring			status = "disabled";
79*724ba675SRob Herring			reg = <0x54006000 0x100>;
80*724ba675SRob Herring			#address-cells = <1>;
81*724ba675SRob Herring			#size-cells = <0>;
82*724ba675SRob Herring			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
83*724ba675SRob Herring			pinctrl-names = "default";
84*724ba675SRob Herring			pinctrl-0 = <&pinctrl_spi0>;
85*724ba675SRob Herring			clocks = <&peri_clk 11>;
86*724ba675SRob Herring			resets = <&peri_rst 11>;
87*724ba675SRob Herring		};
88*724ba675SRob Herring
89*724ba675SRob Herring		serial0: serial@54006800 {
90*724ba675SRob Herring			compatible = "socionext,uniphier-uart";
91*724ba675SRob Herring			status = "disabled";
92*724ba675SRob Herring			reg = <0x54006800 0x40>;
93*724ba675SRob Herring			interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
94*724ba675SRob Herring			pinctrl-names = "default";
95*724ba675SRob Herring			pinctrl-0 = <&pinctrl_uart0>;
96*724ba675SRob Herring			clocks = <&peri_clk 0>;
97*724ba675SRob Herring			resets = <&peri_rst 0>;
98*724ba675SRob Herring		};
99*724ba675SRob Herring
100*724ba675SRob Herring		serial1: serial@54006900 {
101*724ba675SRob Herring			compatible = "socionext,uniphier-uart";
102*724ba675SRob Herring			status = "disabled";
103*724ba675SRob Herring			reg = <0x54006900 0x40>;
104*724ba675SRob Herring			interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
105*724ba675SRob Herring			pinctrl-names = "default";
106*724ba675SRob Herring			pinctrl-0 = <&pinctrl_uart1>;
107*724ba675SRob Herring			clocks = <&peri_clk 1>;
108*724ba675SRob Herring			resets = <&peri_rst 1>;
109*724ba675SRob Herring		};
110*724ba675SRob Herring
111*724ba675SRob Herring		serial2: serial@54006a00 {
112*724ba675SRob Herring			compatible = "socionext,uniphier-uart";
113*724ba675SRob Herring			status = "disabled";
114*724ba675SRob Herring			reg = <0x54006a00 0x40>;
115*724ba675SRob Herring			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
116*724ba675SRob Herring			pinctrl-names = "default";
117*724ba675SRob Herring			pinctrl-0 = <&pinctrl_uart2>;
118*724ba675SRob Herring			clocks = <&peri_clk 2>;
119*724ba675SRob Herring			resets = <&peri_rst 2>;
120*724ba675SRob Herring		};
121*724ba675SRob Herring
122*724ba675SRob Herring		serial3: serial@54006b00 {
123*724ba675SRob Herring			compatible = "socionext,uniphier-uart";
124*724ba675SRob Herring			status = "disabled";
125*724ba675SRob Herring			reg = <0x54006b00 0x40>;
126*724ba675SRob Herring			interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
127*724ba675SRob Herring			pinctrl-names = "default";
128*724ba675SRob Herring			pinctrl-0 = <&pinctrl_uart3>;
129*724ba675SRob Herring			clocks = <&peri_clk 3>;
130*724ba675SRob Herring			resets = <&peri_rst 3>;
131*724ba675SRob Herring		};
132*724ba675SRob Herring
133*724ba675SRob Herring		gpio: gpio@55000000 {
134*724ba675SRob Herring			compatible = "socionext,uniphier-gpio";
135*724ba675SRob Herring			reg = <0x55000000 0x200>;
136*724ba675SRob Herring			interrupt-parent = <&aidet>;
137*724ba675SRob Herring			interrupt-controller;
138*724ba675SRob Herring			#interrupt-cells = <2>;
139*724ba675SRob Herring			gpio-controller;
140*724ba675SRob Herring			#gpio-cells = <2>;
141*724ba675SRob Herring			gpio-ranges = <&pinctrl 0 0 0>;
142*724ba675SRob Herring			gpio-ranges-group-names = "gpio_range";
143*724ba675SRob Herring			ngpios = <248>;
144*724ba675SRob Herring			socionext,interrupt-ranges = <0 48 16>, <16 154 5>;
145*724ba675SRob Herring		};
146*724ba675SRob Herring
147*724ba675SRob Herring		i2c0: i2c@58780000 {
148*724ba675SRob Herring			compatible = "socionext,uniphier-fi2c";
149*724ba675SRob Herring			status = "disabled";
150*724ba675SRob Herring			reg = <0x58780000 0x80>;
151*724ba675SRob Herring			#address-cells = <1>;
152*724ba675SRob Herring			#size-cells = <0>;
153*724ba675SRob Herring			interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
154*724ba675SRob Herring			pinctrl-names = "default";
155*724ba675SRob Herring			pinctrl-0 = <&pinctrl_i2c0>;
156*724ba675SRob Herring			clocks = <&peri_clk 4>;
157*724ba675SRob Herring			resets = <&peri_rst 4>;
158*724ba675SRob Herring			clock-frequency = <100000>;
159*724ba675SRob Herring		};
160*724ba675SRob Herring
161*724ba675SRob Herring		i2c1: i2c@58781000 {
162*724ba675SRob Herring			compatible = "socionext,uniphier-fi2c";
163*724ba675SRob Herring			status = "disabled";
164*724ba675SRob Herring			reg = <0x58781000 0x80>;
165*724ba675SRob Herring			#address-cells = <1>;
166*724ba675SRob Herring			#size-cells = <0>;
167*724ba675SRob Herring			interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
168*724ba675SRob Herring			pinctrl-names = "default";
169*724ba675SRob Herring			pinctrl-0 = <&pinctrl_i2c1>;
170*724ba675SRob Herring			clocks = <&peri_clk 5>;
171*724ba675SRob Herring			resets = <&peri_rst 5>;
172*724ba675SRob Herring			clock-frequency = <100000>;
173*724ba675SRob Herring		};
174*724ba675SRob Herring
175*724ba675SRob Herring		i2c2: i2c@58782000 {
176*724ba675SRob Herring			compatible = "socionext,uniphier-fi2c";
177*724ba675SRob Herring			status = "disabled";
178*724ba675SRob Herring			reg = <0x58782000 0x80>;
179*724ba675SRob Herring			#address-cells = <1>;
180*724ba675SRob Herring			#size-cells = <0>;
181*724ba675SRob Herring			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
182*724ba675SRob Herring			pinctrl-names = "default";
183*724ba675SRob Herring			pinctrl-0 = <&pinctrl_i2c2>;
184*724ba675SRob Herring			clocks = <&peri_clk 6>;
185*724ba675SRob Herring			resets = <&peri_rst 6>;
186*724ba675SRob Herring			clock-frequency = <100000>;
187*724ba675SRob Herring		};
188*724ba675SRob Herring
189*724ba675SRob Herring		i2c3: i2c@58783000 {
190*724ba675SRob Herring			compatible = "socionext,uniphier-fi2c";
191*724ba675SRob Herring			status = "disabled";
192*724ba675SRob Herring			reg = <0x58783000 0x80>;
193*724ba675SRob Herring			#address-cells = <1>;
194*724ba675SRob Herring			#size-cells = <0>;
195*724ba675SRob Herring			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
196*724ba675SRob Herring			pinctrl-names = "default";
197*724ba675SRob Herring			pinctrl-0 = <&pinctrl_i2c3>;
198*724ba675SRob Herring			clocks = <&peri_clk 7>;
199*724ba675SRob Herring			resets = <&peri_rst 7>;
200*724ba675SRob Herring			clock-frequency = <100000>;
201*724ba675SRob Herring		};
202*724ba675SRob Herring
203*724ba675SRob Herring		/* i2c4 does not exist */
204*724ba675SRob Herring
205*724ba675SRob Herring		/* chip-internal connection for DMD */
206*724ba675SRob Herring		i2c5: i2c@58785000 {
207*724ba675SRob Herring			compatible = "socionext,uniphier-fi2c";
208*724ba675SRob Herring			reg = <0x58785000 0x80>;
209*724ba675SRob Herring			#address-cells = <1>;
210*724ba675SRob Herring			#size-cells = <0>;
211*724ba675SRob Herring			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
212*724ba675SRob Herring			clocks = <&peri_clk 9>;
213*724ba675SRob Herring			resets = <&peri_rst 9>;
214*724ba675SRob Herring			clock-frequency = <400000>;
215*724ba675SRob Herring		};
216*724ba675SRob Herring
217*724ba675SRob Herring		/* chip-internal connection for HDMI */
218*724ba675SRob Herring		i2c6: i2c@58786000 {
219*724ba675SRob Herring			compatible = "socionext,uniphier-fi2c";
220*724ba675SRob Herring			reg = <0x58786000 0x80>;
221*724ba675SRob Herring			#address-cells = <1>;
222*724ba675SRob Herring			#size-cells = <0>;
223*724ba675SRob Herring			interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
224*724ba675SRob Herring			clocks = <&peri_clk 10>;
225*724ba675SRob Herring			resets = <&peri_rst 10>;
226*724ba675SRob Herring			clock-frequency = <400000>;
227*724ba675SRob Herring		};
228*724ba675SRob Herring
229*724ba675SRob Herring		system_bus: system-bus@58c00000 {
230*724ba675SRob Herring			compatible = "socionext,uniphier-system-bus";
231*724ba675SRob Herring			status = "disabled";
232*724ba675SRob Herring			reg = <0x58c00000 0x400>;
233*724ba675SRob Herring			#address-cells = <2>;
234*724ba675SRob Herring			#size-cells = <1>;
235*724ba675SRob Herring			pinctrl-names = "default";
236*724ba675SRob Herring			pinctrl-0 = <&pinctrl_system_bus>;
237*724ba675SRob Herring		};
238*724ba675SRob Herring
239*724ba675SRob Herring		smpctrl@59801000 {
240*724ba675SRob Herring			compatible = "socionext,uniphier-smpctrl";
241*724ba675SRob Herring			reg = <0x59801000 0x400>;
242*724ba675SRob Herring		};
243*724ba675SRob Herring
244*724ba675SRob Herring		mioctrl: syscon@59810000 {
245*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-mioctrl",
246*724ba675SRob Herring				     "simple-mfd", "syscon";
247*724ba675SRob Herring			reg = <0x59810000 0x800>;
248*724ba675SRob Herring
249*724ba675SRob Herring			mio_clk: clock-controller {
250*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-mio-clock";
251*724ba675SRob Herring				#clock-cells = <1>;
252*724ba675SRob Herring			};
253*724ba675SRob Herring
254*724ba675SRob Herring			mio_rst: reset-controller {
255*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-mio-reset";
256*724ba675SRob Herring				#reset-cells = <1>;
257*724ba675SRob Herring			};
258*724ba675SRob Herring		};
259*724ba675SRob Herring
260*724ba675SRob Herring		syscon@59820000 {
261*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-perictrl",
262*724ba675SRob Herring				     "simple-mfd", "syscon";
263*724ba675SRob Herring			reg = <0x59820000 0x200>;
264*724ba675SRob Herring
265*724ba675SRob Herring			peri_clk: clock-controller {
266*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-peri-clock";
267*724ba675SRob Herring				#clock-cells = <1>;
268*724ba675SRob Herring			};
269*724ba675SRob Herring
270*724ba675SRob Herring			peri_rst: reset-controller {
271*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-peri-reset";
272*724ba675SRob Herring				#reset-cells = <1>;
273*724ba675SRob Herring			};
274*724ba675SRob Herring		};
275*724ba675SRob Herring
276*724ba675SRob Herring		dmac: dma-controller@5a000000 {
277*724ba675SRob Herring			compatible = "socionext,uniphier-mio-dmac";
278*724ba675SRob Herring			reg = <0x5a000000 0x1000>;
279*724ba675SRob Herring			interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
280*724ba675SRob Herring				     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
281*724ba675SRob Herring				     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
282*724ba675SRob Herring				     <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
283*724ba675SRob Herring				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
284*724ba675SRob Herring				     <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
285*724ba675SRob Herring				     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
286*724ba675SRob Herring				     <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
287*724ba675SRob Herring			clocks = <&mio_clk 7>;
288*724ba675SRob Herring			resets = <&mio_rst 7>;
289*724ba675SRob Herring			#dma-cells = <1>;
290*724ba675SRob Herring		};
291*724ba675SRob Herring
292*724ba675SRob Herring		sd: mmc@5a400000 {
293*724ba675SRob Herring			compatible = "socionext,uniphier-sd-v2.91";
294*724ba675SRob Herring			status = "disabled";
295*724ba675SRob Herring			reg = <0x5a400000 0x200>;
296*724ba675SRob Herring			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
297*724ba675SRob Herring			pinctrl-names = "default", "uhs";
298*724ba675SRob Herring			pinctrl-0 = <&pinctrl_sd>;
299*724ba675SRob Herring			pinctrl-1 = <&pinctrl_sd_uhs>;
300*724ba675SRob Herring			clocks = <&mio_clk 0>;
301*724ba675SRob Herring			reset-names = "host", "bridge";
302*724ba675SRob Herring			resets = <&mio_rst 0>, <&mio_rst 3>;
303*724ba675SRob Herring			dma-names = "rx-tx";
304*724ba675SRob Herring			dmas = <&dmac 4>;
305*724ba675SRob Herring			bus-width = <4>;
306*724ba675SRob Herring			cap-sd-highspeed;
307*724ba675SRob Herring			sd-uhs-sdr12;
308*724ba675SRob Herring			sd-uhs-sdr25;
309*724ba675SRob Herring			sd-uhs-sdr50;
310*724ba675SRob Herring			socionext,syscon-uhs-mode = <&mioctrl 0>;
311*724ba675SRob Herring		};
312*724ba675SRob Herring
313*724ba675SRob Herring		emmc: mmc@5a500000 {
314*724ba675SRob Herring			compatible = "socionext,uniphier-sd-v2.91";
315*724ba675SRob Herring			status = "disabled";
316*724ba675SRob Herring			reg = <0x5a500000 0x200>;
317*724ba675SRob Herring			interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
318*724ba675SRob Herring			pinctrl-names = "default";
319*724ba675SRob Herring			pinctrl-0 = <&pinctrl_emmc>;
320*724ba675SRob Herring			clocks = <&mio_clk 1>;
321*724ba675SRob Herring			reset-names = "host", "bridge", "hw";
322*724ba675SRob Herring			resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
323*724ba675SRob Herring			dma-names = "rx-tx";
324*724ba675SRob Herring			dmas = <&dmac 5>;
325*724ba675SRob Herring			bus-width = <8>;
326*724ba675SRob Herring			cap-mmc-highspeed;
327*724ba675SRob Herring			cap-mmc-hw-reset;
328*724ba675SRob Herring			non-removable;
329*724ba675SRob Herring		};
330*724ba675SRob Herring
331*724ba675SRob Herring		sd1: mmc@5a600000 {
332*724ba675SRob Herring			compatible = "socionext,uniphier-sd-v2.91";
333*724ba675SRob Herring			status = "disabled";
334*724ba675SRob Herring			reg = <0x5a600000 0x200>;
335*724ba675SRob Herring			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
336*724ba675SRob Herring			pinctrl-names = "default";
337*724ba675SRob Herring			pinctrl-0 = <&pinctrl_sd1>;
338*724ba675SRob Herring			clocks = <&mio_clk 2>;
339*724ba675SRob Herring			reset-names = "host", "bridge";
340*724ba675SRob Herring			resets = <&mio_rst 2>, <&mio_rst 5>;
341*724ba675SRob Herring			dma-names = "rx-tx";
342*724ba675SRob Herring			dmas = <&dmac 6>;
343*724ba675SRob Herring			bus-width = <4>;
344*724ba675SRob Herring			cap-sd-highspeed;
345*724ba675SRob Herring		};
346*724ba675SRob Herring
347*724ba675SRob Herring		usb2: usb@5a800100 {
348*724ba675SRob Herring			compatible = "socionext,uniphier-ehci", "generic-ehci";
349*724ba675SRob Herring			status = "disabled";
350*724ba675SRob Herring			reg = <0x5a800100 0x100>;
351*724ba675SRob Herring			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
352*724ba675SRob Herring			pinctrl-names = "default";
353*724ba675SRob Herring			pinctrl-0 = <&pinctrl_usb2>;
354*724ba675SRob Herring			clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
355*724ba675SRob Herring				 <&mio_clk 12>;
356*724ba675SRob Herring			resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
357*724ba675SRob Herring				 <&mio_rst 12>;
358*724ba675SRob Herring			phy-names = "usb";
359*724ba675SRob Herring			phys = <&usb_phy0>;
360*724ba675SRob Herring			has-transaction-translator;
361*724ba675SRob Herring		};
362*724ba675SRob Herring
363*724ba675SRob Herring		usb3: usb@5a810100 {
364*724ba675SRob Herring			compatible = "socionext,uniphier-ehci", "generic-ehci";
365*724ba675SRob Herring			status = "disabled";
366*724ba675SRob Herring			reg = <0x5a810100 0x100>;
367*724ba675SRob Herring			interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
368*724ba675SRob Herring			pinctrl-names = "default";
369*724ba675SRob Herring			pinctrl-0 = <&pinctrl_usb3>;
370*724ba675SRob Herring			clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
371*724ba675SRob Herring				 <&mio_clk 13>;
372*724ba675SRob Herring			resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
373*724ba675SRob Herring				 <&mio_rst 13>;
374*724ba675SRob Herring			phy-names = "usb";
375*724ba675SRob Herring			phys = <&usb_phy1>;
376*724ba675SRob Herring			has-transaction-translator;
377*724ba675SRob Herring		};
378*724ba675SRob Herring
379*724ba675SRob Herring		soc_glue: syscon@5f800000 {
380*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-soc-glue",
381*724ba675SRob Herring				     "simple-mfd", "syscon";
382*724ba675SRob Herring			reg = <0x5f800000 0x2000>;
383*724ba675SRob Herring
384*724ba675SRob Herring			pinctrl: pinctrl {
385*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-pinctrl";
386*724ba675SRob Herring			};
387*724ba675SRob Herring
388*724ba675SRob Herring			usb-hub {
389*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-usb2-phy";
390*724ba675SRob Herring				#address-cells = <1>;
391*724ba675SRob Herring				#size-cells = <0>;
392*724ba675SRob Herring
393*724ba675SRob Herring				usb_phy0: phy@0 {
394*724ba675SRob Herring					reg = <0>;
395*724ba675SRob Herring					#phy-cells = <0>;
396*724ba675SRob Herring				};
397*724ba675SRob Herring
398*724ba675SRob Herring				usb_phy1: phy@1 {
399*724ba675SRob Herring					reg = <1>;
400*724ba675SRob Herring					#phy-cells = <0>;
401*724ba675SRob Herring				};
402*724ba675SRob Herring
403*724ba675SRob Herring				usb_phy2: phy@2 {
404*724ba675SRob Herring					reg = <2>;
405*724ba675SRob Herring					#phy-cells = <0>;
406*724ba675SRob Herring					vbus-supply = <&usb0_vbus>;
407*724ba675SRob Herring				};
408*724ba675SRob Herring
409*724ba675SRob Herring				usb_phy3: phy@3 {
410*724ba675SRob Herring					reg = <3>;
411*724ba675SRob Herring					#phy-cells = <0>;
412*724ba675SRob Herring					vbus-supply = <&usb1_vbus>;
413*724ba675SRob Herring				};
414*724ba675SRob Herring			};
415*724ba675SRob Herring
416*724ba675SRob Herring			sg_clk: clock-controller {
417*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-sg-clock";
418*724ba675SRob Herring				#clock-cells = <1>;
419*724ba675SRob Herring			};
420*724ba675SRob Herring		};
421*724ba675SRob Herring
422*724ba675SRob Herring		syscon@5f900000 {
423*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-soc-glue-debug",
424*724ba675SRob Herring				     "simple-mfd", "syscon";
425*724ba675SRob Herring			reg = <0x5f900000 0x2000>;
426*724ba675SRob Herring			#address-cells = <1>;
427*724ba675SRob Herring			#size-cells = <1>;
428*724ba675SRob Herring			ranges = <0 0x5f900000 0x2000>;
429*724ba675SRob Herring
430*724ba675SRob Herring			efuse@100 {
431*724ba675SRob Herring				compatible = "socionext,uniphier-efuse";
432*724ba675SRob Herring				reg = <0x100 0x28>;
433*724ba675SRob Herring			};
434*724ba675SRob Herring
435*724ba675SRob Herring			efuse@130 {
436*724ba675SRob Herring				compatible = "socionext,uniphier-efuse";
437*724ba675SRob Herring				reg = <0x130 0x8>;
438*724ba675SRob Herring			};
439*724ba675SRob Herring
440*724ba675SRob Herring			efuse@200 {
441*724ba675SRob Herring				compatible = "socionext,uniphier-efuse";
442*724ba675SRob Herring				reg = <0x200 0x14>;
443*724ba675SRob Herring			};
444*724ba675SRob Herring		};
445*724ba675SRob Herring
446*724ba675SRob Herring		xdmac: dma-controller@5fc10000 {
447*724ba675SRob Herring			compatible = "socionext,uniphier-xdmac";
448*724ba675SRob Herring			reg = <0x5fc10000 0x5300>;
449*724ba675SRob Herring			interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
450*724ba675SRob Herring			dma-channels = <16>;
451*724ba675SRob Herring			#dma-cells = <2>;
452*724ba675SRob Herring		};
453*724ba675SRob Herring
454*724ba675SRob Herring		aidet: interrupt-controller@5fc20000 {
455*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-aidet";
456*724ba675SRob Herring			reg = <0x5fc20000 0x200>;
457*724ba675SRob Herring			interrupt-controller;
458*724ba675SRob Herring			#interrupt-cells = <2>;
459*724ba675SRob Herring		};
460*724ba675SRob Herring
461*724ba675SRob Herring		timer@60000200 {
462*724ba675SRob Herring			compatible = "arm,cortex-a9-global-timer";
463*724ba675SRob Herring			reg = <0x60000200 0x20>;
464*724ba675SRob Herring			interrupts = <GIC_PPI 11
465*724ba675SRob Herring				(GIC_CPU_MASK_RAW(3) | IRQ_TYPE_LEVEL_HIGH)>;
466*724ba675SRob Herring			clocks = <&arm_timer_clk>;
467*724ba675SRob Herring		};
468*724ba675SRob Herring
469*724ba675SRob Herring		timer@60000600 {
470*724ba675SRob Herring			compatible = "arm,cortex-a9-twd-timer";
471*724ba675SRob Herring			reg = <0x60000600 0x20>;
472*724ba675SRob Herring			interrupts = <GIC_PPI 13
473*724ba675SRob Herring				(GIC_CPU_MASK_RAW(3) | IRQ_TYPE_LEVEL_HIGH)>;
474*724ba675SRob Herring			clocks = <&arm_timer_clk>;
475*724ba675SRob Herring		};
476*724ba675SRob Herring
477*724ba675SRob Herring		intc: interrupt-controller@60001000 {
478*724ba675SRob Herring			compatible = "arm,cortex-a9-gic";
479*724ba675SRob Herring			reg = <0x60001000 0x1000>,
480*724ba675SRob Herring			      <0x60000100 0x100>;
481*724ba675SRob Herring			#interrupt-cells = <3>;
482*724ba675SRob Herring			interrupt-controller;
483*724ba675SRob Herring		};
484*724ba675SRob Herring
485*724ba675SRob Herring		syscon@61840000 {
486*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-sysctrl",
487*724ba675SRob Herring				     "simple-mfd", "syscon";
488*724ba675SRob Herring			reg = <0x61840000 0x10000>;
489*724ba675SRob Herring
490*724ba675SRob Herring			sys_clk: clock-controller {
491*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-clock";
492*724ba675SRob Herring				#clock-cells = <1>;
493*724ba675SRob Herring			};
494*724ba675SRob Herring
495*724ba675SRob Herring			sys_rst: reset-controller {
496*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-reset";
497*724ba675SRob Herring				#reset-cells = <1>;
498*724ba675SRob Herring			};
499*724ba675SRob Herring		};
500*724ba675SRob Herring
501*724ba675SRob Herring		eth: ethernet@65000000 {
502*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-ave4";
503*724ba675SRob Herring			status = "disabled";
504*724ba675SRob Herring			reg = <0x65000000 0x8500>;
505*724ba675SRob Herring			interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
506*724ba675SRob Herring			pinctrl-names = "default";
507*724ba675SRob Herring			pinctrl-0 = <&pinctrl_ether_rgmii>;
508*724ba675SRob Herring			clock-names = "gio", "ether", "ether-gb", "ether-phy";
509*724ba675SRob Herring			clocks = <&sys_clk 12>, <&sys_clk 6>, <&sys_clk 7>,
510*724ba675SRob Herring				 <&sys_clk 10>;
511*724ba675SRob Herring			reset-names = "gio", "ether";
512*724ba675SRob Herring			resets = <&sys_rst 12>, <&sys_rst 6>;
513*724ba675SRob Herring			phy-mode = "rgmii";
514*724ba675SRob Herring			local-mac-address = [00 00 00 00 00 00];
515*724ba675SRob Herring			socionext,syscon-phy-mode = <&soc_glue 0>;
516*724ba675SRob Herring
517*724ba675SRob Herring			mdio: mdio {
518*724ba675SRob Herring				#address-cells = <1>;
519*724ba675SRob Herring				#size-cells = <0>;
520*724ba675SRob Herring			};
521*724ba675SRob Herring		};
522*724ba675SRob Herring
523*724ba675SRob Herring		ahci0: sata@65600000 {
524*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-ahci",
525*724ba675SRob Herring				     "generic-ahci";
526*724ba675SRob Herring			status = "disabled";
527*724ba675SRob Herring			reg = <0x65600000 0x10000>;
528*724ba675SRob Herring			interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
529*724ba675SRob Herring			clocks = <&sys_clk 12>, <&sys_clk 28>;
530*724ba675SRob Herring			resets = <&sys_rst 12>, <&sys_rst 28>, <&ahci0_rst 3>;
531*724ba675SRob Herring			ports-implemented = <1>;
532*724ba675SRob Herring			phys = <&ahci0_phy>;
533*724ba675SRob Herring			assigned-clocks = <&sg_clk 0>;
534*724ba675SRob Herring			assigned-clock-rates = <25000000>;
535*724ba675SRob Herring		};
536*724ba675SRob Herring
537*724ba675SRob Herring		sata-controller@65700000 {
538*724ba675SRob Herring			compatible = "socionext,uniphier-pxs2-ahci-glue",
539*724ba675SRob Herring				     "simple-mfd";
540*724ba675SRob Herring			reg = <0x65700000 0x100>;
541*724ba675SRob Herring			#address-cells = <1>;
542*724ba675SRob Herring			#size-cells = <1>;
543*724ba675SRob Herring			ranges = <0 0x65700000 0x100>;
544*724ba675SRob Herring
545*724ba675SRob Herring			ahci0_rst: reset-controller@0 {
546*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-ahci-reset";
547*724ba675SRob Herring				reg = <0x0 0x4>;
548*724ba675SRob Herring				clock-names = "gio", "link";
549*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 28>;
550*724ba675SRob Herring				reset-names = "gio", "link";
551*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 28>;
552*724ba675SRob Herring				#reset-cells = <1>;
553*724ba675SRob Herring			};
554*724ba675SRob Herring
555*724ba675SRob Herring			ahci0_phy: phy@10 {
556*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-ahci-phy";
557*724ba675SRob Herring				reg = <0x10 0x40>;
558*724ba675SRob Herring				clock-names = "link", "gio";
559*724ba675SRob Herring				clocks = <&sys_clk 28>, <&sys_clk 12>;
560*724ba675SRob Herring				reset-names = "link", "gio", "phy",
561*724ba675SRob Herring					      "pm", "tx", "rx";
562*724ba675SRob Herring				resets = <&sys_rst 28>, <&sys_rst 12>,
563*724ba675SRob Herring					 <&sys_rst 30>,
564*724ba675SRob Herring					 <&ahci0_rst 0>, <&ahci0_rst 1>,
565*724ba675SRob Herring					 <&ahci0_rst 2>;
566*724ba675SRob Herring				#phy-cells = <0>;
567*724ba675SRob Herring			};
568*724ba675SRob Herring		};
569*724ba675SRob Herring
570*724ba675SRob Herring		ahci1: sata@65800000 {
571*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-ahci",
572*724ba675SRob Herring				     "generic-ahci";
573*724ba675SRob Herring			status = "disabled";
574*724ba675SRob Herring			reg = <0x65800000 0x10000>;
575*724ba675SRob Herring			interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
576*724ba675SRob Herring			clocks = <&sys_clk 12>, <&sys_clk 29>;
577*724ba675SRob Herring			resets = <&sys_rst 12>, <&sys_rst 29>, <&ahci1_rst 3>;
578*724ba675SRob Herring			ports-implemented = <1>;
579*724ba675SRob Herring			phys = <&ahci1_phy>;
580*724ba675SRob Herring			assigned-clocks = <&sg_clk 0>;
581*724ba675SRob Herring			assigned-clock-rates = <25000000>;
582*724ba675SRob Herring		};
583*724ba675SRob Herring
584*724ba675SRob Herring		sata-controller@65900000 {
585*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-ahci-glue",
586*724ba675SRob Herring				     "simple-mfd";
587*724ba675SRob Herring			reg = <0x65900000 0x100>;
588*724ba675SRob Herring			#address-cells = <1>;
589*724ba675SRob Herring			#size-cells = <1>;
590*724ba675SRob Herring			ranges = <0 0x65900000 0x100>;
591*724ba675SRob Herring
592*724ba675SRob Herring			ahci1_rst: reset-controller@0 {
593*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-ahci-reset";
594*724ba675SRob Herring				reg = <0x0 0x4>;
595*724ba675SRob Herring				clock-names = "gio", "link";
596*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 29>;
597*724ba675SRob Herring				reset-names = "gio", "link";
598*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 29>;
599*724ba675SRob Herring				#reset-cells = <1>;
600*724ba675SRob Herring			};
601*724ba675SRob Herring
602*724ba675SRob Herring			ahci1_phy: phy@10 {
603*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-ahci-phy";
604*724ba675SRob Herring				reg = <0x10 0x40>;
605*724ba675SRob Herring				clock-names = "link", "gio";
606*724ba675SRob Herring				clocks = <&sys_clk 29>, <&sys_clk 12>;
607*724ba675SRob Herring				reset-names = "link", "gio", "phy",
608*724ba675SRob Herring					      "pm", "tx", "rx";
609*724ba675SRob Herring				resets = <&sys_rst 29>, <&sys_rst 12>,
610*724ba675SRob Herring					 <&sys_rst 30>,
611*724ba675SRob Herring					 <&ahci1_rst 0>, <&ahci1_rst 1>,
612*724ba675SRob Herring					 <&ahci1_rst 2>;
613*724ba675SRob Herring				#phy-cells = <0>;
614*724ba675SRob Herring			};
615*724ba675SRob Herring		};
616*724ba675SRob Herring
617*724ba675SRob Herring		usb0: usb@65a00000 {
618*724ba675SRob Herring			compatible = "socionext,uniphier-dwc3", "snps,dwc3";
619*724ba675SRob Herring			status = "disabled";
620*724ba675SRob Herring			reg = <0x65a00000 0xcd00>;
621*724ba675SRob Herring			interrupt-names = "host", "peripheral";
622*724ba675SRob Herring			interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
623*724ba675SRob Herring				     <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
624*724ba675SRob Herring			pinctrl-names = "default";
625*724ba675SRob Herring			pinctrl-0 = <&pinctrl_usb0>;
626*724ba675SRob Herring			clock-names = "ref", "bus_early", "suspend";
627*724ba675SRob Herring			clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>;
628*724ba675SRob Herring			resets = <&usb0_rst 4>;
629*724ba675SRob Herring			phys = <&usb_phy2>, <&usb0_ssphy>;
630*724ba675SRob Herring			dr_mode = "host";
631*724ba675SRob Herring		};
632*724ba675SRob Herring
633*724ba675SRob Herring		usb-controller@65b00000 {
634*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-dwc3-glue",
635*724ba675SRob Herring				     "simple-mfd";
636*724ba675SRob Herring			reg = <0x65b00000 0x100>;
637*724ba675SRob Herring			#address-cells = <1>;
638*724ba675SRob Herring			#size-cells = <1>;
639*724ba675SRob Herring			ranges = <0 0x65b00000 0x100>;
640*724ba675SRob Herring
641*724ba675SRob Herring			usb0_vbus: regulator@0 {
642*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-usb3-regulator";
643*724ba675SRob Herring				reg = <0 0x10>;
644*724ba675SRob Herring				clock-names = "gio", "link";
645*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 14>;
646*724ba675SRob Herring				reset-names = "gio", "link";
647*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 14>;
648*724ba675SRob Herring			};
649*724ba675SRob Herring
650*724ba675SRob Herring			usb0_ssphy: phy@10 {
651*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-usb3-ssphy";
652*724ba675SRob Herring				reg = <0x10 0x10>;
653*724ba675SRob Herring				#phy-cells = <0>;
654*724ba675SRob Herring				clock-names = "gio", "link";
655*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 14>;
656*724ba675SRob Herring				reset-names = "gio", "link";
657*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 14>;
658*724ba675SRob Herring				vbus-supply = <&usb0_vbus>;
659*724ba675SRob Herring			};
660*724ba675SRob Herring
661*724ba675SRob Herring			usb0_rst: reset-controller@40 {
662*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-usb3-reset";
663*724ba675SRob Herring				reg = <0x40 0x4>;
664*724ba675SRob Herring				#reset-cells = <1>;
665*724ba675SRob Herring				clock-names = "gio", "link";
666*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 14>;
667*724ba675SRob Herring				reset-names = "gio", "link";
668*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 14>;
669*724ba675SRob Herring			};
670*724ba675SRob Herring		};
671*724ba675SRob Herring
672*724ba675SRob Herring		usb1: usb@65c00000 {
673*724ba675SRob Herring			compatible = "socionext,uniphier-dwc3", "snps,dwc3";
674*724ba675SRob Herring			status = "disabled";
675*724ba675SRob Herring			reg = <0x65c00000 0xcd00>;
676*724ba675SRob Herring			interrupt-names = "host", "peripheral";
677*724ba675SRob Herring			interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
678*724ba675SRob Herring				     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
679*724ba675SRob Herring			pinctrl-names = "default";
680*724ba675SRob Herring			pinctrl-0 = <&pinctrl_usb1>;
681*724ba675SRob Herring			clock-names = "ref", "bus_early", "suspend";
682*724ba675SRob Herring			clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>;
683*724ba675SRob Herring			resets = <&usb1_rst 4>;
684*724ba675SRob Herring			phys = <&usb_phy3>;
685*724ba675SRob Herring			dr_mode = "host";
686*724ba675SRob Herring		};
687*724ba675SRob Herring
688*724ba675SRob Herring		usb-controller@65d00000 {
689*724ba675SRob Herring			compatible = "socionext,uniphier-pro4-dwc3-glue",
690*724ba675SRob Herring				     "simple-mfd";
691*724ba675SRob Herring			reg = <0x65d00000 0x100>;
692*724ba675SRob Herring			#address-cells = <1>;
693*724ba675SRob Herring			#size-cells = <1>;
694*724ba675SRob Herring			ranges = <0 0x65d00000 0x100>;
695*724ba675SRob Herring
696*724ba675SRob Herring			usb1_vbus: regulator@0 {
697*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-usb3-regulator";
698*724ba675SRob Herring				reg = <0 0x10>;
699*724ba675SRob Herring				clock-names = "gio", "link";
700*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 15>;
701*724ba675SRob Herring				reset-names = "gio", "link";
702*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 15>;
703*724ba675SRob Herring			};
704*724ba675SRob Herring
705*724ba675SRob Herring			usb1_rst: reset-controller@40 {
706*724ba675SRob Herring				compatible = "socionext,uniphier-pro4-usb3-reset";
707*724ba675SRob Herring				reg = <0x40 0x4>;
708*724ba675SRob Herring				#reset-cells = <1>;
709*724ba675SRob Herring				clock-names = "gio", "link";
710*724ba675SRob Herring				clocks = <&sys_clk 12>, <&sys_clk 15>;
711*724ba675SRob Herring				reset-names = "gio", "link";
712*724ba675SRob Herring				resets = <&sys_rst 12>, <&sys_rst 15>;
713*724ba675SRob Herring			};
714*724ba675SRob Herring		};
715*724ba675SRob Herring
716*724ba675SRob Herring		nand: nand-controller@68000000 {
717*724ba675SRob Herring			compatible = "socionext,uniphier-denali-nand-v5a";
718*724ba675SRob Herring			status = "disabled";
719*724ba675SRob Herring			reg-names = "nand_data", "denali_reg";
720*724ba675SRob Herring			reg = <0x68000000 0x20>, <0x68100000 0x1000>;
721*724ba675SRob Herring			#address-cells = <1>;
722*724ba675SRob Herring			#size-cells = <0>;
723*724ba675SRob Herring			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
724*724ba675SRob Herring			pinctrl-names = "default";
725*724ba675SRob Herring			pinctrl-0 = <&pinctrl_nand>;
726*724ba675SRob Herring			clock-names = "nand", "nand_x", "ecc";
727*724ba675SRob Herring			clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
728*724ba675SRob Herring			reset-names = "nand", "reg";
729*724ba675SRob Herring			resets = <&sys_rst 2>, <&sys_rst 2>;
730*724ba675SRob Herring		};
731*724ba675SRob Herring	};
732*724ba675SRob Herring};
733*724ba675SRob Herring
734*724ba675SRob Herring#include "uniphier-pinctrl.dtsi"
735