xref: /openbmc/u-boot/arch/arm/dts/uniphier-pxs2.dtsi (revision 33aae6b5)
13e98fc12SMasahiro Yamada// SPDX-License-Identifier: GPL-2.0+ OR MIT
23e98fc12SMasahiro Yamada//
33e98fc12SMasahiro Yamada// Device Tree Source for UniPhier PXs2 SoC
43e98fc12SMasahiro Yamada//
53e98fc12SMasahiro Yamada// Copyright (C) 2015-2016 Socionext Inc.
63e98fc12SMasahiro Yamada//   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
752159d27SMasahiro Yamada
8b443fb42SMasahiro Yamada#include <dt-bindings/gpio/uniphier-gpio.h>
9b443fb42SMasahiro Yamada#include <dt-bindings/thermal/thermal.h>
10b443fb42SMasahiro Yamada
1152159d27SMasahiro Yamada/ {
1252159d27SMasahiro Yamada	compatible = "socionext,uniphier-pxs2";
13f16eda96SMasahiro Yamada	#address-cells = <1>;
14f16eda96SMasahiro Yamada	#size-cells = <1>;
1552159d27SMasahiro Yamada
1652159d27SMasahiro Yamada	cpus {
1752159d27SMasahiro Yamada		#address-cells = <1>;
1852159d27SMasahiro Yamada		#size-cells = <0>;
1952159d27SMasahiro Yamada
20b443fb42SMasahiro Yamada		cpu0: cpu@0 {
2152159d27SMasahiro Yamada			device_type = "cpu";
2252159d27SMasahiro Yamada			compatible = "arm,cortex-a9";
2352159d27SMasahiro Yamada			reg = <0>;
24cd62214dSMasahiro Yamada			clocks = <&sys_clk 32>;
2552159d27SMasahiro Yamada			enable-method = "psci";
2652159d27SMasahiro Yamada			next-level-cache = <&l2>;
27cd62214dSMasahiro Yamada			operating-points-v2 = <&cpu_opp>;
28b443fb42SMasahiro Yamada			#cooling-cells = <2>;
2952159d27SMasahiro Yamada		};
3052159d27SMasahiro Yamada
31b443fb42SMasahiro Yamada		cpu1: cpu@1 {
3252159d27SMasahiro Yamada			device_type = "cpu";
3352159d27SMasahiro Yamada			compatible = "arm,cortex-a9";
3452159d27SMasahiro Yamada			reg = <1>;
35cd62214dSMasahiro Yamada			clocks = <&sys_clk 32>;
3652159d27SMasahiro Yamada			enable-method = "psci";
3752159d27SMasahiro Yamada			next-level-cache = <&l2>;
38cd62214dSMasahiro Yamada			operating-points-v2 = <&cpu_opp>;
39*33aae6b5SMasahiro Yamada			#cooling-cells = <2>;
4052159d27SMasahiro Yamada		};
4152159d27SMasahiro Yamada
42b443fb42SMasahiro Yamada		cpu2: cpu@2 {
4352159d27SMasahiro Yamada			device_type = "cpu";
4452159d27SMasahiro Yamada			compatible = "arm,cortex-a9";
4552159d27SMasahiro Yamada			reg = <2>;
46cd62214dSMasahiro Yamada			clocks = <&sys_clk 32>;
4752159d27SMasahiro Yamada			enable-method = "psci";
4852159d27SMasahiro Yamada			next-level-cache = <&l2>;
49cd62214dSMasahiro Yamada			operating-points-v2 = <&cpu_opp>;
50*33aae6b5SMasahiro Yamada			#cooling-cells = <2>;
5152159d27SMasahiro Yamada		};
5252159d27SMasahiro Yamada
53b443fb42SMasahiro Yamada		cpu3: cpu@3 {
5452159d27SMasahiro Yamada			device_type = "cpu";
5552159d27SMasahiro Yamada			compatible = "arm,cortex-a9";
5652159d27SMasahiro Yamada			reg = <3>;
57cd62214dSMasahiro Yamada			clocks = <&sys_clk 32>;
5852159d27SMasahiro Yamada			enable-method = "psci";
5952159d27SMasahiro Yamada			next-level-cache = <&l2>;
60cd62214dSMasahiro Yamada			operating-points-v2 = <&cpu_opp>;
61*33aae6b5SMasahiro Yamada			#cooling-cells = <2>;
6252159d27SMasahiro Yamada		};
6352159d27SMasahiro Yamada	};
6452159d27SMasahiro Yamada
65b443fb42SMasahiro Yamada	cpu_opp: opp-table {
66cd62214dSMasahiro Yamada		compatible = "operating-points-v2";
67cd62214dSMasahiro Yamada		opp-shared;
68cd62214dSMasahiro Yamada
694e7f8de4SMasahiro Yamada		opp-100000000 {
70cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <100000000>;
71cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
72cd62214dSMasahiro Yamada		};
734e7f8de4SMasahiro Yamada		opp-150000000 {
74cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <150000000>;
75cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
76cd62214dSMasahiro Yamada		};
774e7f8de4SMasahiro Yamada		opp-200000000 {
78cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <200000000>;
79cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
80cd62214dSMasahiro Yamada		};
814e7f8de4SMasahiro Yamada		opp-300000000 {
82cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <300000000>;
83cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
84cd62214dSMasahiro Yamada		};
854e7f8de4SMasahiro Yamada		opp-400000000 {
86cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <400000000>;
87cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
88cd62214dSMasahiro Yamada		};
894e7f8de4SMasahiro Yamada		opp-600000000 {
90cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <600000000>;
91cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
92cd62214dSMasahiro Yamada		};
934e7f8de4SMasahiro Yamada		opp-800000000 {
94cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <800000000>;
95cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
96cd62214dSMasahiro Yamada		};
974e7f8de4SMasahiro Yamada		opp-1200000000 {
98cd62214dSMasahiro Yamada			opp-hz = /bits/ 64 <1200000000>;
99cd62214dSMasahiro Yamada			clock-latency-ns = <300>;
100cd62214dSMasahiro Yamada		};
101cd62214dSMasahiro Yamada	};
102cd62214dSMasahiro Yamada
103cd62214dSMasahiro Yamada	psci {
104cd62214dSMasahiro Yamada		compatible = "arm,psci-0.2";
105cd62214dSMasahiro Yamada		method = "smc";
106cd62214dSMasahiro Yamada	};
107cd62214dSMasahiro Yamada
10852159d27SMasahiro Yamada	clocks {
109cd62214dSMasahiro Yamada		refclk: ref {
110cd62214dSMasahiro Yamada			compatible = "fixed-clock";
111cd62214dSMasahiro Yamada			#clock-cells = <0>;
112cd62214dSMasahiro Yamada			clock-frequency = <25000000>;
113cd62214dSMasahiro Yamada		};
114cd62214dSMasahiro Yamada
115b443fb42SMasahiro Yamada		arm_timer_clk: arm-timer {
11652159d27SMasahiro Yamada			#clock-cells = <0>;
11752159d27SMasahiro Yamada			compatible = "fixed-clock";
11852159d27SMasahiro Yamada			clock-frequency = <50000000>;
11952159d27SMasahiro Yamada		};
12052159d27SMasahiro Yamada	};
12152159d27SMasahiro Yamada
122b443fb42SMasahiro Yamada	thermal-zones {
123b443fb42SMasahiro Yamada		cpu-thermal {
124b443fb42SMasahiro Yamada			polling-delay-passive = <250>;	/* 250ms */
125b443fb42SMasahiro Yamada			polling-delay = <1000>;		/* 1000ms */
126b443fb42SMasahiro Yamada			thermal-sensors = <&pvtctl>;
127b443fb42SMasahiro Yamada
128b443fb42SMasahiro Yamada			trips {
129b443fb42SMasahiro Yamada				cpu_crit: cpu-crit {
130b443fb42SMasahiro Yamada					temperature = <95000>;	/* 95C */
131b443fb42SMasahiro Yamada					hysteresis = <2000>;
132b443fb42SMasahiro Yamada					type = "critical";
133b443fb42SMasahiro Yamada				};
134b443fb42SMasahiro Yamada				cpu_alert: cpu-alert {
135b443fb42SMasahiro Yamada					temperature = <85000>;	/* 85C */
136b443fb42SMasahiro Yamada					hysteresis = <2000>;
137b443fb42SMasahiro Yamada					type = "passive";
138b443fb42SMasahiro Yamada				};
139b443fb42SMasahiro Yamada			};
140b443fb42SMasahiro Yamada
141b443fb42SMasahiro Yamada			cooling-maps {
142b443fb42SMasahiro Yamada				map {
143b443fb42SMasahiro Yamada					trip = <&cpu_alert>;
144b443fb42SMasahiro Yamada					cooling-device = <&cpu0
145b443fb42SMasahiro Yamada					    THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
146b443fb42SMasahiro Yamada				};
147b443fb42SMasahiro Yamada			};
148b443fb42SMasahiro Yamada		};
149b443fb42SMasahiro Yamada	};
150b443fb42SMasahiro Yamada
151cd62214dSMasahiro Yamada	soc {
152cd62214dSMasahiro Yamada		compatible = "simple-bus";
153cd62214dSMasahiro Yamada		#address-cells = <1>;
154cd62214dSMasahiro Yamada		#size-cells = <1>;
155cd62214dSMasahiro Yamada		ranges;
156cd62214dSMasahiro Yamada		interrupt-parent = <&intc>;
157cd62214dSMasahiro Yamada
15852159d27SMasahiro Yamada		l2: l2-cache@500c0000 {
15952159d27SMasahiro Yamada			compatible = "socionext,uniphier-system-cache";
160cd62214dSMasahiro Yamada			reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
161cd62214dSMasahiro Yamada			      <0x506c0000 0x400>;
16252159d27SMasahiro Yamada			interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
16352159d27SMasahiro Yamada			cache-unified;
16452159d27SMasahiro Yamada			cache-size = <(1280 * 1024)>;
16552159d27SMasahiro Yamada			cache-sets = <512>;
16652159d27SMasahiro Yamada			cache-line-size = <128>;
16752159d27SMasahiro Yamada			cache-level = <2>;
16852159d27SMasahiro Yamada		};
16952159d27SMasahiro Yamada
170cd62214dSMasahiro Yamada		serial0: serial@54006800 {
171cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-uart";
172cd62214dSMasahiro Yamada			status = "disabled";
173cd62214dSMasahiro Yamada			reg = <0x54006800 0x40>;
174cd62214dSMasahiro Yamada			interrupts = <0 33 4>;
175cd62214dSMasahiro Yamada			pinctrl-names = "default";
176cd62214dSMasahiro Yamada			pinctrl-0 = <&pinctrl_uart0>;
177cd62214dSMasahiro Yamada			clocks = <&peri_clk 0>;
178b443fb42SMasahiro Yamada			resets = <&peri_rst 0>;
179cd62214dSMasahiro Yamada		};
180cd62214dSMasahiro Yamada
181cd62214dSMasahiro Yamada		serial1: serial@54006900 {
182cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-uart";
183cd62214dSMasahiro Yamada			status = "disabled";
184cd62214dSMasahiro Yamada			reg = <0x54006900 0x40>;
185cd62214dSMasahiro Yamada			interrupts = <0 35 4>;
186cd62214dSMasahiro Yamada			pinctrl-names = "default";
187cd62214dSMasahiro Yamada			pinctrl-0 = <&pinctrl_uart1>;
188cd62214dSMasahiro Yamada			clocks = <&peri_clk 1>;
189b443fb42SMasahiro Yamada			resets = <&peri_rst 1>;
190cd62214dSMasahiro Yamada		};
191cd62214dSMasahiro Yamada
192cd62214dSMasahiro Yamada		serial2: serial@54006a00 {
193cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-uart";
194cd62214dSMasahiro Yamada			status = "disabled";
195cd62214dSMasahiro Yamada			reg = <0x54006a00 0x40>;
196cd62214dSMasahiro Yamada			interrupts = <0 37 4>;
197cd62214dSMasahiro Yamada			pinctrl-names = "default";
198cd62214dSMasahiro Yamada			pinctrl-0 = <&pinctrl_uart2>;
199cd62214dSMasahiro Yamada			clocks = <&peri_clk 2>;
200b443fb42SMasahiro Yamada			resets = <&peri_rst 2>;
201cd62214dSMasahiro Yamada		};
202cd62214dSMasahiro Yamada
203cd62214dSMasahiro Yamada		serial3: serial@54006b00 {
204cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-uart";
205cd62214dSMasahiro Yamada			status = "disabled";
206cd62214dSMasahiro Yamada			reg = <0x54006b00 0x40>;
207cd62214dSMasahiro Yamada			interrupts = <0 177 4>;
208cd62214dSMasahiro Yamada			pinctrl-names = "default";
209cd62214dSMasahiro Yamada			pinctrl-0 = <&pinctrl_uart3>;
210cd62214dSMasahiro Yamada			clocks = <&peri_clk 3>;
211b443fb42SMasahiro Yamada			resets = <&peri_rst 3>;
212cd62214dSMasahiro Yamada		};
213cd62214dSMasahiro Yamada
2140f72b74bSMasahiro Yamada		gpio: gpio@55000000 {
21552159d27SMasahiro Yamada			compatible = "socionext,uniphier-gpio";
2160f72b74bSMasahiro Yamada			reg = <0x55000000 0x200>;
2170f72b74bSMasahiro Yamada			interrupt-parent = <&aidet>;
2180f72b74bSMasahiro Yamada			interrupt-controller;
2190f72b74bSMasahiro Yamada			#interrupt-cells = <2>;
22052159d27SMasahiro Yamada			gpio-controller;
22152159d27SMasahiro Yamada			#gpio-cells = <2>;
2220f72b74bSMasahiro Yamada			gpio-ranges = <&pinctrl 0 0 0>,
2230f72b74bSMasahiro Yamada				      <&pinctrl 96 0 0>;
2240f72b74bSMasahiro Yamada			gpio-ranges-group-names = "gpio_range0",
2250f72b74bSMasahiro Yamada						  "gpio_range1";
2260f72b74bSMasahiro Yamada			ngpios = <232>;
227b443fb42SMasahiro Yamada			socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
228b443fb42SMasahiro Yamada						     <21 217 3>;
22952159d27SMasahiro Yamada		};
23052159d27SMasahiro Yamada
2313e98fc12SMasahiro Yamada		audio@56000000 {
2323e98fc12SMasahiro Yamada			compatible = "socionext,uniphier-pxs2-aio";
2333e98fc12SMasahiro Yamada			reg = <0x56000000 0x80000>;
2343e98fc12SMasahiro Yamada			interrupts = <0 144 4>;
2353e98fc12SMasahiro Yamada			pinctrl-names = "default";
2363e98fc12SMasahiro Yamada			pinctrl-0 = <&pinctrl_ain1>,
2373e98fc12SMasahiro Yamada				    <&pinctrl_ain2>,
2383e98fc12SMasahiro Yamada				    <&pinctrl_ainiec1>,
2393e98fc12SMasahiro Yamada				    <&pinctrl_aout2>,
2403e98fc12SMasahiro Yamada				    <&pinctrl_aout3>,
2413e98fc12SMasahiro Yamada				    <&pinctrl_aoutiec1>,
2423e98fc12SMasahiro Yamada				    <&pinctrl_aoutiec2>;
2433e98fc12SMasahiro Yamada			clock-names = "aio";
2443e98fc12SMasahiro Yamada			clocks = <&sys_clk 40>;
2453e98fc12SMasahiro Yamada			reset-names = "aio";
2463e98fc12SMasahiro Yamada			resets = <&sys_rst 40>;
2473e98fc12SMasahiro Yamada			#sound-dai-cells = <1>;
2483e98fc12SMasahiro Yamada			socionext,syscon = <&soc_glue>;
2493e98fc12SMasahiro Yamada
2503e98fc12SMasahiro Yamada			i2s_port0: port@0 {
2513e98fc12SMasahiro Yamada				i2s_hdmi: endpoint {
2523e98fc12SMasahiro Yamada				};
2533e98fc12SMasahiro Yamada			};
2543e98fc12SMasahiro Yamada
2553e98fc12SMasahiro Yamada			i2s_port1: port@1 {
2563e98fc12SMasahiro Yamada				i2s_line: endpoint {
2573e98fc12SMasahiro Yamada				};
2583e98fc12SMasahiro Yamada			};
2593e98fc12SMasahiro Yamada
2603e98fc12SMasahiro Yamada			i2s_port2: port@2 {
2613e98fc12SMasahiro Yamada				i2s_aux: endpoint {
2623e98fc12SMasahiro Yamada				};
2633e98fc12SMasahiro Yamada			};
2643e98fc12SMasahiro Yamada
2653e98fc12SMasahiro Yamada			spdif_port0: port@3 {
2663e98fc12SMasahiro Yamada				spdif_hiecout1: endpoint {
2673e98fc12SMasahiro Yamada				};
2683e98fc12SMasahiro Yamada			};
2693e98fc12SMasahiro Yamada
2703e98fc12SMasahiro Yamada			spdif_port1: port@4 {
2713e98fc12SMasahiro Yamada				spdif_iecout1: endpoint {
2723e98fc12SMasahiro Yamada				};
2733e98fc12SMasahiro Yamada			};
2743e98fc12SMasahiro Yamada
2753e98fc12SMasahiro Yamada			comp_spdif_port0: port@5 {
2763e98fc12SMasahiro Yamada				comp_spdif_hiecout1: endpoint {
2773e98fc12SMasahiro Yamada				};
2783e98fc12SMasahiro Yamada			};
2793e98fc12SMasahiro Yamada
2803e98fc12SMasahiro Yamada			comp_spdif_port1: port@6 {
2813e98fc12SMasahiro Yamada				comp_spdif_iecout1: endpoint {
2823e98fc12SMasahiro Yamada				};
2833e98fc12SMasahiro Yamada			};
2843e98fc12SMasahiro Yamada		};
2853e98fc12SMasahiro Yamada
28652159d27SMasahiro Yamada		i2c0: i2c@58780000 {
28752159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
28852159d27SMasahiro Yamada			status = "disabled";
28952159d27SMasahiro Yamada			reg = <0x58780000 0x80>;
29052159d27SMasahiro Yamada			#address-cells = <1>;
29152159d27SMasahiro Yamada			#size-cells = <0>;
29252159d27SMasahiro Yamada			interrupts = <0 41 4>;
29352159d27SMasahiro Yamada			pinctrl-names = "default";
29452159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_i2c0>;
2957317a940SMasahiro Yamada			clocks = <&peri_clk 4>;
296b443fb42SMasahiro Yamada			resets = <&peri_rst 4>;
29752159d27SMasahiro Yamada			clock-frequency = <100000>;
29852159d27SMasahiro Yamada		};
29952159d27SMasahiro Yamada
30052159d27SMasahiro Yamada		i2c1: i2c@58781000 {
30152159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
30252159d27SMasahiro Yamada			status = "disabled";
30352159d27SMasahiro Yamada			reg = <0x58781000 0x80>;
30452159d27SMasahiro Yamada			#address-cells = <1>;
30552159d27SMasahiro Yamada			#size-cells = <0>;
30652159d27SMasahiro Yamada			interrupts = <0 42 4>;
30752159d27SMasahiro Yamada			pinctrl-names = "default";
30852159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_i2c1>;
3097317a940SMasahiro Yamada			clocks = <&peri_clk 5>;
310b443fb42SMasahiro Yamada			resets = <&peri_rst 5>;
31152159d27SMasahiro Yamada			clock-frequency = <100000>;
31252159d27SMasahiro Yamada		};
31352159d27SMasahiro Yamada
31452159d27SMasahiro Yamada		i2c2: i2c@58782000 {
31552159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
31652159d27SMasahiro Yamada			status = "disabled";
31752159d27SMasahiro Yamada			reg = <0x58782000 0x80>;
31852159d27SMasahiro Yamada			#address-cells = <1>;
31952159d27SMasahiro Yamada			#size-cells = <0>;
320cd62214dSMasahiro Yamada			interrupts = <0 43 4>;
32152159d27SMasahiro Yamada			pinctrl-names = "default";
32252159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_i2c2>;
3237317a940SMasahiro Yamada			clocks = <&peri_clk 6>;
324b443fb42SMasahiro Yamada			resets = <&peri_rst 6>;
32552159d27SMasahiro Yamada			clock-frequency = <100000>;
32652159d27SMasahiro Yamada		};
32752159d27SMasahiro Yamada
32852159d27SMasahiro Yamada		i2c3: i2c@58783000 {
32952159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
33052159d27SMasahiro Yamada			status = "disabled";
33152159d27SMasahiro Yamada			reg = <0x58783000 0x80>;
33252159d27SMasahiro Yamada			#address-cells = <1>;
33352159d27SMasahiro Yamada			#size-cells = <0>;
33452159d27SMasahiro Yamada			interrupts = <0 44 4>;
33552159d27SMasahiro Yamada			pinctrl-names = "default";
33652159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_i2c3>;
3377317a940SMasahiro Yamada			clocks = <&peri_clk 7>;
338b443fb42SMasahiro Yamada			resets = <&peri_rst 7>;
33952159d27SMasahiro Yamada			clock-frequency = <100000>;
34052159d27SMasahiro Yamada		};
34152159d27SMasahiro Yamada
34252159d27SMasahiro Yamada		/* chip-internal connection for DMD */
34352159d27SMasahiro Yamada		i2c4: i2c@58784000 {
34452159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
34552159d27SMasahiro Yamada			reg = <0x58784000 0x80>;
34652159d27SMasahiro Yamada			#address-cells = <1>;
34752159d27SMasahiro Yamada			#size-cells = <0>;
34852159d27SMasahiro Yamada			interrupts = <0 45 4>;
3497317a940SMasahiro Yamada			clocks = <&peri_clk 8>;
350b443fb42SMasahiro Yamada			resets = <&peri_rst 8>;
35152159d27SMasahiro Yamada			clock-frequency = <400000>;
35252159d27SMasahiro Yamada		};
35352159d27SMasahiro Yamada
35452159d27SMasahiro Yamada		/* chip-internal connection for STM */
35552159d27SMasahiro Yamada		i2c5: i2c@58785000 {
35652159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
35752159d27SMasahiro Yamada			reg = <0x58785000 0x80>;
35852159d27SMasahiro Yamada			#address-cells = <1>;
35952159d27SMasahiro Yamada			#size-cells = <0>;
36052159d27SMasahiro Yamada			interrupts = <0 25 4>;
3617317a940SMasahiro Yamada			clocks = <&peri_clk 9>;
362b443fb42SMasahiro Yamada			resets = <&peri_rst 9>;
36352159d27SMasahiro Yamada			clock-frequency = <400000>;
36452159d27SMasahiro Yamada		};
36552159d27SMasahiro Yamada
36652159d27SMasahiro Yamada		/* chip-internal connection for HDMI */
36752159d27SMasahiro Yamada		i2c6: i2c@58786000 {
36852159d27SMasahiro Yamada			compatible = "socionext,uniphier-fi2c";
36952159d27SMasahiro Yamada			reg = <0x58786000 0x80>;
37052159d27SMasahiro Yamada			#address-cells = <1>;
37152159d27SMasahiro Yamada			#size-cells = <0>;
37252159d27SMasahiro Yamada			interrupts = <0 26 4>;
3737317a940SMasahiro Yamada			clocks = <&peri_clk 10>;
374b443fb42SMasahiro Yamada			resets = <&peri_rst 10>;
37552159d27SMasahiro Yamada			clock-frequency = <400000>;
37652159d27SMasahiro Yamada		};
37752159d27SMasahiro Yamada
378cd62214dSMasahiro Yamada		system_bus: system-bus@58c00000 {
379cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-system-bus";
380cd62214dSMasahiro Yamada			status = "disabled";
381cd62214dSMasahiro Yamada			reg = <0x58c00000 0x400>;
382cd62214dSMasahiro Yamada			#address-cells = <2>;
383cd62214dSMasahiro Yamada			#size-cells = <1>;
384cd62214dSMasahiro Yamada			pinctrl-names = "default";
385cd62214dSMasahiro Yamada			pinctrl-0 = <&pinctrl_system_bus>;
386cd62214dSMasahiro Yamada		};
387cd62214dSMasahiro Yamada
388abb6ac25SMasahiro Yamada		smpctrl@59801000 {
389cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-smpctrl";
390cd62214dSMasahiro Yamada			reg = <0x59801000 0x400>;
391cd62214dSMasahiro Yamada		};
392cd62214dSMasahiro Yamada
393cd62214dSMasahiro Yamada		sdctrl@59810000 {
394cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-sdctrl",
395cd62214dSMasahiro Yamada				     "simple-mfd", "syscon";
3966c9e46efSMasahiro Yamada			reg = <0x59810000 0x400>;
397cd62214dSMasahiro Yamada
398cd62214dSMasahiro Yamada			sd_clk: clock {
399cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-sd-clock";
400cd62214dSMasahiro Yamada				#clock-cells = <1>;
401cd62214dSMasahiro Yamada			};
402cd62214dSMasahiro Yamada
403cd62214dSMasahiro Yamada			sd_rst: reset {
404cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-sd-reset";
405cd62214dSMasahiro Yamada				#reset-cells = <1>;
406cd62214dSMasahiro Yamada			};
407cd62214dSMasahiro Yamada		};
408cd62214dSMasahiro Yamada
409cd62214dSMasahiro Yamada		perictrl@59820000 {
410cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-perictrl",
411cd62214dSMasahiro Yamada				     "simple-mfd", "syscon";
412cd62214dSMasahiro Yamada			reg = <0x59820000 0x200>;
413cd62214dSMasahiro Yamada
414cd62214dSMasahiro Yamada			peri_clk: clock {
415cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-peri-clock";
416cd62214dSMasahiro Yamada				#clock-cells = <1>;
417cd62214dSMasahiro Yamada			};
418cd62214dSMasahiro Yamada
419cd62214dSMasahiro Yamada			peri_rst: reset {
420cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-peri-reset";
421cd62214dSMasahiro Yamada				#reset-cells = <1>;
422cd62214dSMasahiro Yamada			};
423cd62214dSMasahiro Yamada		};
424cd62214dSMasahiro Yamada
42552159d27SMasahiro Yamada		emmc: sdhc@5a000000 {
42652159d27SMasahiro Yamada			compatible = "socionext,uniphier-sdhc";
42752159d27SMasahiro Yamada			status = "disabled";
42852159d27SMasahiro Yamada			reg = <0x5a000000 0x800>;
42952159d27SMasahiro Yamada			interrupts = <0 78 4>;
43052159d27SMasahiro Yamada			pinctrl-names = "default";
43152159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_emmc>;
432cd62214dSMasahiro Yamada			clocks = <&sd_clk 1>;
433cd62214dSMasahiro Yamada			reset-names = "host";
434cd62214dSMasahiro Yamada			resets = <&sd_rst 1>;
43552159d27SMasahiro Yamada			bus-width = <8>;
43652159d27SMasahiro Yamada			non-removable;
437cd62214dSMasahiro Yamada			cap-mmc-highspeed;
438cd62214dSMasahiro Yamada			cap-mmc-hw-reset;
439cd62214dSMasahiro Yamada			no-3-3-v;
44052159d27SMasahiro Yamada		};
44152159d27SMasahiro Yamada
44252159d27SMasahiro Yamada		sd: sdhc@5a400000 {
44352159d27SMasahiro Yamada			compatible = "socionext,uniphier-sdhc";
44452159d27SMasahiro Yamada			status = "disabled";
44552159d27SMasahiro Yamada			reg = <0x5a400000 0x800>;
44652159d27SMasahiro Yamada			interrupts = <0 76 4>;
44752159d27SMasahiro Yamada			pinctrl-names = "default", "1.8v";
44852159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_sd>;
44952159d27SMasahiro Yamada			pinctrl-1 = <&pinctrl_sd_1v8>;
450cd62214dSMasahiro Yamada			clocks = <&sd_clk 0>;
45152159d27SMasahiro Yamada			reset-names = "host";
452cd62214dSMasahiro Yamada			resets = <&sd_rst 0>;
45352159d27SMasahiro Yamada			bus-width = <4>;
454cd62214dSMasahiro Yamada			cap-sd-highspeed;
455cd62214dSMasahiro Yamada			sd-uhs-sdr12;
456cd62214dSMasahiro Yamada			sd-uhs-sdr25;
457cd62214dSMasahiro Yamada			sd-uhs-sdr50;
458cd62214dSMasahiro Yamada		};
459cd62214dSMasahiro Yamada
4603e98fc12SMasahiro Yamada		soc_glue: soc-glue@5f800000 {
461cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-soc-glue",
462cd62214dSMasahiro Yamada				     "simple-mfd", "syscon";
463cd62214dSMasahiro Yamada			reg = <0x5f800000 0x2000>;
464cd62214dSMasahiro Yamada
465cd62214dSMasahiro Yamada			pinctrl: pinctrl {
466cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-pinctrl";
467cd62214dSMasahiro Yamada			};
46852159d27SMasahiro Yamada		};
46952159d27SMasahiro Yamada
47046820e3fSMasahiro Yamada		soc-glue@5f900000 {
47146820e3fSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-soc-glue-debug",
47246820e3fSMasahiro Yamada				     "simple-mfd";
47346820e3fSMasahiro Yamada			#address-cells = <1>;
47446820e3fSMasahiro Yamada			#size-cells = <1>;
47546820e3fSMasahiro Yamada			ranges = <0 0x5f900000 0x2000>;
47646820e3fSMasahiro Yamada
47746820e3fSMasahiro Yamada			efuse@100 {
47846820e3fSMasahiro Yamada				compatible = "socionext,uniphier-efuse";
47946820e3fSMasahiro Yamada				reg = <0x100 0x28>;
48046820e3fSMasahiro Yamada			};
48146820e3fSMasahiro Yamada
48246820e3fSMasahiro Yamada			efuse@200 {
48346820e3fSMasahiro Yamada				compatible = "socionext,uniphier-efuse";
48446820e3fSMasahiro Yamada				reg = <0x200 0x58>;
48546820e3fSMasahiro Yamada			};
48646820e3fSMasahiro Yamada		};
48746820e3fSMasahiro Yamada
4886c9e46efSMasahiro Yamada		aidet: aidet@5fc20000 {
4896c9e46efSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-aidet";
49052159d27SMasahiro Yamada			reg = <0x5fc20000 0x200>;
4916c9e46efSMasahiro Yamada			interrupt-controller;
4926c9e46efSMasahiro Yamada			#interrupt-cells = <2>;
49352159d27SMasahiro Yamada		};
49452159d27SMasahiro Yamada
495cd62214dSMasahiro Yamada		timer@60000200 {
496cd62214dSMasahiro Yamada			compatible = "arm,cortex-a9-global-timer";
497cd62214dSMasahiro Yamada			reg = <0x60000200 0x20>;
498cd62214dSMasahiro Yamada			interrupts = <1 11 0xf04>;
499cd62214dSMasahiro Yamada			clocks = <&arm_timer_clk>;
500cd62214dSMasahiro Yamada		};
501cd62214dSMasahiro Yamada
502cd62214dSMasahiro Yamada		timer@60000600 {
503cd62214dSMasahiro Yamada			compatible = "arm,cortex-a9-twd-timer";
504cd62214dSMasahiro Yamada			reg = <0x60000600 0x20>;
505cd62214dSMasahiro Yamada			interrupts = <1 13 0xf04>;
506cd62214dSMasahiro Yamada			clocks = <&arm_timer_clk>;
507cd62214dSMasahiro Yamada		};
508cd62214dSMasahiro Yamada
509cd62214dSMasahiro Yamada		intc: interrupt-controller@60001000 {
510cd62214dSMasahiro Yamada			compatible = "arm,cortex-a9-gic";
511cd62214dSMasahiro Yamada			reg = <0x60001000 0x1000>,
512cd62214dSMasahiro Yamada			      <0x60000100 0x100>;
513cd62214dSMasahiro Yamada			#interrupt-cells = <3>;
514cd62214dSMasahiro Yamada			interrupt-controller;
515cd62214dSMasahiro Yamada		};
516cd62214dSMasahiro Yamada
517cd62214dSMasahiro Yamada		sysctrl@61840000 {
518cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-sysctrl",
519cd62214dSMasahiro Yamada				     "simple-mfd", "syscon";
5207317a940SMasahiro Yamada			reg = <0x61840000 0x10000>;
521cd62214dSMasahiro Yamada
522cd62214dSMasahiro Yamada			sys_clk: clock {
523cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-clock";
524cd62214dSMasahiro Yamada				#clock-cells = <1>;
525cd62214dSMasahiro Yamada			};
526cd62214dSMasahiro Yamada
527cd62214dSMasahiro Yamada			sys_rst: reset {
528cd62214dSMasahiro Yamada				compatible = "socionext,uniphier-pxs2-reset";
529cd62214dSMasahiro Yamada				#reset-cells = <1>;
530cd62214dSMasahiro Yamada			};
531b443fb42SMasahiro Yamada
532b443fb42SMasahiro Yamada			pvtctl: pvtctl {
533b443fb42SMasahiro Yamada				compatible = "socionext,uniphier-pxs2-thermal";
534b443fb42SMasahiro Yamada				interrupts = <0 3 4>;
535b443fb42SMasahiro Yamada				#thermal-sensor-cells = <0>;
536b443fb42SMasahiro Yamada				socionext,tmod-calibration = <0x0f86 0x6844>;
537b443fb42SMasahiro Yamada			};
538cd62214dSMasahiro Yamada		};
539cd62214dSMasahiro Yamada
5403e98fc12SMasahiro Yamada		eth: ethernet@65000000 {
5413e98fc12SMasahiro Yamada			compatible = "socionext,uniphier-pxs2-ave4";
5423e98fc12SMasahiro Yamada			status = "disabled";
5433e98fc12SMasahiro Yamada			reg = <0x65000000 0x8500>;
5443e98fc12SMasahiro Yamada			interrupts = <0 66 4>;
5453e98fc12SMasahiro Yamada			pinctrl-names = "default";
5463e98fc12SMasahiro Yamada			pinctrl-0 = <&pinctrl_ether_rgmii>;
5473c0fa6ceSKunihiko Hayashi			clock-names = "ether";
5483e98fc12SMasahiro Yamada			clocks = <&sys_clk 6>;
5493c0fa6ceSKunihiko Hayashi			reset-names = "ether";
5503e98fc12SMasahiro Yamada			resets = <&sys_rst 6>;
5513e98fc12SMasahiro Yamada			phy-mode = "rgmii";
5523e98fc12SMasahiro Yamada			local-mac-address = [00 00 00 00 00 00];
55369b3d4e9SKunihiko Hayashi			socionext,syscon-phy-mode = <&soc_glue 0>;
5543e98fc12SMasahiro Yamada
5553e98fc12SMasahiro Yamada			mdio: mdio {
5563e98fc12SMasahiro Yamada				#address-cells = <1>;
5573e98fc12SMasahiro Yamada				#size-cells = <0>;
5583e98fc12SMasahiro Yamada			};
5593e98fc12SMasahiro Yamada		};
5603e98fc12SMasahiro Yamada
561cd62214dSMasahiro Yamada		usb0: usb@65b00000 {
562cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-dwc3";
56352159d27SMasahiro Yamada			status = "disabled";
564cd62214dSMasahiro Yamada			reg = <0x65b00000 0x1000>;
565cd62214dSMasahiro Yamada			#address-cells = <1>;
566cd62214dSMasahiro Yamada			#size-cells = <1>;
567cd62214dSMasahiro Yamada			ranges;
56852159d27SMasahiro Yamada			pinctrl-names = "default";
56952159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
570cd62214dSMasahiro Yamada			dwc3@65a00000 {
571cd62214dSMasahiro Yamada				compatible = "snps,dwc3";
572cd62214dSMasahiro Yamada				reg = <0x65a00000 0x10000>;
573cd62214dSMasahiro Yamada				interrupts = <0 134 4>;
5743444d1d4SMasahiro Yamada				dr_mode = "host";
575cd62214dSMasahiro Yamada				tx-fifo-resize;
576cd62214dSMasahiro Yamada			};
57752159d27SMasahiro Yamada		};
57852159d27SMasahiro Yamada
579cd62214dSMasahiro Yamada		usb1: usb@65d00000 {
580cd62214dSMasahiro Yamada			compatible = "socionext,uniphier-pxs2-dwc3";
58152159d27SMasahiro Yamada			status = "disabled";
582cd62214dSMasahiro Yamada			reg = <0x65d00000 0x1000>;
583cd62214dSMasahiro Yamada			#address-cells = <1>;
584cd62214dSMasahiro Yamada			#size-cells = <1>;
585cd62214dSMasahiro Yamada			ranges;
58652159d27SMasahiro Yamada			pinctrl-names = "default";
58752159d27SMasahiro Yamada			pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
588cd62214dSMasahiro Yamada			dwc3@65c00000 {
589cd62214dSMasahiro Yamada				compatible = "snps,dwc3";
590cd62214dSMasahiro Yamada				reg = <0x65c00000 0x10000>;
591cd62214dSMasahiro Yamada				interrupts = <0 137 4>;
5923444d1d4SMasahiro Yamada				dr_mode = "host";
593cd62214dSMasahiro Yamada				tx-fifo-resize;
59452159d27SMasahiro Yamada			};
59552159d27SMasahiro Yamada		};
59652159d27SMasahiro Yamada
597cd62214dSMasahiro Yamada		nand: nand@68000000 {
5984e7f8de4SMasahiro Yamada			compatible = "socionext,uniphier-denali-nand-v5b";
599cd62214dSMasahiro Yamada			status = "disabled";
600cd62214dSMasahiro Yamada			reg-names = "nand_data", "denali_reg";
601cd62214dSMasahiro Yamada			reg = <0x68000000 0x20>, <0x68100000 0x1000>;
602cd62214dSMasahiro Yamada			interrupts = <0 65 4>;
603cd62214dSMasahiro Yamada			pinctrl-names = "default";
6046c9e46efSMasahiro Yamada			pinctrl-0 = <&pinctrl_nand2cs>;
605cd62214dSMasahiro Yamada			clocks = <&sys_clk 2>;
606b443fb42SMasahiro Yamada			resets = <&sys_rst 2>;
607cd62214dSMasahiro Yamada		};
608cd62214dSMasahiro Yamada	};
60952159d27SMasahiro Yamada};
61052159d27SMasahiro Yamada
6116c9e46efSMasahiro Yamada#include "uniphier-pinctrl.dtsi"
612