blob: 9760f79e7ce3feaa1d2acf15f2806309272c0b28 [file] [log] [blame]
Masahiro Yamada0bc56842018-04-16 12:35:33 +09001// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier PXs2 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadaedbecf52015-08-28 22:33:15 +09007
Masahiro Yamada6c086d02017-11-25 00:25:35 +09008#include <dt-bindings/gpio/uniphier-gpio.h>
9#include <dt-bindings/thermal/thermal.h>
10
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090011/ {
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090012 compatible = "socionext,uniphier-pxs2";
Masahiro Yamada6cd78f72017-03-13 00:16:39 +090013 #address-cells = <1>;
14 #size-cells = <1>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090015
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090019
Masahiro Yamada6c086d02017-11-25 00:25:35 +090020 cpu0: cpu@0 {
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090021 device_type = "cpu";
22 compatible = "arm,cortex-a9";
23 reg = <0>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090024 clocks = <&sys_clk 32>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090025 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090026 next-level-cache = <&l2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090027 operating-points-v2 = <&cpu_opp>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +090028 #cooling-cells = <2>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090029 };
30
Masahiro Yamada6c086d02017-11-25 00:25:35 +090031 cpu1: cpu@1 {
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090032 device_type = "cpu";
33 compatible = "arm,cortex-a9";
34 reg = <1>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090035 clocks = <&sys_clk 32>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090036 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090037 next-level-cache = <&l2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090038 operating-points-v2 = <&cpu_opp>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090039 };
40
Masahiro Yamada6c086d02017-11-25 00:25:35 +090041 cpu2: cpu@2 {
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090042 device_type = "cpu";
43 compatible = "arm,cortex-a9";
44 reg = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090045 clocks = <&sys_clk 32>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090046 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090047 next-level-cache = <&l2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090048 operating-points-v2 = <&cpu_opp>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090049 };
50
Masahiro Yamada6c086d02017-11-25 00:25:35 +090051 cpu3: cpu@3 {
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090052 device_type = "cpu";
53 compatible = "arm,cortex-a9";
54 reg = <3>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090055 clocks = <&sys_clk 32>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090056 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090057 next-level-cache = <&l2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090058 operating-points-v2 = <&cpu_opp>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090059 };
60 };
61
Masahiro Yamada6c086d02017-11-25 00:25:35 +090062 cpu_opp: opp-table {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090063 compatible = "operating-points-v2";
64 opp-shared;
65
Masahiro Yamada552acbf2017-04-20 16:54:44 +090066 opp-100000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090067 opp-hz = /bits/ 64 <100000000>;
68 clock-latency-ns = <300>;
69 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090070 opp-150000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090071 opp-hz = /bits/ 64 <150000000>;
72 clock-latency-ns = <300>;
73 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090074 opp-200000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090075 opp-hz = /bits/ 64 <200000000>;
76 clock-latency-ns = <300>;
77 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090078 opp-300000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090079 opp-hz = /bits/ 64 <300000000>;
80 clock-latency-ns = <300>;
81 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090082 opp-400000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090083 opp-hz = /bits/ 64 <400000000>;
84 clock-latency-ns = <300>;
85 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090086 opp-600000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090087 opp-hz = /bits/ 64 <600000000>;
88 clock-latency-ns = <300>;
89 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090090 opp-800000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090091 opp-hz = /bits/ 64 <800000000>;
92 clock-latency-ns = <300>;
93 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090094 opp-1200000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090095 opp-hz = /bits/ 64 <1200000000>;
96 clock-latency-ns = <300>;
97 };
98 };
99
100 psci {
101 compatible = "arm,psci-0.2";
102 method = "smc";
103 };
104
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900105 clocks {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900106 refclk: ref {
107 compatible = "fixed-clock";
108 #clock-cells = <0>;
109 clock-frequency = <25000000>;
110 };
111
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900112 arm_timer_clk: arm-timer {
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900113 #clock-cells = <0>;
114 compatible = "fixed-clock";
115 clock-frequency = <50000000>;
116 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900117 };
118
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900119 thermal-zones {
120 cpu-thermal {
121 polling-delay-passive = <250>; /* 250ms */
122 polling-delay = <1000>; /* 1000ms */
123 thermal-sensors = <&pvtctl>;
124
125 trips {
126 cpu_crit: cpu-crit {
127 temperature = <95000>; /* 95C */
128 hysteresis = <2000>;
129 type = "critical";
130 };
131 cpu_alert: cpu-alert {
132 temperature = <85000>; /* 85C */
133 hysteresis = <2000>;
134 type = "passive";
135 };
136 };
137
138 cooling-maps {
139 map {
140 trip = <&cpu_alert>;
141 cooling-device = <&cpu0
142 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
143 };
144 };
145 };
146 };
147
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900148 soc {
149 compatible = "simple-bus";
150 #address-cells = <1>;
151 #size-cells = <1>;
152 ranges;
153 interrupt-parent = <&intc>;
Masahiro Yamadab36f3052015-12-16 10:54:08 +0900154
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900155 l2: l2-cache@500c0000 {
156 compatible = "socionext,uniphier-system-cache";
157 reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
158 <0x506c0000 0x400>;
159 interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
160 cache-unified;
161 cache-size = <(1280 * 1024)>;
162 cache-sets = <512>;
163 cache-line-size = <128>;
164 cache-level = <2>;
165 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900166
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900167 serial0: serial@54006800 {
168 compatible = "socionext,uniphier-uart";
169 status = "disabled";
170 reg = <0x54006800 0x40>;
171 interrupts = <0 33 4>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&pinctrl_uart0>;
174 clocks = <&peri_clk 0>;
175 clock-frequency = <88900000>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900176 resets = <&peri_rst 0>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900177 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900178
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900179 serial1: serial@54006900 {
180 compatible = "socionext,uniphier-uart";
181 status = "disabled";
182 reg = <0x54006900 0x40>;
183 interrupts = <0 35 4>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&pinctrl_uart1>;
186 clocks = <&peri_clk 1>;
187 clock-frequency = <88900000>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900188 resets = <&peri_rst 1>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900189 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900190
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900191 serial2: serial@54006a00 {
192 compatible = "socionext,uniphier-uart";
193 status = "disabled";
194 reg = <0x54006a00 0x40>;
195 interrupts = <0 37 4>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_uart2>;
198 clocks = <&peri_clk 2>;
199 clock-frequency = <88900000>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900200 resets = <&peri_rst 2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900201 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900202
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900203 serial3: serial@54006b00 {
204 compatible = "socionext,uniphier-uart";
205 status = "disabled";
206 reg = <0x54006b00 0x40>;
207 interrupts = <0 177 4>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_uart3>;
210 clocks = <&peri_clk 3>;
211 clock-frequency = <88900000>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900212 resets = <&peri_rst 3>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900213 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900214
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900215 gpio: gpio@55000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900216 compatible = "socionext,uniphier-gpio";
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900217 reg = <0x55000000 0x200>;
218 interrupt-parent = <&aidet>;
219 interrupt-controller;
220 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900221 gpio-controller;
222 #gpio-cells = <2>;
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900223 gpio-ranges = <&pinctrl 0 0 0>,
224 <&pinctrl 96 0 0>;
225 gpio-ranges-group-names = "gpio_range0",
226 "gpio_range1";
227 ngpios = <232>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900228 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
229 <21 217 3>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900230 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900231
Masahiro Yamada0bc56842018-04-16 12:35:33 +0900232 audio@56000000 {
233 compatible = "socionext,uniphier-pxs2-aio";
234 reg = <0x56000000 0x80000>;
235 interrupts = <0 144 4>;
236 pinctrl-names = "default";
237 pinctrl-0 = <&pinctrl_ain1>,
238 <&pinctrl_ain2>,
239 <&pinctrl_ainiec1>,
240 <&pinctrl_aout2>,
241 <&pinctrl_aout3>,
242 <&pinctrl_aoutiec1>,
243 <&pinctrl_aoutiec2>;
244 clock-names = "aio";
245 clocks = <&sys_clk 40>;
246 reset-names = "aio";
247 resets = <&sys_rst 40>;
248 #sound-dai-cells = <1>;
249 socionext,syscon = <&soc_glue>;
250
251 i2s_port0: port@0 {
252 i2s_hdmi: endpoint {
253 };
254 };
255
256 i2s_port1: port@1 {
257 i2s_line: endpoint {
258 };
259 };
260
261 i2s_port2: port@2 {
262 i2s_aux: endpoint {
263 };
264 };
265
266 spdif_port0: port@3 {
267 spdif_hiecout1: endpoint {
268 };
269 };
270
271 spdif_port1: port@4 {
272 spdif_iecout1: endpoint {
273 };
274 };
275
276 comp_spdif_port0: port@5 {
277 comp_spdif_hiecout1: endpoint {
278 };
279 };
280
281 comp_spdif_port1: port@6 {
282 comp_spdif_iecout1: endpoint {
283 };
284 };
285 };
286
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900287 i2c0: i2c@58780000 {
288 compatible = "socionext,uniphier-fi2c";
289 status = "disabled";
290 reg = <0x58780000 0x80>;
291 #address-cells = <1>;
292 #size-cells = <0>;
293 interrupts = <0 41 4>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900296 clocks = <&peri_clk 4>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900297 resets = <&peri_rst 4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900298 clock-frequency = <100000>;
299 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900300
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900301 i2c1: i2c@58781000 {
302 compatible = "socionext,uniphier-fi2c";
303 status = "disabled";
304 reg = <0x58781000 0x80>;
305 #address-cells = <1>;
306 #size-cells = <0>;
307 interrupts = <0 42 4>;
308 pinctrl-names = "default";
309 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900310 clocks = <&peri_clk 5>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900311 resets = <&peri_rst 5>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900312 clock-frequency = <100000>;
313 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900314
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900315 i2c2: i2c@58782000 {
316 compatible = "socionext,uniphier-fi2c";
317 status = "disabled";
318 reg = <0x58782000 0x80>;
319 #address-cells = <1>;
320 #size-cells = <0>;
321 interrupts = <0 43 4>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&pinctrl_i2c2>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900324 clocks = <&peri_clk 6>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900325 resets = <&peri_rst 6>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900326 clock-frequency = <100000>;
327 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900328
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900329 i2c3: i2c@58783000 {
330 compatible = "socionext,uniphier-fi2c";
331 status = "disabled";
332 reg = <0x58783000 0x80>;
333 #address-cells = <1>;
334 #size-cells = <0>;
335 interrupts = <0 44 4>;
336 pinctrl-names = "default";
337 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900338 clocks = <&peri_clk 7>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900339 resets = <&peri_rst 7>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900340 clock-frequency = <100000>;
341 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900342
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900343 /* chip-internal connection for DMD */
344 i2c4: i2c@58784000 {
345 compatible = "socionext,uniphier-fi2c";
346 reg = <0x58784000 0x80>;
347 #address-cells = <1>;
348 #size-cells = <0>;
349 interrupts = <0 45 4>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900350 clocks = <&peri_clk 8>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900351 resets = <&peri_rst 8>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900352 clock-frequency = <400000>;
353 };
Masahiro Yamada2707e832016-06-29 19:39:02 +0900354
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900355 /* chip-internal connection for STM */
356 i2c5: i2c@58785000 {
357 compatible = "socionext,uniphier-fi2c";
358 reg = <0x58785000 0x80>;
359 #address-cells = <1>;
360 #size-cells = <0>;
361 interrupts = <0 25 4>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900362 clocks = <&peri_clk 9>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900363 resets = <&peri_rst 9>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900364 clock-frequency = <400000>;
365 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900366
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900367 /* chip-internal connection for HDMI */
368 i2c6: i2c@58786000 {
369 compatible = "socionext,uniphier-fi2c";
370 reg = <0x58786000 0x80>;
371 #address-cells = <1>;
372 #size-cells = <0>;
373 interrupts = <0 26 4>;
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900374 clocks = <&peri_clk 10>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900375 resets = <&peri_rst 10>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900376 clock-frequency = <400000>;
377 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900378
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900379 system_bus: system-bus@58c00000 {
380 compatible = "socionext,uniphier-system-bus";
381 status = "disabled";
382 reg = <0x58c00000 0x400>;
383 #address-cells = <2>;
384 #size-cells = <1>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&pinctrl_system_bus>;
387 };
Masahiro Yamada224e2f72016-02-02 21:11:33 +0900388
Masahiro Yamada938ab162017-05-15 14:23:46 +0900389 smpctrl@59801000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900390 compatible = "socionext,uniphier-smpctrl";
391 reg = <0x59801000 0x400>;
392 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900393
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900394 sdctrl@59810000 {
395 compatible = "socionext,uniphier-pxs2-sdctrl",
396 "simple-mfd", "syscon";
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900397 reg = <0x59810000 0x400>;
Masahiro Yamadaa4e54cc2015-11-04 21:56:07 +0900398
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900399 sd_clk: clock {
400 compatible = "socionext,uniphier-pxs2-sd-clock";
401 #clock-cells = <1>;
402 };
Masahiro Yamadaa4e54cc2015-11-04 21:56:07 +0900403
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900404 sd_rst: reset {
405 compatible = "socionext,uniphier-pxs2-sd-reset";
406 #reset-cells = <1>;
407 };
408 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900409
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900410 perictrl@59820000 {
411 compatible = "socionext,uniphier-pxs2-perictrl",
412 "simple-mfd", "syscon";
413 reg = <0x59820000 0x200>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900414
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900415 peri_clk: clock {
416 compatible = "socionext,uniphier-pxs2-peri-clock";
417 #clock-cells = <1>;
418 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900419
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900420 peri_rst: reset {
421 compatible = "socionext,uniphier-pxs2-peri-reset";
422 #reset-cells = <1>;
423 };
424 };
Masahiro Yamada1d5df7b2016-02-02 21:11:36 +0900425
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900426 emmc: sdhc@5a000000 {
427 compatible = "socionext,uniphier-sdhc";
428 status = "disabled";
429 reg = <0x5a000000 0x800>;
430 interrupts = <0 78 4>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&pinctrl_emmc>;
433 clocks = <&sd_clk 1>;
434 reset-names = "host";
435 resets = <&sd_rst 1>;
436 bus-width = <8>;
437 non-removable;
438 cap-mmc-highspeed;
439 cap-mmc-hw-reset;
440 no-3-3-v;
441 };
Masahiro Yamada80951832016-02-02 21:11:35 +0900442
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900443 sd: sdhc@5a400000 {
444 compatible = "socionext,uniphier-sdhc";
445 status = "disabled";
446 reg = <0x5a400000 0x800>;
447 interrupts = <0 76 4>;
448 pinctrl-names = "default", "1.8v";
449 pinctrl-0 = <&pinctrl_sd>;
450 pinctrl-1 = <&pinctrl_sd_1v8>;
451 clocks = <&sd_clk 0>;
452 reset-names = "host";
453 resets = <&sd_rst 0>;
454 bus-width = <4>;
455 cap-sd-highspeed;
456 sd-uhs-sdr12;
457 sd-uhs-sdr25;
458 sd-uhs-sdr50;
459 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900460
Masahiro Yamada0bc56842018-04-16 12:35:33 +0900461 soc_glue: soc-glue@5f800000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900462 compatible = "socionext,uniphier-pxs2-soc-glue",
463 "simple-mfd", "syscon";
464 reg = <0x5f800000 0x2000>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900465
466 pinctrl: pinctrl {
467 compatible = "socionext,uniphier-pxs2-pinctrl";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900468 };
469 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900470
Masahiro Yamadab61327d2018-03-15 11:43:03 +0900471 soc-glue@5f900000 {
472 compatible = "socionext,uniphier-pxs2-soc-glue-debug",
473 "simple-mfd";
474 #address-cells = <1>;
475 #size-cells = <1>;
476 ranges = <0 0x5f900000 0x2000>;
477
478 efuse@100 {
479 compatible = "socionext,uniphier-efuse";
480 reg = <0x100 0x28>;
481 };
482
483 efuse@200 {
484 compatible = "socionext,uniphier-efuse";
485 reg = <0x200 0x58>;
486 };
487 };
488
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900489 aidet: aidet@5fc20000 {
490 compatible = "socionext,uniphier-pxs2-aidet";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900491 reg = <0x5fc20000 0x200>;
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900492 interrupt-controller;
493 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900494 };
495
496 timer@60000200 {
497 compatible = "arm,cortex-a9-global-timer";
498 reg = <0x60000200 0x20>;
499 interrupts = <1 11 0xf04>;
500 clocks = <&arm_timer_clk>;
501 };
502
503 timer@60000600 {
504 compatible = "arm,cortex-a9-twd-timer";
505 reg = <0x60000600 0x20>;
506 interrupts = <1 13 0xf04>;
507 clocks = <&arm_timer_clk>;
508 };
509
510 intc: interrupt-controller@60001000 {
511 compatible = "arm,cortex-a9-gic";
512 reg = <0x60001000 0x1000>,
513 <0x60000100 0x100>;
514 #interrupt-cells = <3>;
515 interrupt-controller;
516 };
517
518 sysctrl@61840000 {
519 compatible = "socionext,uniphier-pxs2-sysctrl",
520 "simple-mfd", "syscon";
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900521 reg = <0x61840000 0x10000>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900522
523 sys_clk: clock {
524 compatible = "socionext,uniphier-pxs2-clock";
525 #clock-cells = <1>;
526 };
527
528 sys_rst: reset {
529 compatible = "socionext,uniphier-pxs2-reset";
530 #reset-cells = <1>;
531 };
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900532
533 pvtctl: pvtctl {
534 compatible = "socionext,uniphier-pxs2-thermal";
535 interrupts = <0 3 4>;
536 #thermal-sensor-cells = <0>;
537 socionext,tmod-calibration = <0x0f86 0x6844>;
538 };
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900539 };
540
Masahiro Yamada0bc56842018-04-16 12:35:33 +0900541 eth: ethernet@65000000 {
542 compatible = "socionext,uniphier-pxs2-ave4";
543 status = "disabled";
544 reg = <0x65000000 0x8500>;
545 interrupts = <0 66 4>;
546 pinctrl-names = "default";
547 pinctrl-0 = <&pinctrl_ether_rgmii>;
548 clocks = <&sys_clk 6>;
549 resets = <&sys_rst 6>;
550 phy-mode = "rgmii";
551 local-mac-address = [00 00 00 00 00 00];
552
553 mdio: mdio {
554 #address-cells = <1>;
555 #size-cells = <0>;
556 };
557 };
558
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900559 usb0: usb@65b00000 {
560 compatible = "socionext,uniphier-pxs2-dwc3";
561 status = "disabled";
562 reg = <0x65b00000 0x1000>;
563 #address-cells = <1>;
564 #size-cells = <1>;
565 ranges;
566 pinctrl-names = "default";
567 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
568 dwc3@65a00000 {
569 compatible = "snps,dwc3";
570 reg = <0x65a00000 0x10000>;
571 interrupts = <0 134 4>;
Masahiro Yamadad2c8abd2017-08-13 09:01:17 +0900572 dr_mode = "host";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900573 tx-fifo-resize;
574 };
575 };
576
577 usb1: usb@65d00000 {
578 compatible = "socionext,uniphier-pxs2-dwc3";
579 status = "disabled";
580 reg = <0x65d00000 0x1000>;
581 #address-cells = <1>;
582 #size-cells = <1>;
583 ranges;
584 pinctrl-names = "default";
585 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
586 dwc3@65c00000 {
587 compatible = "snps,dwc3";
588 reg = <0x65c00000 0x10000>;
589 interrupts = <0 137 4>;
Masahiro Yamadad2c8abd2017-08-13 09:01:17 +0900590 dr_mode = "host";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900591 tx-fifo-resize;
592 };
593 };
594
595 nand: nand@68000000 {
Masahiro Yamada552acbf2017-04-20 16:54:44 +0900596 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900597 status = "disabled";
598 reg-names = "nand_data", "denali_reg";
599 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
600 interrupts = <0 65 4>;
601 pinctrl-names = "default";
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900602 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900603 clocks = <&sys_clk 2>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900604 resets = <&sys_rst 2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900605 };
606 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900607};
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900608
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900609#include "uniphier-pinctrl.dtsi"