blob: 158beae718e03d70e7db2f0e365630e17e0b22f1 [file] [log] [blame]
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09001/*
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier LD4 SoC
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09003 *
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09006 *
Masahiro Yamada31a17882017-06-22 16:46:40 +09007 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09008 */
9
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090010/ {
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090011 compatible = "socionext,uniphier-ld4";
Masahiro Yamada6cd78f72017-03-13 00:16:39 +090012 #address-cells = <1>;
13 #size-cells = <1>;
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090014
15 cpus {
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090016 #address-cells = <1>;
Masahiro Yamadaff7bf562014-12-06 00:03:23 +090017 #size-cells = <0>;
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090018
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "arm,cortex-a9";
22 reg = <0>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090023 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090024 next-level-cache = <&l2>;
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090025 };
26 };
27
Masahiro Yamada6e485b22016-12-05 18:31:39 +090028 psci {
29 compatible = "arm,psci-0.2";
30 method = "smc";
31 };
32
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090033 clocks {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090034 refclk: ref {
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090035 compatible = "fixed-clock";
Masahiro Yamada6e485b22016-12-05 18:31:39 +090036 #clock-cells = <0>;
37 clock-frequency = <24576000>;
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090038 };
Masahiro Yamada37649af2015-08-28 22:33:13 +090039
Masahiro Yamada6e485b22016-12-05 18:31:39 +090040 arm_timer_clk: arm_timer_clk {
Masahiro Yamada37649af2015-08-28 22:33:13 +090041 #clock-cells = <0>;
42 compatible = "fixed-clock";
Masahiro Yamada6e485b22016-12-05 18:31:39 +090043 clock-frequency = <50000000>;
Masahiro Yamada37649af2015-08-28 22:33:13 +090044 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090045 };
46
Masahiro Yamada6e485b22016-12-05 18:31:39 +090047 soc {
48 compatible = "simple-bus";
49 #address-cells = <1>;
50 #size-cells = <1>;
51 ranges;
52 interrupt-parent = <&intc>;
Masahiro Yamadab36f3052015-12-16 10:54:08 +090053
Masahiro Yamada6e485b22016-12-05 18:31:39 +090054 l2: l2-cache@500c0000 {
55 compatible = "socionext,uniphier-system-cache";
56 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
57 <0x506c0000 0x400>;
58 interrupts = <0 174 4>, <0 175 4>;
59 cache-unified;
60 cache-size = <(512 * 1024)>;
61 cache-sets = <256>;
62 cache-line-size = <128>;
63 cache-level = <2>;
64 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090065
Masahiro Yamada6e485b22016-12-05 18:31:39 +090066 serial0: serial@54006800 {
67 compatible = "socionext,uniphier-uart";
68 status = "disabled";
69 reg = <0x54006800 0x40>;
70 interrupts = <0 33 4>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_uart0>;
73 clocks = <&peri_clk 0>;
74 clock-frequency = <36864000>;
75 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090076
Masahiro Yamada6e485b22016-12-05 18:31:39 +090077 serial1: serial@54006900 {
78 compatible = "socionext,uniphier-uart";
79 status = "disabled";
80 reg = <0x54006900 0x40>;
81 interrupts = <0 35 4>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&pinctrl_uart1>;
84 clocks = <&peri_clk 1>;
85 clock-frequency = <36864000>;
86 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090087
Masahiro Yamada6e485b22016-12-05 18:31:39 +090088 serial2: serial@54006a00 {
89 compatible = "socionext,uniphier-uart";
90 status = "disabled";
91 reg = <0x54006a00 0x40>;
92 interrupts = <0 37 4>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_uart2>;
95 clocks = <&peri_clk 2>;
96 clock-frequency = <36864000>;
97 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090098
Masahiro Yamada6e485b22016-12-05 18:31:39 +090099 serial3: serial@54006b00 {
100 compatible = "socionext,uniphier-uart";
101 status = "disabled";
102 reg = <0x54006b00 0x40>;
103 interrupts = <0 29 4>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_uart3>;
106 clocks = <&peri_clk 3>;
107 clock-frequency = <36864000>;
108 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900109
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900110 gpio: gpio@55000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900111 compatible = "socionext,uniphier-gpio";
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900112 reg = <0x55000000 0x200>;
113 interrupt-parent = <&aidet>;
114 interrupt-controller;
115 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900116 gpio-controller;
117 #gpio-cells = <2>;
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900118 gpio-ranges = <&pinctrl 0 0 0>;
119 gpio-ranges-group-names = "gpio_range";
120 ngpios = <136>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900121 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900122
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900123 i2c0: i2c@58400000 {
124 compatible = "socionext,uniphier-i2c";
125 status = "disabled";
126 reg = <0x58400000 0x40>;
127 #address-cells = <1>;
128 #size-cells = <0>;
129 interrupts = <0 41 1>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_i2c0>;
132 clocks = <&peri_clk 4>;
133 clock-frequency = <100000>;
134 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900135
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900136 i2c1: i2c@58480000 {
137 compatible = "socionext,uniphier-i2c";
138 status = "disabled";
139 reg = <0x58480000 0x40>;
140 #address-cells = <1>;
141 #size-cells = <0>;
142 interrupts = <0 42 1>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&pinctrl_i2c1>;
145 clocks = <&peri_clk 5>;
146 clock-frequency = <100000>;
147 };
Masahiro Yamada9a724622014-11-26 18:34:01 +0900148
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900149 /* chip-internal connection for DMD */
150 i2c2: i2c@58500000 {
151 compatible = "socionext,uniphier-i2c";
152 reg = <0x58500000 0x40>;
153 #address-cells = <1>;
154 #size-cells = <0>;
155 interrupts = <0 43 1>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_i2c2>;
158 clocks = <&peri_clk 6>;
159 clock-frequency = <400000>;
160 };
Masahiro Yamada37649af2015-08-28 22:33:13 +0900161
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900162 i2c3: i2c@58580000 {
163 compatible = "socionext,uniphier-i2c";
164 status = "disabled";
165 reg = <0x58580000 0x40>;
166 #address-cells = <1>;
167 #size-cells = <0>;
168 interrupts = <0 44 1>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&pinctrl_i2c3>;
171 clocks = <&peri_clk 7>;
172 clock-frequency = <100000>;
173 };
Masahiro Yamada2707e832016-06-29 19:39:02 +0900174
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900175 system_bus: system-bus@58c00000 {
176 compatible = "socionext,uniphier-system-bus";
177 status = "disabled";
178 reg = <0x58c00000 0x400>;
179 #address-cells = <2>;
180 #size-cells = <1>;
181 pinctrl-names = "default";
182 pinctrl-0 = <&pinctrl_system_bus>;
183 };
Masahiro Yamadaff7bf562014-12-06 00:03:23 +0900184
Masahiro Yamada938ab162017-05-15 14:23:46 +0900185 smpctrl@59801000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900186 compatible = "socionext,uniphier-smpctrl";
187 reg = <0x59801000 0x400>;
188 };
Masahiro Yamada224e2f72016-02-02 21:11:33 +0900189
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900190 mioctrl@59810000 {
191 compatible = "socionext,uniphier-ld4-mioctrl",
192 "simple-mfd", "syscon";
193 reg = <0x59810000 0x800>;
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900194
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900195 mio_clk: clock {
196 compatible = "socionext,uniphier-ld4-mio-clock";
197 #clock-cells = <1>;
198 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900199
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900200 mio_rst: reset {
201 compatible = "socionext,uniphier-ld4-mio-reset";
202 #reset-cells = <1>;
203 };
204 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900205
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900206 perictrl@59820000 {
207 compatible = "socionext,uniphier-ld4-perictrl",
208 "simple-mfd", "syscon";
209 reg = <0x59820000 0x200>;
Masahiro Yamada37649af2015-08-28 22:33:13 +0900210
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900211 peri_clk: clock {
212 compatible = "socionext,uniphier-ld4-peri-clock";
213 #clock-cells = <1>;
214 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900215
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900216 peri_rst: reset {
217 compatible = "socionext,uniphier-ld4-peri-reset";
218 #reset-cells = <1>;
219 };
220 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900221
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900222 sd: sdhc@5a400000 {
223 compatible = "socionext,uniphier-sdhc";
224 status = "disabled";
225 reg = <0x5a400000 0x200>;
226 interrupts = <0 76 4>;
227 pinctrl-names = "default", "1.8v";
228 pinctrl-0 = <&pinctrl_sd>;
229 pinctrl-1 = <&pinctrl_sd_1v8>;
230 clocks = <&mio_clk 0>;
231 reset-names = "host", "bridge";
232 resets = <&mio_rst 0>, <&mio_rst 3>;
233 bus-width = <4>;
234 cap-sd-highspeed;
235 sd-uhs-sdr12;
236 sd-uhs-sdr25;
237 sd-uhs-sdr50;
238 };
Masahiro Yamada1d5df7b2016-02-02 21:11:36 +0900239
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900240 emmc: sdhc@5a500000 {
241 compatible = "socionext,uniphier-sdhc";
242 status = "disabled";
243 reg = <0x5a500000 0x200>;
244 interrupts = <0 78 4>;
245 pinctrl-names = "default", "1.8v";
246 pinctrl-0 = <&pinctrl_emmc>;
247 pinctrl-1 = <&pinctrl_emmc_1v8>;
248 clocks = <&mio_clk 1>;
249 reset-names = "host", "bridge";
250 resets = <&mio_rst 1>, <&mio_rst 4>;
251 bus-width = <8>;
252 non-removable;
253 cap-mmc-highspeed;
254 cap-mmc-hw-reset;
255 };
Masahiro Yamada80951832016-02-02 21:11:35 +0900256
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900257 usb0: usb@5a800100 {
258 compatible = "socionext,uniphier-ehci", "generic-ehci";
259 status = "disabled";
260 reg = <0x5a800100 0x100>;
261 interrupts = <0 80 4>;
262 pinctrl-names = "default";
263 pinctrl-0 = <&pinctrl_usb0>;
264 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
265 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
266 <&mio_rst 12>;
267 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900268
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900269 usb1: usb@5a810100 {
270 compatible = "socionext,uniphier-ehci", "generic-ehci";
271 status = "disabled";
272 reg = <0x5a810100 0x100>;
273 interrupts = <0 81 4>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&pinctrl_usb1>;
276 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
277 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
278 <&mio_rst 13>;
279 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900280
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900281 usb2: usb@5a820100 {
282 compatible = "socionext,uniphier-ehci", "generic-ehci";
283 status = "disabled";
284 reg = <0x5a820100 0x100>;
285 interrupts = <0 82 4>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&pinctrl_usb2>;
288 clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
289 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
290 <&mio_rst 14>;
291 };
292
293 soc-glue@5f800000 {
294 compatible = "socionext,uniphier-ld4-soc-glue",
295 "simple-mfd", "syscon";
296 reg = <0x5f800000 0x2000>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900297
298 pinctrl: pinctrl {
299 compatible = "socionext,uniphier-ld4-pinctrl";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900300 };
301 };
302
303 timer@60000200 {
304 compatible = "arm,cortex-a9-global-timer";
305 reg = <0x60000200 0x20>;
306 interrupts = <1 11 0x104>;
307 clocks = <&arm_timer_clk>;
308 };
309
310 timer@60000600 {
311 compatible = "arm,cortex-a9-twd-timer";
312 reg = <0x60000600 0x20>;
313 interrupts = <1 13 0x104>;
314 clocks = <&arm_timer_clk>;
315 };
316
317 intc: interrupt-controller@60001000 {
318 compatible = "arm,cortex-a9-gic";
319 reg = <0x60001000 0x1000>,
320 <0x60000100 0x100>;
321 #interrupt-cells = <3>;
322 interrupt-controller;
323 };
324
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900325 aidet: aidet@61830000 {
326 compatible = "socionext,uniphier-ld4-aidet";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900327 reg = <0x61830000 0x200>;
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900328 interrupt-controller;
329 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900330 };
331
332 sysctrl@61840000 {
333 compatible = "socionext,uniphier-ld4-sysctrl",
334 "simple-mfd", "syscon";
335 reg = <0x61840000 0x10000>;
336
337 sys_clk: clock {
338 compatible = "socionext,uniphier-ld4-clock";
339 #clock-cells = <1>;
340 };
341
342 sys_rst: reset {
343 compatible = "socionext,uniphier-ld4-reset";
344 #reset-cells = <1>;
345 };
346 };
347
348 nand: nand@68000000 {
Masahiro Yamada938ab162017-05-15 14:23:46 +0900349 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900350 status = "disabled";
351 reg-names = "nand_data", "denali_reg";
352 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
353 interrupts = <0 65 4>;
354 pinctrl-names = "default";
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900355 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900356 clocks = <&sys_clk 2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900357 };
358 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900359};
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900360
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900361#include "uniphier-pinctrl.dtsi"