blob: b81603820a828c02ddb9979fd96efebb6af6b221 [file] [log] [blame]
Masahiro Yamada509eb672014-11-26 18:33:59 +09001/*
Masahiro Yamada52159d22016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier LD4 SoC
Masahiro Yamada509eb672014-11-26 18:33:59 +09003 *
Masahiro Yamada52159d22016-10-07 16:43:00 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada509eb672014-11-26 18:33:59 +09006 *
Masahiro Yamadad9403002017-06-22 16:46:40 +09007 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Masahiro Yamada509eb672014-11-26 18:33:59 +09008 */
9
Masahiro Yamada509eb672014-11-26 18:33:59 +090010/ {
Masahiro Yamada52159d22016-10-07 16:43:00 +090011 compatible = "socionext,uniphier-ld4";
Masahiro Yamadaf16eda92017-03-13 00:16:39 +090012 #address-cells = <1>;
13 #size-cells = <1>;
Masahiro Yamada509eb672014-11-26 18:33:59 +090014
15 cpus {
Masahiro Yamada509eb672014-11-26 18:33:59 +090016 #address-cells = <1>;
Masahiro Yamadaf5fd7af2014-12-06 00:03:23 +090017 #size-cells = <0>;
Masahiro Yamada509eb672014-11-26 18:33:59 +090018
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "arm,cortex-a9";
22 reg = <0>;
Masahiro Yamada52159d22016-10-07 16:43:00 +090023 enable-method = "psci";
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090024 next-level-cache = <&l2>;
Masahiro Yamada509eb672014-11-26 18:33:59 +090025 };
26 };
27
Masahiro Yamadacd622142016-12-05 18:31:39 +090028 psci {
29 compatible = "arm,psci-0.2";
30 method = "smc";
31 };
32
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +090033 clocks {
Masahiro Yamadacd622142016-12-05 18:31:39 +090034 refclk: ref {
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <24576000>;
38 };
39
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +090040 arm_timer_clk: arm_timer_clk {
41 #clock-cells = <0>;
42 compatible = "fixed-clock";
43 clock-frequency = <50000000>;
44 };
Masahiro Yamadacd622142016-12-05 18:31:39 +090045 };
Masahiro Yamadad243c182015-08-28 22:33:13 +090046
Masahiro Yamadacd622142016-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>;
53 u-boot,dm-pre-reloc;
54
55 l2: l2-cache@500c0000 {
56 compatible = "socionext,uniphier-system-cache";
57 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
58 <0x506c0000 0x400>;
59 interrupts = <0 174 4>, <0 175 4>;
60 cache-unified;
61 cache-size = <(512 * 1024)>;
62 cache-sets = <256>;
63 cache-line-size = <128>;
64 cache-level = <2>;
65 };
66
67 serial0: serial@54006800 {
68 compatible = "socionext,uniphier-uart";
69 status = "disabled";
70 reg = <0x54006800 0x40>;
71 interrupts = <0 33 4>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_uart0>;
74 clocks = <&peri_clk 0>;
75 clock-frequency = <36864000>;
76 };
77
78 serial1: serial@54006900 {
79 compatible = "socionext,uniphier-uart";
80 status = "disabled";
81 reg = <0x54006900 0x40>;
82 interrupts = <0 35 4>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_uart1>;
85 clocks = <&peri_clk 1>;
86 clock-frequency = <36864000>;
87 };
88
89 serial2: serial@54006a00 {
90 compatible = "socionext,uniphier-uart";
91 status = "disabled";
92 reg = <0x54006a00 0x40>;
93 interrupts = <0 37 4>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_uart2>;
96 clocks = <&peri_clk 2>;
97 clock-frequency = <36864000>;
98 };
99
100 serial3: serial@54006b00 {
101 compatible = "socionext,uniphier-uart";
102 status = "disabled";
103 reg = <0x54006b00 0x40>;
104 interrupts = <0 29 4>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_uart3>;
107 clocks = <&peri_clk 3>;
108 clock-frequency = <36864000>;
109 };
110
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900111 gpio: gpio@55000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900112 compatible = "socionext,uniphier-gpio";
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900113 reg = <0x55000000 0x200>;
114 interrupt-parent = <&aidet>;
115 interrupt-controller;
116 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900117 gpio-controller;
118 #gpio-cells = <2>;
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900119 gpio-ranges = <&pinctrl 0 0 0>;
120 gpio-ranges-group-names = "gpio_range";
121 ngpios = <136>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900122 };
123
124 i2c0: i2c@58400000 {
125 compatible = "socionext,uniphier-i2c";
126 status = "disabled";
127 reg = <0x58400000 0x40>;
128 #address-cells = <1>;
129 #size-cells = <0>;
130 interrupts = <0 41 1>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_i2c0>;
133 clocks = <&peri_clk 4>;
134 clock-frequency = <100000>;
135 };
136
137 i2c1: i2c@58480000 {
138 compatible = "socionext,uniphier-i2c";
139 status = "disabled";
140 reg = <0x58480000 0x40>;
141 #address-cells = <1>;
142 #size-cells = <0>;
143 interrupts = <0 42 1>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&pinctrl_i2c1>;
146 clocks = <&peri_clk 5>;
147 clock-frequency = <100000>;
148 };
149
150 /* chip-internal connection for DMD */
151 i2c2: i2c@58500000 {
152 compatible = "socionext,uniphier-i2c";
153 reg = <0x58500000 0x40>;
154 #address-cells = <1>;
155 #size-cells = <0>;
156 interrupts = <0 43 1>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&pinctrl_i2c2>;
159 clocks = <&peri_clk 6>;
160 clock-frequency = <400000>;
161 };
162
163 i2c3: i2c@58580000 {
164 compatible = "socionext,uniphier-i2c";
165 status = "disabled";
166 reg = <0x58580000 0x40>;
167 #address-cells = <1>;
168 #size-cells = <0>;
169 interrupts = <0 44 1>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pinctrl_i2c3>;
172 clocks = <&peri_clk 7>;
173 clock-frequency = <100000>;
174 };
175
176 system_bus: system-bus@58c00000 {
177 compatible = "socionext,uniphier-system-bus";
178 status = "disabled";
179 reg = <0x58c00000 0x400>;
180 #address-cells = <2>;
181 #size-cells = <1>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pinctrl_system_bus>;
184 };
185
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900186 smpctrl@59801000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900187 compatible = "socionext,uniphier-smpctrl";
188 reg = <0x59801000 0x400>;
189 };
190
191 mioctrl@59810000 {
192 compatible = "socionext,uniphier-ld4-mioctrl",
193 "simple-mfd", "syscon";
194 reg = <0x59810000 0x800>;
195
196 mio_clk: clock {
197 compatible = "socionext,uniphier-ld4-mio-clock";
198 #clock-cells = <1>;
199 };
200
201 mio_rst: reset {
202 compatible = "socionext,uniphier-ld4-mio-reset";
203 #reset-cells = <1>;
204 };
205 };
206
207 perictrl@59820000 {
208 compatible = "socionext,uniphier-ld4-perictrl",
209 "simple-mfd", "syscon";
210 reg = <0x59820000 0x200>;
211
212 peri_clk: clock {
213 compatible = "socionext,uniphier-ld4-peri-clock";
214 #clock-cells = <1>;
215 };
216
217 peri_rst: reset {
218 compatible = "socionext,uniphier-ld4-peri-reset";
219 #reset-cells = <1>;
220 };
221 };
222
223 sd: sdhc@5a400000 {
224 compatible = "socionext,uniphier-sdhc";
225 status = "disabled";
226 reg = <0x5a400000 0x200>;
227 interrupts = <0 76 4>;
228 pinctrl-names = "default", "1.8v";
229 pinctrl-0 = <&pinctrl_sd>;
230 pinctrl-1 = <&pinctrl_sd_1v8>;
231 clocks = <&mio_clk 0>;
232 reset-names = "host", "bridge";
233 resets = <&mio_rst 0>, <&mio_rst 3>;
234 bus-width = <4>;
235 cap-sd-highspeed;
236 sd-uhs-sdr12;
237 sd-uhs-sdr25;
238 sd-uhs-sdr50;
239 };
240
241 emmc: sdhc@5a500000 {
242 compatible = "socionext,uniphier-sdhc";
243 status = "disabled";
244 reg = <0x5a500000 0x200>;
245 interrupts = <0 78 4>;
246 pinctrl-names = "default", "1.8v";
247 pinctrl-0 = <&pinctrl_emmc>;
248 pinctrl-1 = <&pinctrl_emmc_1v8>;
249 clocks = <&mio_clk 1>;
250 reset-names = "host", "bridge";
251 resets = <&mio_rst 1>, <&mio_rst 4>;
252 bus-width = <8>;
253 non-removable;
254 cap-mmc-highspeed;
255 cap-mmc-hw-reset;
256 };
257
258 usb0: usb@5a800100 {
259 compatible = "socionext,uniphier-ehci", "generic-ehci";
260 status = "disabled";
261 reg = <0x5a800100 0x100>;
262 interrupts = <0 80 4>;
263 pinctrl-names = "default";
264 pinctrl-0 = <&pinctrl_usb0>;
265 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
266 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
267 <&mio_rst 12>;
268 };
269
270 usb1: usb@5a810100 {
271 compatible = "socionext,uniphier-ehci", "generic-ehci";
272 status = "disabled";
273 reg = <0x5a810100 0x100>;
274 interrupts = <0 81 4>;
275 pinctrl-names = "default";
276 pinctrl-0 = <&pinctrl_usb1>;
277 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
278 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
279 <&mio_rst 13>;
280 };
281
282 usb2: usb@5a820100 {
283 compatible = "socionext,uniphier-ehci", "generic-ehci";
284 status = "disabled";
285 reg = <0x5a820100 0x100>;
286 interrupts = <0 82 4>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&pinctrl_usb2>;
289 clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
290 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
291 <&mio_rst 14>;
292 };
293
294 soc-glue@5f800000 {
295 compatible = "socionext,uniphier-ld4-soc-glue",
296 "simple-mfd", "syscon";
297 reg = <0x5f800000 0x2000>;
298 u-boot,dm-pre-reloc;
299
300 pinctrl: pinctrl {
301 compatible = "socionext,uniphier-ld4-pinctrl";
302 u-boot,dm-pre-reloc;
303 };
304 };
305
306 timer@60000200 {
307 compatible = "arm,cortex-a9-global-timer";
308 reg = <0x60000200 0x20>;
309 interrupts = <1 11 0x104>;
310 clocks = <&arm_timer_clk>;
311 };
312
313 timer@60000600 {
314 compatible = "arm,cortex-a9-twd-timer";
315 reg = <0x60000600 0x20>;
316 interrupts = <1 13 0x104>;
317 clocks = <&arm_timer_clk>;
318 };
319
320 intc: interrupt-controller@60001000 {
321 compatible = "arm,cortex-a9-gic";
322 reg = <0x60001000 0x1000>,
323 <0x60000100 0x100>;
324 #interrupt-cells = <3>;
325 interrupt-controller;
326 };
327
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900328 aidet: aidet@61830000 {
329 compatible = "socionext,uniphier-ld4-aidet";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900330 reg = <0x61830000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900331 interrupt-controller;
332 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900333 };
334
335 sysctrl@61840000 {
336 compatible = "socionext,uniphier-ld4-sysctrl",
337 "simple-mfd", "syscon";
338 reg = <0x61840000 0x10000>;
339
340 sys_clk: clock {
341 compatible = "socionext,uniphier-ld4-clock";
342 #clock-cells = <1>;
343 };
344
345 sys_rst: reset {
346 compatible = "socionext,uniphier-ld4-reset";
347 #reset-cells = <1>;
348 };
349 };
350
351 nand: nand@68000000 {
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900352 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900353 status = "disabled";
354 reg-names = "nand_data", "denali_reg";
355 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
356 interrupts = <0 65 4>;
357 pinctrl-names = "default";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900358 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900359 clocks = <&sys_clk 2>;
Masahiro Yamadad243c182015-08-28 22:33:13 +0900360 };
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900361 };
Masahiro Yamada8f062432015-12-16 10:54:07 +0900362};
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900363
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900364#include "uniphier-pinctrl.dtsi"