blob: 75dfd1ff3b6b25ff60094e31f6d6c3774be19052 [file] [log] [blame]
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +09001/*
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier LD11 SoC
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +09003 *
Masahiro Yamada1174603f2016-06-29 19:38:56 +09004 * Copyright (C) 2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +09006 *
Masahiro Yamada31a17882017-06-22 16:46:40 +09007 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +09008 */
9
Masahiro Yamada31a17882017-06-22 16:46:40 +090010/memreserve/ 0x80000000 0x02000000;
Masahiro Yamada1174603f2016-06-29 19:38:56 +090011
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090012/ {
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090013 compatible = "socionext,uniphier-ld11";
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090014 #address-cells = <2>;
15 #size-cells = <2>;
16 interrupt-parent = <&gic>;
17
18 cpus {
19 #address-cells = <2>;
20 #size-cells = <0>;
21
Masahiro Yamada1174603f2016-06-29 19:38:56 +090022 cpu-map {
23 cluster0 {
24 core0 {
25 cpu = <&cpu0>;
26 };
27 core1 {
28 cpu = <&cpu1>;
29 };
30 };
31 };
32
33 cpu0: cpu@0 {
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090034 device_type = "cpu";
35 compatible = "arm,cortex-a53", "arm,armv8";
36 reg = <0 0x000>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090037 clocks = <&sys_clk 33>;
38 enable-method = "psci";
39 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090040 };
41
Masahiro Yamada1174603f2016-06-29 19:38:56 +090042 cpu1: cpu@1 {
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090043 device_type = "cpu";
44 compatible = "arm,cortex-a53", "arm,armv8";
45 reg = <0 0x001>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090046 clocks = <&sys_clk 33>;
47 enable-method = "psci";
48 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090049 };
50 };
51
Masahiro Yamada6e485b22016-12-05 18:31:39 +090052 cluster0_opp: opp_table {
53 compatible = "operating-points-v2";
54 opp-shared;
55
Masahiro Yamada552acbf2017-04-20 16:54:44 +090056 opp-245000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090057 opp-hz = /bits/ 64 <245000000>;
58 clock-latency-ns = <300>;
59 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090060 opp-250000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090061 opp-hz = /bits/ 64 <250000000>;
62 clock-latency-ns = <300>;
63 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090064 opp-490000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090065 opp-hz = /bits/ 64 <490000000>;
66 clock-latency-ns = <300>;
67 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090068 opp-500000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090069 opp-hz = /bits/ 64 <500000000>;
70 clock-latency-ns = <300>;
71 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090072 opp-653334000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090073 opp-hz = /bits/ 64 <653334000>;
74 clock-latency-ns = <300>;
75 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090076 opp-666667000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090077 opp-hz = /bits/ 64 <666667000>;
78 clock-latency-ns = <300>;
79 };
Masahiro Yamada552acbf2017-04-20 16:54:44 +090080 opp-980000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090081 opp-hz = /bits/ 64 <980000000>;
82 clock-latency-ns = <300>;
83 };
84 };
85
86 psci {
87 compatible = "arm,psci-1.0";
88 method = "smc";
89 };
90
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090091 clocks {
Masahiro Yamada1174603f2016-06-29 19:38:56 +090092 refclk: ref {
93 compatible = "fixed-clock";
94 #clock-cells = <0>;
95 clock-frequency = <25000000>;
96 };
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +090097 };
98
99 timer {
100 compatible = "arm,armv8-timer";
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900101 interrupts = <1 13 4>,
102 <1 14 4>,
103 <1 11 4>,
104 <1 10 4>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900105 };
106
Masahiro Yamadace6ca3c2017-03-13 00:16:40 +0900107 soc@0 {
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900108 compatible = "simple-bus";
109 #address-cells = <1>;
110 #size-cells = <1>;
111 ranges = <0 0 0 0xffffffff>;
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900112 u-boot,dm-pre-reloc;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900113
114 serial0: serial@54006800 {
115 compatible = "socionext,uniphier-uart";
116 status = "disabled";
117 reg = <0x54006800 0x40>;
118 interrupts = <0 33 4>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pinctrl_uart0>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900121 clocks = <&peri_clk 0>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900122 clock-frequency = <58820000>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900123 };
124
125 serial1: serial@54006900 {
126 compatible = "socionext,uniphier-uart";
127 status = "disabled";
128 reg = <0x54006900 0x40>;
129 interrupts = <0 35 4>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_uart1>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900132 clocks = <&peri_clk 1>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900133 clock-frequency = <58820000>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900134 };
135
136 serial2: serial@54006a00 {
137 compatible = "socionext,uniphier-uart";
138 status = "disabled";
139 reg = <0x54006a00 0x40>;
140 interrupts = <0 37 4>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_uart2>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900143 clocks = <&peri_clk 2>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900144 clock-frequency = <58820000>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900145 };
146
147 serial3: serial@54006b00 {
148 compatible = "socionext,uniphier-uart";
149 status = "disabled";
150 reg = <0x54006b00 0x40>;
151 interrupts = <0 177 4>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_uart3>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900154 clocks = <&peri_clk 3>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900155 clock-frequency = <58820000>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900156 };
157
158 i2c0: i2c@58780000 {
159 compatible = "socionext,uniphier-fi2c";
160 status = "disabled";
161 reg = <0x58780000 0x80>;
162 #address-cells = <1>;
163 #size-cells = <0>;
164 interrupts = <0 41 4>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900167 clocks = <&peri_clk 4>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900168 clock-frequency = <100000>;
169 };
170
171 i2c1: i2c@58781000 {
172 compatible = "socionext,uniphier-fi2c";
173 status = "disabled";
174 reg = <0x58781000 0x80>;
175 #address-cells = <1>;
176 #size-cells = <0>;
177 interrupts = <0 42 4>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900180 clocks = <&peri_clk 5>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900181 clock-frequency = <100000>;
182 };
183
184 i2c2: i2c@58782000 {
185 compatible = "socionext,uniphier-fi2c";
186 reg = <0x58782000 0x80>;
187 #address-cells = <1>;
188 #size-cells = <0>;
189 interrupts = <0 43 4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900190 clocks = <&peri_clk 6>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900191 clock-frequency = <400000>;
192 };
193
194 i2c3: i2c@58783000 {
195 compatible = "socionext,uniphier-fi2c";
196 status = "disabled";
197 reg = <0x58783000 0x80>;
198 #address-cells = <1>;
199 #size-cells = <0>;
200 interrupts = <0 44 4>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900203 clocks = <&peri_clk 7>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900204 clock-frequency = <100000>;
205 };
206
207 i2c4: i2c@58784000 {
208 compatible = "socionext,uniphier-fi2c";
209 status = "disabled";
210 reg = <0x58784000 0x80>;
211 #address-cells = <1>;
212 #size-cells = <0>;
213 interrupts = <0 45 4>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&pinctrl_i2c4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900216 clocks = <&peri_clk 8>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900217 clock-frequency = <100000>;
218 };
219
220 i2c5: i2c@58785000 {
221 compatible = "socionext,uniphier-fi2c";
222 reg = <0x58785000 0x80>;
223 #address-cells = <1>;
224 #size-cells = <0>;
225 interrupts = <0 25 4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900226 clocks = <&peri_clk 9>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900227 clock-frequency = <400000>;
228 };
229
230 system_bus: system-bus@58c00000 {
231 compatible = "socionext,uniphier-system-bus";
232 status = "disabled";
233 reg = <0x58c00000 0x400>;
234 #address-cells = <2>;
235 #size-cells = <1>;
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900236 pinctrl-names = "default";
237 pinctrl-0 = <&pinctrl_system_bus>;
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900238 };
239
Masahiro Yamada938ab162017-05-15 14:23:46 +0900240 smpctrl@59801000 {
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900241 compatible = "socionext,uniphier-smpctrl";
242 reg = <0x59801000 0x400>;
243 };
244
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900245 sdctrl@59810000 {
246 compatible = "socionext,uniphier-ld11-sdctrl",
247 "simple-mfd", "syscon";
248 reg = <0x59810000 0x400>;
249
250 sd_rst: reset {
251 compatible = "socionext,uniphier-ld11-sd-reset";
252 #reset-cells = <1>;
253 };
254 };
255
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900256 perictrl@59820000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900257 compatible = "socionext,uniphier-ld11-perictrl",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900258 "simple-mfd", "syscon";
259 reg = <0x59820000 0x200>;
260
261 peri_clk: clock {
262 compatible = "socionext,uniphier-ld11-peri-clock";
263 #clock-cells = <1>;
264 };
265
266 peri_rst: reset {
267 compatible = "socionext,uniphier-ld11-peri-reset";
268 #reset-cells = <1>;
269 };
270 };
271
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900272 emmc: sdhc@5a000000 {
Masahiro Yamada697dd9c2017-01-04 20:08:37 +0900273 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900274 reg = <0x5a000000 0x400>;
275 interrupts = <0 78 4>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&pinctrl_emmc_1v8>;
278 clocks = <&sys_clk 4>;
279 bus-width = <8>;
280 mmc-ddr-1_8v;
281 mmc-hs200-1_8v;
Masahiro Yamada552acbf2017-04-20 16:54:44 +0900282 cdns,phy-input-delay-legacy = <4>;
283 cdns,phy-input-delay-mmc-highspeed = <2>;
284 cdns,phy-input-delay-mmc-ddr = <3>;
285 cdns,phy-dll-delay-sdclk = <21>;
286 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900287 };
288
Masahiro Yamada09b02752016-05-24 21:14:03 +0900289 usb0: usb@5a800100 {
290 compatible = "socionext,uniphier-ehci", "generic-ehci";
291 status = "disabled";
292 reg = <0x5a800100 0x100>;
293 interrupts = <0 243 4>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&pinctrl_usb0>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +0900296 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
297 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
298 <&mio_rst 12>;
Masahiro Yamada09b02752016-05-24 21:14:03 +0900299 };
300
301 usb1: usb@5a810100 {
302 compatible = "socionext,uniphier-ehci", "generic-ehci";
303 status = "disabled";
304 reg = <0x5a810100 0x100>;
305 interrupts = <0 244 4>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_usb1>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +0900308 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
309 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
310 <&mio_rst 13>;
Masahiro Yamada09b02752016-05-24 21:14:03 +0900311 };
312
313 usb2: usb@5a820100 {
314 compatible = "socionext,uniphier-ehci", "generic-ehci";
315 status = "disabled";
316 reg = <0x5a820100 0x100>;
317 interrupts = <0 245 4>;
318 pinctrl-names = "default";
319 pinctrl-0 = <&pinctrl_usb2>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +0900320 clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
321 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
322 <&mio_rst 14>;
Masahiro Yamada09b02752016-05-24 21:14:03 +0900323 };
324
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900325 mioctrl@5b3e0000 {
Masahiro Yamadabf3b7212017-03-13 00:16:41 +0900326 compatible = "socionext,uniphier-ld11-mioctrl",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900327 "simple-mfd", "syscon";
Masahiro Yamada09b02752016-05-24 21:14:03 +0900328 reg = <0x5b3e0000 0x800>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900329
330 mio_clk: clock {
331 compatible = "socionext,uniphier-ld11-mio-clock";
332 #clock-cells = <1>;
333 };
334
335 mio_rst: reset {
336 compatible = "socionext,uniphier-ld11-mio-reset";
337 #reset-cells = <1>;
338 resets = <&sys_rst 7>;
339 };
Masahiro Yamada09b02752016-05-24 21:14:03 +0900340 };
341
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900342 soc-glue@5f800000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900343 compatible = "socionext,uniphier-ld11-soc-glue",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900344 "simple-mfd", "syscon";
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900345 reg = <0x5f800000 0x2000>;
346 u-boot,dm-pre-reloc;
347
348 pinctrl: pinctrl {
349 compatible = "socionext,uniphier-ld11-pinctrl";
350 u-boot,dm-pre-reloc;
351 };
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900352 };
353
Masahiro Yamada2707e832016-06-29 19:39:02 +0900354 aidet@5fc20000 {
355 compatible = "simple-mfd", "syscon";
356 reg = <0x5fc20000 0x200>;
357 };
358
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900359 gic: interrupt-controller@5fe00000 {
360 compatible = "arm,gic-v3";
361 reg = <0x5fe00000 0x10000>, /* GICD */
362 <0x5fe40000 0x80000>; /* GICR */
363 interrupt-controller;
364 #interrupt-cells = <3>;
365 interrupts = <1 9 4>;
366 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900367
368 sysctrl@61840000 {
369 compatible = "socionext,uniphier-ld11-sysctrl",
370 "simple-mfd", "syscon";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900371 reg = <0x61840000 0x10000>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900372
373 sys_clk: clock {
374 compatible = "socionext,uniphier-ld11-clock";
375 #clock-cells = <1>;
376 };
377
378 sys_rst: reset {
379 compatible = "socionext,uniphier-ld11-reset";
380 #reset-cells = <1>;
381 };
382 };
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900383
384 nand: nand@68000000 {
Masahiro Yamada552acbf2017-04-20 16:54:44 +0900385 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900386 status = "disabled";
387 reg-names = "nand_data", "denali_reg";
388 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
389 interrupts = <0 65 4>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&pinctrl_nand>;
392 clocks = <&sys_clk 2>;
393 nand-ecc-strength = <8>;
394 };
Masahiro Yamadaf0c34fc2016-03-18 16:41:49 +0900395 };
396};
397
398/include/ "uniphier-pinctrl.dtsi"