blob: 0f172c31db69d531ce5bffeaccbd91427aa44a1b [file] [log] [blame]
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +09001/*
Masahiro Yamada52159d22016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier LD11 SoC
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +09003 *
Masahiro Yamadac4adc502016-06-29 19:38:56 +09004 * Copyright (C) 2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +09006 *
Masahiro Yamadad9403002017-06-22 16:46:40 +09007 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +09008 */
9
Masahiro Yamadad9403002017-06-22 16:46:40 +090010/memreserve/ 0x80000000 0x02000000;
Masahiro Yamadac4adc502016-06-29 19:38:56 +090011
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +090012/ {
Masahiro Yamada52159d22016-10-07 16:43:00 +090013 compatible = "socionext,uniphier-ld11";
Masahiro Yamadafc26b7b2016-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 Yamadac4adc502016-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 Yamadafc26b7b2016-03-18 16:41:49 +090034 device_type = "cpu";
35 compatible = "arm,cortex-a53", "arm,armv8";
36 reg = <0 0x000>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090037 clocks = <&sys_clk 33>;
38 enable-method = "psci";
39 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +090040 };
41
Masahiro Yamadac4adc502016-06-29 19:38:56 +090042 cpu1: cpu@1 {
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +090043 device_type = "cpu";
44 compatible = "arm,cortex-a53", "arm,armv8";
45 reg = <0 0x001>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090046 clocks = <&sys_clk 33>;
47 enable-method = "psci";
48 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +090049 };
50 };
51
Masahiro Yamadacd622142016-12-05 18:31:39 +090052 cluster0_opp: opp_table {
53 compatible = "operating-points-v2";
54 opp-shared;
55
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090056 opp-245000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090057 opp-hz = /bits/ 64 <245000000>;
58 clock-latency-ns = <300>;
59 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090060 opp-250000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090061 opp-hz = /bits/ 64 <250000000>;
62 clock-latency-ns = <300>;
63 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090064 opp-490000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090065 opp-hz = /bits/ 64 <490000000>;
66 clock-latency-ns = <300>;
67 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090068 opp-500000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090069 opp-hz = /bits/ 64 <500000000>;
70 clock-latency-ns = <300>;
71 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090072 opp-653334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090073 opp-hz = /bits/ 64 <653334000>;
74 clock-latency-ns = <300>;
75 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090076 opp-666667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090077 opp-hz = /bits/ 64 <666667000>;
78 clock-latency-ns = <300>;
79 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090080 opp-980000000 {
Masahiro Yamadacd622142016-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 Yamadafc26b7b2016-03-18 16:41:49 +090091 clocks {
Masahiro Yamadac4adc502016-06-29 19:38:56 +090092 refclk: ref {
93 compatible = "fixed-clock";
94 #clock-cells = <0>;
95 clock-frequency = <25000000>;
96 };
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +090097 };
98
99 timer {
100 compatible = "arm,armv8-timer";
Masahiro Yamada35343a22016-09-22 07:42:23 +0900101 interrupts = <1 13 4>,
102 <1 14 4>,
103 <1 11 4>,
104 <1 10 4>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900105 };
106
Masahiro Yamada7ad79c12017-03-13 00:16:40 +0900107 soc@0 {
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900108 compatible = "simple-bus";
109 #address-cells = <1>;
110 #size-cells = <1>;
111 ranges = <0 0 0 0xffffffff>;
112
113 serial0: serial@54006800 {
114 compatible = "socionext,uniphier-uart";
115 status = "disabled";
116 reg = <0x54006800 0x40>;
117 interrupts = <0 33 4>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&pinctrl_uart0>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900120 clocks = <&peri_clk 0>;
Masahiro Yamadaf1494982016-03-28 21:39:17 +0900121 clock-frequency = <58820000>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900122 };
123
124 serial1: serial@54006900 {
125 compatible = "socionext,uniphier-uart";
126 status = "disabled";
127 reg = <0x54006900 0x40>;
128 interrupts = <0 35 4>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_uart1>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900131 clocks = <&peri_clk 1>;
Masahiro Yamadaf1494982016-03-28 21:39:17 +0900132 clock-frequency = <58820000>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900133 };
134
135 serial2: serial@54006a00 {
136 compatible = "socionext,uniphier-uart";
137 status = "disabled";
138 reg = <0x54006a00 0x40>;
139 interrupts = <0 37 4>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&pinctrl_uart2>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900142 clocks = <&peri_clk 2>;
Masahiro Yamadaf1494982016-03-28 21:39:17 +0900143 clock-frequency = <58820000>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900144 };
145
146 serial3: serial@54006b00 {
147 compatible = "socionext,uniphier-uart";
148 status = "disabled";
149 reg = <0x54006b00 0x40>;
150 interrupts = <0 177 4>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_uart3>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900153 clocks = <&peri_clk 3>;
Masahiro Yamadaf1494982016-03-28 21:39:17 +0900154 clock-frequency = <58820000>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900155 };
156
157 i2c0: i2c@58780000 {
158 compatible = "socionext,uniphier-fi2c";
159 status = "disabled";
160 reg = <0x58780000 0x80>;
161 #address-cells = <1>;
162 #size-cells = <0>;
163 interrupts = <0 41 4>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900166 clocks = <&peri_clk 4>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900167 clock-frequency = <100000>;
168 };
169
170 i2c1: i2c@58781000 {
171 compatible = "socionext,uniphier-fi2c";
172 status = "disabled";
173 reg = <0x58781000 0x80>;
174 #address-cells = <1>;
175 #size-cells = <0>;
176 interrupts = <0 42 4>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900179 clocks = <&peri_clk 5>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900180 clock-frequency = <100000>;
181 };
182
183 i2c2: i2c@58782000 {
184 compatible = "socionext,uniphier-fi2c";
185 reg = <0x58782000 0x80>;
186 #address-cells = <1>;
187 #size-cells = <0>;
188 interrupts = <0 43 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900189 clocks = <&peri_clk 6>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900190 clock-frequency = <400000>;
191 };
192
193 i2c3: i2c@58783000 {
194 compatible = "socionext,uniphier-fi2c";
195 status = "disabled";
196 reg = <0x58783000 0x80>;
197 #address-cells = <1>;
198 #size-cells = <0>;
199 interrupts = <0 44 4>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900202 clocks = <&peri_clk 7>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900203 clock-frequency = <100000>;
204 };
205
206 i2c4: i2c@58784000 {
207 compatible = "socionext,uniphier-fi2c";
208 status = "disabled";
209 reg = <0x58784000 0x80>;
210 #address-cells = <1>;
211 #size-cells = <0>;
212 interrupts = <0 45 4>;
213 pinctrl-names = "default";
214 pinctrl-0 = <&pinctrl_i2c4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900215 clocks = <&peri_clk 8>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900216 clock-frequency = <100000>;
217 };
218
219 i2c5: i2c@58785000 {
220 compatible = "socionext,uniphier-fi2c";
221 reg = <0x58785000 0x80>;
222 #address-cells = <1>;
223 #size-cells = <0>;
224 interrupts = <0 25 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900225 clocks = <&peri_clk 9>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900226 clock-frequency = <400000>;
227 };
228
229 system_bus: system-bus@58c00000 {
230 compatible = "socionext,uniphier-system-bus";
231 status = "disabled";
232 reg = <0x58c00000 0x400>;
233 #address-cells = <2>;
234 #size-cells = <1>;
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900235 pinctrl-names = "default";
236 pinctrl-0 = <&pinctrl_system_bus>;
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900237 };
238
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900239 smpctrl@59801000 {
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900240 compatible = "socionext,uniphier-smpctrl";
241 reg = <0x59801000 0x400>;
242 };
243
Masahiro Yamadacd622142016-12-05 18:31:39 +0900244 sdctrl@59810000 {
245 compatible = "socionext,uniphier-ld11-sdctrl",
246 "simple-mfd", "syscon";
247 reg = <0x59810000 0x400>;
248
249 sd_rst: reset {
250 compatible = "socionext,uniphier-ld11-sd-reset";
251 #reset-cells = <1>;
252 };
253 };
254
Masahiro Yamada35343a22016-09-22 07:42:23 +0900255 perictrl@59820000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900256 compatible = "socionext,uniphier-ld11-perictrl",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900257 "simple-mfd", "syscon";
258 reg = <0x59820000 0x200>;
259
260 peri_clk: clock {
261 compatible = "socionext,uniphier-ld11-peri-clock";
262 #clock-cells = <1>;
263 };
264
265 peri_rst: reset {
266 compatible = "socionext,uniphier-ld11-peri-reset";
267 #reset-cells = <1>;
268 };
269 };
270
Masahiro Yamadacd622142016-12-05 18:31:39 +0900271 emmc: sdhc@5a000000 {
Masahiro Yamada7a6139c2017-01-04 20:08:37 +0900272 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900273 reg = <0x5a000000 0x400>;
274 interrupts = <0 78 4>;
275 pinctrl-names = "default";
276 pinctrl-0 = <&pinctrl_emmc_1v8>;
277 clocks = <&sys_clk 4>;
278 bus-width = <8>;
279 mmc-ddr-1_8v;
280 mmc-hs200-1_8v;
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900281 cdns,phy-input-delay-legacy = <4>;
282 cdns,phy-input-delay-mmc-highspeed = <2>;
283 cdns,phy-input-delay-mmc-ddr = <3>;
284 cdns,phy-dll-delay-sdclk = <21>;
285 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900286 };
287
Masahiro Yamadad7e103c2016-05-24 21:14:03 +0900288 usb0: usb@5a800100 {
289 compatible = "socionext,uniphier-ehci", "generic-ehci";
290 status = "disabled";
291 reg = <0x5a800100 0x100>;
292 interrupts = <0 243 4>;
293 pinctrl-names = "default";
294 pinctrl-0 = <&pinctrl_usb0>;
Masahiro Yamada52159d22016-10-07 16:43:00 +0900295 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
296 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
297 <&mio_rst 12>;
Masahiro Yamadad7e103c2016-05-24 21:14:03 +0900298 };
299
300 usb1: usb@5a810100 {
301 compatible = "socionext,uniphier-ehci", "generic-ehci";
302 status = "disabled";
303 reg = <0x5a810100 0x100>;
304 interrupts = <0 244 4>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_usb1>;
Masahiro Yamada52159d22016-10-07 16:43:00 +0900307 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
308 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
309 <&mio_rst 13>;
Masahiro Yamadad7e103c2016-05-24 21:14:03 +0900310 };
311
312 usb2: usb@5a820100 {
313 compatible = "socionext,uniphier-ehci", "generic-ehci";
314 status = "disabled";
315 reg = <0x5a820100 0x100>;
316 interrupts = <0 245 4>;
317 pinctrl-names = "default";
318 pinctrl-0 = <&pinctrl_usb2>;
Masahiro Yamada52159d22016-10-07 16:43:00 +0900319 clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
320 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
321 <&mio_rst 14>;
Masahiro Yamadad7e103c2016-05-24 21:14:03 +0900322 };
323
Masahiro Yamada35343a22016-09-22 07:42:23 +0900324 mioctrl@5b3e0000 {
Masahiro Yamada7317a942017-03-13 00:16:41 +0900325 compatible = "socionext,uniphier-ld11-mioctrl",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900326 "simple-mfd", "syscon";
Masahiro Yamadad7e103c2016-05-24 21:14:03 +0900327 reg = <0x5b3e0000 0x800>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900328
329 mio_clk: clock {
330 compatible = "socionext,uniphier-ld11-mio-clock";
331 #clock-cells = <1>;
332 };
333
334 mio_rst: reset {
335 compatible = "socionext,uniphier-ld11-mio-reset";
336 #reset-cells = <1>;
337 resets = <&sys_rst 7>;
338 };
Masahiro Yamadad7e103c2016-05-24 21:14:03 +0900339 };
340
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900341 soc-glue@5f800000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900342 compatible = "socionext,uniphier-ld11-soc-glue",
Masahiro Yamada35343a22016-09-22 07:42:23 +0900343 "simple-mfd", "syscon";
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900344 reg = <0x5f800000 0x2000>;
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900345
346 pinctrl: pinctrl {
347 compatible = "socionext,uniphier-ld11-pinctrl";
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900348 };
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900349 };
350
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900351 aidet: aidet@5fc20000 {
352 compatible = "socionext,uniphier-ld11-aidet";
Masahiro Yamada1013aef2016-06-29 19:39:02 +0900353 reg = <0x5fc20000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900354 interrupt-controller;
355 #interrupt-cells = <2>;
Masahiro Yamada1013aef2016-06-29 19:39:02 +0900356 };
357
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900358 gic: interrupt-controller@5fe00000 {
359 compatible = "arm,gic-v3";
360 reg = <0x5fe00000 0x10000>, /* GICD */
361 <0x5fe40000 0x80000>; /* GICR */
362 interrupt-controller;
363 #interrupt-cells = <3>;
364 interrupts = <1 9 4>;
365 };
Masahiro Yamada35343a22016-09-22 07:42:23 +0900366
367 sysctrl@61840000 {
368 compatible = "socionext,uniphier-ld11-sysctrl",
369 "simple-mfd", "syscon";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900370 reg = <0x61840000 0x10000>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900371
372 sys_clk: clock {
373 compatible = "socionext,uniphier-ld11-clock";
374 #clock-cells = <1>;
375 };
376
377 sys_rst: reset {
378 compatible = "socionext,uniphier-ld11-reset";
379 #reset-cells = <1>;
380 };
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900381
382 watchdog {
383 compatible = "socionext,uniphier-wdt";
384 };
Masahiro Yamada35343a22016-09-22 07:42:23 +0900385 };
Masahiro Yamadacd622142016-12-05 18:31:39 +0900386
387 nand: nand@68000000 {
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900388 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900389 status = "disabled";
390 reg-names = "nand_data", "denali_reg";
391 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
392 interrupts = <0 65 4>;
393 pinctrl-names = "default";
394 pinctrl-0 = <&pinctrl_nand>;
395 clocks = <&sys_clk 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900396 };
Masahiro Yamadafc26b7b2016-03-18 16:41:49 +0900397 };
398};
399
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900400#include "uniphier-pinctrl.dtsi"