blob: b9ed613ace9ae45bb5e4f6941d8f36088de55ba4 [file] [log] [blame]
Masahiro Yamada3e98fc12018-04-16 12:35:33 +09001// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier LD20 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada7bdd1552016-03-18 16:41:48 +09007
Masahiro Yamadab443fb42017-11-25 00:25:35 +09008#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/gpio/uniphier-gpio.h>
10#include <dt-bindings/thermal/thermal.h>
11
Masahiro Yamadad9403002017-06-22 16:46:40 +090012/memreserve/ 0x80000000 0x02000000;
Masahiro Yamadac4adc502016-06-29 19:38:56 +090013
Masahiro Yamada7bdd1552016-03-18 16:41:48 +090014/ {
Masahiro Yamada52159d22016-10-07 16:43:00 +090015 compatible = "socionext,uniphier-ld20";
Masahiro Yamada7bdd1552016-03-18 16:41:48 +090016 #address-cells = <2>;
17 #size-cells = <2>;
18 interrupt-parent = <&gic>;
19
20 cpus {
21 #address-cells = <2>;
22 #size-cells = <0>;
23
24 cpu-map {
25 cluster0 {
26 core0 {
27 cpu = <&cpu0>;
28 };
29 core1 {
30 cpu = <&cpu1>;
31 };
32 };
33
34 cluster1 {
35 core0 {
36 cpu = <&cpu2>;
37 };
38 core1 {
39 cpu = <&cpu3>;
40 };
41 };
42 };
43
44 cpu0: cpu@0 {
45 device_type = "cpu";
46 compatible = "arm,cortex-a72", "arm,armv8";
47 reg = <0 0x000>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090048 clocks = <&sys_clk 32>;
49 enable-method = "psci";
50 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +090051 #cooling-cells = <2>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +090052 };
53
54 cpu1: cpu@1 {
55 device_type = "cpu";
56 compatible = "arm,cortex-a72", "arm,armv8";
57 reg = <0 0x001>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090058 clocks = <&sys_clk 32>;
59 enable-method = "psci";
60 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada33aae6b2018-09-10 12:58:32 +090061 #cooling-cells = <2>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +090062 };
63
64 cpu2: cpu@100 {
65 device_type = "cpu";
66 compatible = "arm,cortex-a53", "arm,armv8";
67 reg = <0 0x100>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090068 clocks = <&sys_clk 33>;
69 enable-method = "psci";
70 operating-points-v2 = <&cluster1_opp>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +090071 #cooling-cells = <2>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +090072 };
73
74 cpu3: cpu@101 {
75 device_type = "cpu";
76 compatible = "arm,cortex-a53", "arm,armv8";
77 reg = <0 0x101>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090078 clocks = <&sys_clk 33>;
79 enable-method = "psci";
80 operating-points-v2 = <&cluster1_opp>;
Masahiro Yamada33aae6b2018-09-10 12:58:32 +090081 #cooling-cells = <2>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +090082 };
83 };
84
Masahiro Yamadab443fb42017-11-25 00:25:35 +090085 cluster0_opp: opp-table0 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090086 compatible = "operating-points-v2";
87 opp-shared;
88
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090089 opp-250000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090090 opp-hz = /bits/ 64 <250000000>;
91 clock-latency-ns = <300>;
92 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090093 opp-275000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090094 opp-hz = /bits/ 64 <275000000>;
95 clock-latency-ns = <300>;
96 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090097 opp-500000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090098 opp-hz = /bits/ 64 <500000000>;
99 clock-latency-ns = <300>;
100 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900101 opp-550000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900102 opp-hz = /bits/ 64 <550000000>;
103 clock-latency-ns = <300>;
104 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900105 opp-666667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900106 opp-hz = /bits/ 64 <666667000>;
107 clock-latency-ns = <300>;
108 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900109 opp-733334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900110 opp-hz = /bits/ 64 <733334000>;
111 clock-latency-ns = <300>;
112 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900113 opp-1000000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900114 opp-hz = /bits/ 64 <1000000000>;
115 clock-latency-ns = <300>;
116 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900117 opp-1100000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900118 opp-hz = /bits/ 64 <1100000000>;
119 clock-latency-ns = <300>;
120 };
121 };
122
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900123 cluster1_opp: opp-table1 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900124 compatible = "operating-points-v2";
125 opp-shared;
126
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900127 opp-250000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900128 opp-hz = /bits/ 64 <250000000>;
129 clock-latency-ns = <300>;
130 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900131 opp-275000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900132 opp-hz = /bits/ 64 <275000000>;
133 clock-latency-ns = <300>;
134 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900135 opp-500000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900136 opp-hz = /bits/ 64 <500000000>;
137 clock-latency-ns = <300>;
138 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900139 opp-550000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900140 opp-hz = /bits/ 64 <550000000>;
141 clock-latency-ns = <300>;
142 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900143 opp-666667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900144 opp-hz = /bits/ 64 <666667000>;
145 clock-latency-ns = <300>;
146 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900147 opp-733334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900148 opp-hz = /bits/ 64 <733334000>;
149 clock-latency-ns = <300>;
150 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900151 opp-1000000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900152 opp-hz = /bits/ 64 <1000000000>;
153 clock-latency-ns = <300>;
154 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900155 opp-1100000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900156 opp-hz = /bits/ 64 <1100000000>;
157 clock-latency-ns = <300>;
158 };
159 };
160
161 psci {
162 compatible = "arm,psci-1.0";
163 method = "smc";
164 };
165
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900166 clocks {
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900167 refclk: ref {
168 compatible = "fixed-clock";
169 #clock-cells = <0>;
170 clock-frequency = <25000000>;
171 };
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900172 };
173
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900174 emmc_pwrseq: emmc-pwrseq {
175 compatible = "mmc-pwrseq-emmc";
176 reset-gpios = <&gpio UNIPHIER_GPIO_PORT(3, 2) GPIO_ACTIVE_LOW>;
177 };
178
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900179 timer {
180 compatible = "arm,armv8-timer";
Masahiro Yamada35343a22016-09-22 07:42:23 +0900181 interrupts = <1 13 4>,
182 <1 14 4>,
183 <1 11 4>,
184 <1 10 4>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900185 };
186
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900187 thermal-zones {
188 cpu-thermal {
189 polling-delay-passive = <250>; /* 250ms */
190 polling-delay = <1000>; /* 1000ms */
191 thermal-sensors = <&pvtctl>;
192
193 trips {
194 cpu_crit: cpu-crit {
195 temperature = <110000>; /* 110C */
196 hysteresis = <2000>;
197 type = "critical";
198 };
199 cpu_alert: cpu-alert {
200 temperature = <100000>; /* 100C */
201 hysteresis = <2000>;
202 type = "passive";
203 };
204 };
205
206 cooling-maps {
207 map0 {
208 trip = <&cpu_alert>;
209 cooling-device = <&cpu0
210 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
211 };
212 map1 {
213 trip = <&cpu_alert>;
214 cooling-device = <&cpu2
215 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
216 };
217 };
218 };
219 };
220
Masahiro Yamada7ad79c12017-03-13 00:16:40 +0900221 soc@0 {
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900222 compatible = "simple-bus";
223 #address-cells = <1>;
224 #size-cells = <1>;
225 ranges = <0 0 0 0xffffffff>;
226
Masahiro Yamada2001a812018-12-19 20:03:21 +0900227 spi0: spi@54006000 {
228 compatible = "socionext,uniphier-scssi";
229 status = "disabled";
230 reg = <0x54006000 0x100>;
231 interrupts = <0 39 4>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&pinctrl_spi0>;
234 clocks = <&peri_clk 11>;
235 resets = <&peri_rst 11>;
236 };
237
238 spi1: spi@54006100 {
239 compatible = "socionext,uniphier-scssi";
240 status = "disabled";
241 reg = <0x54006100 0x100>;
242 interrupts = <0 216 4>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&pinctrl_spi1>;
245 clocks = <&peri_clk 11>;
246 resets = <&peri_rst 11>;
247 };
248
249 spi2: spi@54006200 {
250 compatible = "socionext,uniphier-scssi";
251 status = "disabled";
252 reg = <0x54006200 0x100>;
253 interrupts = <0 229 4>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_spi2>;
256 clocks = <&peri_clk 11>;
257 resets = <&peri_rst 11>;
258 };
259
260 spi3: spi@54006300 {
261 compatible = "socionext,uniphier-scssi";
262 status = "disabled";
263 reg = <0x54006300 0x100>;
264 interrupts = <0 230 4>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&pinctrl_spi3>;
267 clocks = <&peri_clk 11>;
268 resets = <&peri_rst 11>;
269 };
270
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900271 serial0: serial@54006800 {
272 compatible = "socionext,uniphier-uart";
273 status = "disabled";
274 reg = <0x54006800 0x40>;
275 interrupts = <0 33 4>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&pinctrl_uart0>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900278 clocks = <&peri_clk 0>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900279 resets = <&peri_rst 0>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900280 };
281
282 serial1: serial@54006900 {
283 compatible = "socionext,uniphier-uart";
284 status = "disabled";
285 reg = <0x54006900 0x40>;
286 interrupts = <0 35 4>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&pinctrl_uart1>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900289 clocks = <&peri_clk 1>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900290 resets = <&peri_rst 1>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900291 };
292
293 serial2: serial@54006a00 {
294 compatible = "socionext,uniphier-uart";
295 status = "disabled";
296 reg = <0x54006a00 0x40>;
297 interrupts = <0 37 4>;
298 pinctrl-names = "default";
299 pinctrl-0 = <&pinctrl_uart2>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900300 clocks = <&peri_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900301 resets = <&peri_rst 2>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900302 };
303
304 serial3: serial@54006b00 {
305 compatible = "socionext,uniphier-uart";
306 status = "disabled";
307 reg = <0x54006b00 0x40>;
308 interrupts = <0 177 4>;
309 pinctrl-names = "default";
310 pinctrl-0 = <&pinctrl_uart3>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900311 clocks = <&peri_clk 3>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900312 resets = <&peri_rst 3>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900313 };
314
Masahiro Yamada27287482017-10-17 21:19:43 +0900315 gpio: gpio@55000000 {
316 compatible = "socionext,uniphier-gpio";
317 reg = <0x55000000 0x200>;
318 interrupt-parent = <&aidet>;
319 interrupt-controller;
320 #interrupt-cells = <2>;
321 gpio-controller;
322 #gpio-cells = <2>;
323 gpio-ranges = <&pinctrl 0 0 0>,
324 <&pinctrl 96 0 0>,
325 <&pinctrl 160 0 0>;
326 gpio-ranges-group-names = "gpio_range0",
327 "gpio_range1",
328 "gpio_range2";
329 ngpios = <205>;
330 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
331 <21 217 3>;
332 };
333
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900334 audio@56000000 {
335 compatible = "socionext,uniphier-ld20-aio";
336 reg = <0x56000000 0x80000>;
337 interrupts = <0 144 4>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&pinctrl_aout1>,
340 <&pinctrl_aoutiec1>;
341 clock-names = "aio";
342 clocks = <&sys_clk 40>;
343 reset-names = "aio";
344 resets = <&sys_rst 40>;
345 #sound-dai-cells = <1>;
346 socionext,syscon = <&soc_glue>;
347
348 i2s_port0: port@0 {
349 i2s_hdmi: endpoint {
350 };
351 };
352
353 i2s_port1: port@1 {
354 i2s_pcmin2: endpoint {
355 };
356 };
357
358 i2s_port2: port@2 {
359 i2s_line: endpoint {
360 dai-format = "i2s";
361 remote-endpoint = <&evea_line>;
362 };
363 };
364
365 i2s_port3: port@3 {
366 i2s_hpcmout1: endpoint {
367 };
368 };
369
370 i2s_port4: port@4 {
371 i2s_hp: endpoint {
372 dai-format = "i2s";
373 remote-endpoint = <&evea_hp>;
374 };
375 };
376
377 spdif_port0: port@5 {
378 spdif_hiecout1: endpoint {
379 };
380 };
381
382 src_port0: port@6 {
383 i2s_epcmout2: endpoint {
384 };
385 };
386
387 src_port1: port@7 {
388 i2s_epcmout3: endpoint {
389 };
390 };
391
392 comp_spdif_port0: port@8 {
393 comp_spdif_hiecout1: endpoint {
394 };
395 };
396 };
397
398 codec@57900000 {
399 compatible = "socionext,uniphier-evea";
400 reg = <0x57900000 0x1000>;
401 clock-names = "evea", "exiv";
402 clocks = <&sys_clk 41>, <&sys_clk 42>;
403 reset-names = "evea", "exiv", "adamv";
404 resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
405 #sound-dai-cells = <1>;
406
407 port@0 {
408 evea_line: endpoint {
409 remote-endpoint = <&i2s_line>;
410 };
411 };
412
413 port@1 {
414 evea_hp: endpoint {
415 remote-endpoint = <&i2s_hp>;
416 };
417 };
418 };
419
Masahiro Yamada27287482017-10-17 21:19:43 +0900420 adamv@57920000 {
421 compatible = "socionext,uniphier-ld20-adamv",
422 "simple-mfd", "syscon";
423 reg = <0x57920000 0x1000>;
424
425 adamv_rst: reset {
426 compatible = "socionext,uniphier-ld20-adamv-reset";
427 #reset-cells = <1>;
428 };
429 };
430
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900431 i2c0: i2c@58780000 {
432 compatible = "socionext,uniphier-fi2c";
433 status = "disabled";
434 reg = <0x58780000 0x80>;
435 #address-cells = <1>;
436 #size-cells = <0>;
437 interrupts = <0 41 4>;
438 pinctrl-names = "default";
439 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900440 clocks = <&peri_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900441 resets = <&peri_rst 4>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900442 clock-frequency = <100000>;
443 };
444
445 i2c1: i2c@58781000 {
446 compatible = "socionext,uniphier-fi2c";
447 status = "disabled";
448 reg = <0x58781000 0x80>;
449 #address-cells = <1>;
450 #size-cells = <0>;
451 interrupts = <0 42 4>;
452 pinctrl-names = "default";
453 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900454 clocks = <&peri_clk 5>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900455 resets = <&peri_rst 5>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900456 clock-frequency = <100000>;
457 };
458
459 i2c2: i2c@58782000 {
460 compatible = "socionext,uniphier-fi2c";
461 reg = <0x58782000 0x80>;
462 #address-cells = <1>;
463 #size-cells = <0>;
464 interrupts = <0 43 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900465 clocks = <&peri_clk 6>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900466 resets = <&peri_rst 6>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900467 clock-frequency = <400000>;
468 };
469
470 i2c3: i2c@58783000 {
471 compatible = "socionext,uniphier-fi2c";
472 status = "disabled";
473 reg = <0x58783000 0x80>;
474 #address-cells = <1>;
475 #size-cells = <0>;
476 interrupts = <0 44 4>;
477 pinctrl-names = "default";
478 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900479 clocks = <&peri_clk 7>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900480 resets = <&peri_rst 7>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900481 clock-frequency = <100000>;
482 };
483
484 i2c4: i2c@58784000 {
485 compatible = "socionext,uniphier-fi2c";
486 status = "disabled";
487 reg = <0x58784000 0x80>;
488 #address-cells = <1>;
489 #size-cells = <0>;
490 interrupts = <0 45 4>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&pinctrl_i2c4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900493 clocks = <&peri_clk 8>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900494 resets = <&peri_rst 8>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900495 clock-frequency = <100000>;
496 };
497
498 i2c5: i2c@58785000 {
499 compatible = "socionext,uniphier-fi2c";
500 reg = <0x58785000 0x80>;
501 #address-cells = <1>;
502 #size-cells = <0>;
503 interrupts = <0 25 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900504 clocks = <&peri_clk 9>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900505 resets = <&peri_rst 9>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900506 clock-frequency = <400000>;
507 };
508
509 system_bus: system-bus@58c00000 {
510 compatible = "socionext,uniphier-system-bus";
511 status = "disabled";
512 reg = <0x58c00000 0x400>;
513 #address-cells = <2>;
514 #size-cells = <1>;
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900515 pinctrl-names = "default";
516 pinctrl-0 = <&pinctrl_system_bus>;
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900517 };
518
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900519 smpctrl@59801000 {
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900520 compatible = "socionext,uniphier-smpctrl";
521 reg = <0x59801000 0x400>;
522 };
523
Masahiro Yamadacd622142016-12-05 18:31:39 +0900524 sdctrl@59810000 {
525 compatible = "socionext,uniphier-ld20-sdctrl",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900526 "simple-mfd", "syscon";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900527 reg = <0x59810000 0x400>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900528
Masahiro Yamadacd622142016-12-05 18:31:39 +0900529 sd_clk: clock {
530 compatible = "socionext,uniphier-ld20-sd-clock";
Masahiro Yamada35343a22016-09-22 07:42:23 +0900531 #clock-cells = <1>;
532 };
533
Masahiro Yamadacd622142016-12-05 18:31:39 +0900534 sd_rst: reset {
535 compatible = "socionext,uniphier-ld20-sd-reset";
Masahiro Yamada35343a22016-09-22 07:42:23 +0900536 #reset-cells = <1>;
537 };
538 };
539
540 perictrl@59820000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900541 compatible = "socionext,uniphier-ld20-perictrl",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900542 "simple-mfd", "syscon";
543 reg = <0x59820000 0x200>;
544
545 peri_clk: clock {
546 compatible = "socionext,uniphier-ld20-peri-clock";
547 #clock-cells = <1>;
548 };
549
550 peri_rst: reset {
551 compatible = "socionext,uniphier-ld20-peri-reset";
552 #reset-cells = <1>;
553 };
Masahiro Yamada3d970872016-04-21 14:43:20 +0900554 };
555
Masahiro Yamadacd622142016-12-05 18:31:39 +0900556 emmc: sdhc@5a000000 {
Masahiro Yamada7a6139c2017-01-04 20:08:37 +0900557 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900558 reg = <0x5a000000 0x400>;
559 interrupts = <0 78 4>;
560 pinctrl-names = "default";
Masahiro Yamada33aae6b2018-09-10 12:58:32 +0900561 pinctrl-0 = <&pinctrl_emmc>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900562 clocks = <&sys_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900563 resets = <&sys_rst 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900564 bus-width = <8>;
565 mmc-ddr-1_8v;
566 mmc-hs200-1_8v;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900567 mmc-pwrseq = <&emmc_pwrseq>;
Masahiro Yamadac3d3e2a2018-05-23 00:30:54 +0900568 cdns,phy-input-delay-legacy = <9>;
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900569 cdns,phy-input-delay-mmc-highspeed = <2>;
570 cdns,phy-input-delay-mmc-ddr = <3>;
571 cdns,phy-dll-delay-sdclk = <21>;
572 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900573 };
574
Masahiro Yamada3d970872016-04-21 14:43:20 +0900575 sd: sdhc@5a400000 {
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900576 compatible = "socionext,uniphier-sd-v3.1.1";
Masahiro Yamada3d970872016-04-21 14:43:20 +0900577 status = "disabled";
578 reg = <0x5a400000 0x800>;
579 interrupts = <0 76 4>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&pinctrl_sd>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900582 clocks = <&sd_clk 0>;
Masahiro Yamada52159d22016-10-07 16:43:00 +0900583 reset-names = "host";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900584 resets = <&sd_rst 0>;
Masahiro Yamada3d970872016-04-21 14:43:20 +0900585 bus-width = <4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900586 cap-sd-highspeed;
Masahiro Yamada3d970872016-04-21 14:43:20 +0900587 };
588
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900589 soc_glue: soc-glue@5f800000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900590 compatible = "socionext,uniphier-ld20-soc-glue",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900591 "simple-mfd", "syscon";
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900592 reg = <0x5f800000 0x2000>;
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900593
594 pinctrl: pinctrl {
595 compatible = "socionext,uniphier-ld20-pinctrl";
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900596 };
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900597 };
598
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900599 soc-glue@5f900000 {
600 compatible = "socionext,uniphier-ld20-soc-glue-debug",
601 "simple-mfd";
602 #address-cells = <1>;
603 #size-cells = <1>;
604 ranges = <0 0x5f900000 0x2000>;
605
606 efuse@100 {
607 compatible = "socionext,uniphier-efuse";
608 reg = <0x100 0x28>;
609 };
610
611 efuse@200 {
612 compatible = "socionext,uniphier-efuse";
613 reg = <0x200 0x68>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900614 #address-cells = <1>;
615 #size-cells = <1>;
616
617 /* USB cells */
618 usb_rterm0: trim@54,4 {
619 reg = <0x54 1>;
620 bits = <4 2>;
621 };
622 usb_rterm1: trim@55,4 {
623 reg = <0x55 1>;
624 bits = <4 2>;
625 };
626 usb_rterm2: trim@58,4 {
627 reg = <0x58 1>;
628 bits = <4 2>;
629 };
630 usb_rterm3: trim@59,4 {
631 reg = <0x59 1>;
632 bits = <4 2>;
633 };
634 usb_sel_t0: trim@54,0 {
635 reg = <0x54 1>;
636 bits = <0 4>;
637 };
638 usb_sel_t1: trim@55,0 {
639 reg = <0x55 1>;
640 bits = <0 4>;
641 };
642 usb_sel_t2: trim@58,0 {
643 reg = <0x58 1>;
644 bits = <0 4>;
645 };
646 usb_sel_t3: trim@59,0 {
647 reg = <0x59 1>;
648 bits = <0 4>;
649 };
650 usb_hs_i0: trim@56,0 {
651 reg = <0x56 1>;
652 bits = <0 4>;
653 };
654 usb_hs_i2: trim@5a,0 {
655 reg = <0x5a 1>;
656 bits = <0 4>;
657 };
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900658 };
659 };
660
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900661 aidet: aidet@5fc20000 {
662 compatible = "socionext,uniphier-ld20-aidet";
Masahiro Yamada1013aef2016-06-29 19:39:02 +0900663 reg = <0x5fc20000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900664 interrupt-controller;
665 #interrupt-cells = <2>;
Masahiro Yamada1013aef2016-06-29 19:39:02 +0900666 };
667
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900668 gic: interrupt-controller@5fe00000 {
669 compatible = "arm,gic-v3";
670 reg = <0x5fe00000 0x10000>, /* GICD */
671 <0x5fe80000 0x80000>; /* GICR */
672 interrupt-controller;
673 #interrupt-cells = <3>;
674 interrupts = <1 9 4>;
675 };
Masahiro Yamada35343a22016-09-22 07:42:23 +0900676
677 sysctrl@61840000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900678 compatible = "socionext,uniphier-ld20-sysctrl",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900679 "simple-mfd", "syscon";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900680 reg = <0x61840000 0x10000>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900681
682 sys_clk: clock {
683 compatible = "socionext,uniphier-ld20-clock";
684 #clock-cells = <1>;
685 };
686
687 sys_rst: reset {
688 compatible = "socionext,uniphier-ld20-reset";
689 #reset-cells = <1>;
690 };
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900691
692 watchdog {
693 compatible = "socionext,uniphier-wdt";
694 };
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900695
696 pvtctl: pvtctl {
697 compatible = "socionext,uniphier-ld20-thermal";
698 interrupts = <0 3 4>;
699 #thermal-sensor-cells = <0>;
700 socionext,tmod-calibration = <0x0f22 0x68ee>;
701 };
Masahiro Yamada35343a22016-09-22 07:42:23 +0900702 };
Masahiro Yamadacd622142016-12-05 18:31:39 +0900703
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900704 eth: ethernet@65000000 {
705 compatible = "socionext,uniphier-ld20-ave4";
706 status = "disabled";
707 reg = <0x65000000 0x8500>;
708 interrupts = <0 66 4>;
709 pinctrl-names = "default";
710 pinctrl-0 = <&pinctrl_ether_rgmii>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900711 clock-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900712 clocks = <&sys_clk 6>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900713 reset-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900714 resets = <&sys_rst 6>;
715 phy-mode = "rgmii";
716 local-mac-address = [00 00 00 00 00 00];
Kunihiko Hayashi69b3d4e2018-05-11 18:49:14 +0900717 socionext,syscon-phy-mode = <&soc_glue 0>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900718
719 mdio: mdio {
720 #address-cells = <1>;
721 #size-cells = <0>;
722 };
723 };
724
Masahiro Yamada2001a812018-12-19 20:03:21 +0900725 _usb: usb@65a00000 {
726 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
727 status = "disabled";
728 reg = <0x65a00000 0xcd00>;
729 interrupt-names = "host";
730 interrupts = <0 134 4>;
731 pinctrl-names = "default";
732 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
733 <&pinctrl_usb2>, <&pinctrl_usb3>;
734 clock-names = "ref", "bus_early", "suspend";
735 clocks = <&sys_clk 14>, <&sys_clk 14>, <&sys_clk 14>;
736 resets = <&usb_rst 15>;
737 phys = <&usb_hsphy0>, <&usb_hsphy1>,
738 <&usb_hsphy2>, <&usb_hsphy3>,
739 <&usb_ssphy0>, <&usb_ssphy1>;
740 dr_mode = "host";
741 };
742
743 usb-glue@65b00000 {
744 compatible = "socionext,uniphier-ld20-dwc3-glue",
745 "simple-mfd";
746 #address-cells = <1>;
747 #size-cells = <1>;
748 ranges = <0 0x65b00000 0x400>;
749
750 usb_rst: reset@0 {
751 compatible = "socionext,uniphier-ld20-usb3-reset";
752 reg = <0x0 0x4>;
753 #reset-cells = <1>;
754 clock-names = "link";
755 clocks = <&sys_clk 14>;
756 reset-names = "link";
757 resets = <&sys_rst 14>;
758 };
759
760 usb_vbus0: regulator@100 {
761 compatible = "socionext,uniphier-ld20-usb3-regulator";
762 reg = <0x100 0x10>;
763 clock-names = "link";
764 clocks = <&sys_clk 14>;
765 reset-names = "link";
766 resets = <&sys_rst 14>;
767 };
768
769 usb_vbus1: regulator@110 {
770 compatible = "socionext,uniphier-ld20-usb3-regulator";
771 reg = <0x110 0x10>;
772 clock-names = "link";
773 clocks = <&sys_clk 14>;
774 reset-names = "link";
775 resets = <&sys_rst 14>;
776 };
777
778 usb_vbus2: regulator@120 {
779 compatible = "socionext,uniphier-ld20-usb3-regulator";
780 reg = <0x120 0x10>;
781 clock-names = "link";
782 clocks = <&sys_clk 14>;
783 reset-names = "link";
784 resets = <&sys_rst 14>;
785 };
786
787 usb_vbus3: regulator@130 {
788 compatible = "socionext,uniphier-ld20-usb3-regulator";
789 reg = <0x130 0x10>;
790 clock-names = "link";
791 clocks = <&sys_clk 14>;
792 reset-names = "link";
793 resets = <&sys_rst 14>;
794 };
795
796 usb_hsphy0: hs-phy@200 {
797 compatible = "socionext,uniphier-ld20-usb3-hsphy";
798 reg = <0x200 0x10>;
799 #phy-cells = <0>;
800 clock-names = "link", "phy";
801 clocks = <&sys_clk 14>, <&sys_clk 16>;
802 reset-names = "link", "phy";
803 resets = <&sys_rst 14>, <&sys_rst 16>;
804 vbus-supply = <&usb_vbus0>;
805 nvmem-cell-names = "rterm", "sel_t", "hs_i";
806 nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>,
807 <&usb_hs_i0>;
808 };
809
810 usb_hsphy1: hs-phy@210 {
811 compatible = "socionext,uniphier-ld20-usb3-hsphy";
812 reg = <0x210 0x10>;
813 #phy-cells = <0>;
814 clock-names = "link", "phy";
815 clocks = <&sys_clk 14>, <&sys_clk 16>;
816 reset-names = "link", "phy";
817 resets = <&sys_rst 14>, <&sys_rst 16>;
818 vbus-supply = <&usb_vbus1>;
819 nvmem-cell-names = "rterm", "sel_t", "hs_i";
820 nvmem-cells = <&usb_rterm1>, <&usb_sel_t1>,
821 <&usb_hs_i0>;
822 };
823
824 usb_hsphy2: hs-phy@220 {
825 compatible = "socionext,uniphier-ld20-usb3-hsphy";
826 reg = <0x220 0x10>;
827 #phy-cells = <0>;
828 clock-names = "link", "phy";
829 clocks = <&sys_clk 14>, <&sys_clk 17>;
830 reset-names = "link", "phy";
831 resets = <&sys_rst 14>, <&sys_rst 17>;
832 vbus-supply = <&usb_vbus2>;
833 nvmem-cell-names = "rterm", "sel_t", "hs_i";
834 nvmem-cells = <&usb_rterm2>, <&usb_sel_t2>,
835 <&usb_hs_i2>;
836 };
837
838 usb_hsphy3: hs-phy@230 {
839 compatible = "socionext,uniphier-ld20-usb3-hsphy";
840 reg = <0x230 0x10>;
841 #phy-cells = <0>;
842 clock-names = "link", "phy";
843 clocks = <&sys_clk 14>, <&sys_clk 17>;
844 reset-names = "link", "phy";
845 resets = <&sys_rst 14>, <&sys_rst 17>;
846 vbus-supply = <&usb_vbus3>;
847 nvmem-cell-names = "rterm", "sel_t", "hs_i";
848 nvmem-cells = <&usb_rterm3>, <&usb_sel_t3>,
849 <&usb_hs_i2>;
850 };
851
852 usb_ssphy0: ss-phy@300 {
853 compatible = "socionext,uniphier-ld20-usb3-ssphy";
854 reg = <0x300 0x10>;
855 #phy-cells = <0>;
856 clock-names = "link", "phy";
857 clocks = <&sys_clk 14>, <&sys_clk 18>;
858 reset-names = "link", "phy";
859 resets = <&sys_rst 14>, <&sys_rst 18>;
860 vbus-supply = <&usb_vbus0>;
861 };
862
863 usb_ssphy1: ss-phy@310 {
864 compatible = "socionext,uniphier-ld20-usb3-ssphy";
865 reg = <0x310 0x10>;
866 #phy-cells = <0>;
867 clock-names = "link", "phy";
868 clocks = <&sys_clk 14>, <&sys_clk 19>;
869 reset-names = "link", "phy";
870 resets = <&sys_rst 14>, <&sys_rst 19>;
871 vbus-supply = <&usb_vbus1>;
872 };
873 };
874
875 /* FIXME: U-Boot own node */
Masahiro Yamadacd622142016-12-05 18:31:39 +0900876 usb: usb@65b00000 {
877 compatible = "socionext,uniphier-ld20-dwc3";
878 reg = <0x65b00000 0x1000>;
879 #address-cells = <1>;
880 #size-cells = <1>;
881 ranges;
882 pinctrl-names = "default";
883 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
884 <&pinctrl_usb2>, <&pinctrl_usb3>;
885 dwc3@65a00000 {
886 compatible = "snps,dwc3";
887 reg = <0x65a00000 0x10000>;
888 interrupts = <0 134 4>;
Masahiro Yamada3444d1d2017-08-13 09:01:17 +0900889 dr_mode = "host";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900890 tx-fifo-resize;
891 };
892 };
893
894 nand: nand@68000000 {
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900895 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900896 status = "disabled";
897 reg-names = "nand_data", "denali_reg";
898 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
899 interrupts = <0 65 4>;
900 pinctrl-names = "default";
901 pinctrl-0 = <&pinctrl_nand>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900902 clock-names = "nand", "nand_x", "ecc";
903 clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900904 resets = <&sys_rst 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900905 };
Masahiro Yamada7bdd1552016-03-18 16:41:48 +0900906 };
907};
908
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900909#include "uniphier-pinctrl.dtsi"
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900910
911&pinctrl_aout1 {
912 drive-strength = <4>; /* default: 3.5mA */
913
914 ao1dacck {
915 pins = "AO1DACCK";
916 drive-strength = <5>; /* 5mA */
917 };
918};
919
920&pinctrl_aoutiec1 {
921 drive-strength = <4>; /* default: 3.5mA */
922
923 ao1arc {
924 pins = "AO1ARC";
925 drive-strength = <11>; /* 11mA */
926 };
927};