blob: f505f643f76b6fad07c3d39831861b6bc1cd6a23 [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 LD4 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada509eb672014-11-26 18:33:59 +09007
Masahiro Yamadab443fb42017-11-25 00:25:35 +09008#include <dt-bindings/gpio/uniphier-gpio.h>
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 Yamadab443fb42017-11-25 00:25:35 +090040 arm_timer_clk: arm-timer {
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +090041 #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>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090053
54 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 };
65
66 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>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +090074 resets = <&peri_rst 0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090075 };
76
77 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>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +090085 resets = <&peri_rst 1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090086 };
87
88 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>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +090096 resets = <&peri_rst 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090097 };
98
99 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>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900107 resets = <&peri_rst 3>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900108 };
109
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900110 gpio: gpio@55000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900111 compatible = "socionext,uniphier-gpio";
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900112 reg = <0x55000000 0x200>;
113 interrupt-parent = <&aidet>;
114 interrupt-controller;
115 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900116 gpio-controller;
117 #gpio-cells = <2>;
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900118 gpio-ranges = <&pinctrl 0 0 0>;
119 gpio-ranges-group-names = "gpio_range";
120 ngpios = <136>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900121 socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
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>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900134 resets = <&peri_rst 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900135 clock-frequency = <100000>;
136 };
137
138 i2c1: i2c@58480000 {
139 compatible = "socionext,uniphier-i2c";
140 status = "disabled";
141 reg = <0x58480000 0x40>;
142 #address-cells = <1>;
143 #size-cells = <0>;
144 interrupts = <0 42 1>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_i2c1>;
147 clocks = <&peri_clk 5>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900148 resets = <&peri_rst 5>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900149 clock-frequency = <100000>;
150 };
151
152 /* chip-internal connection for DMD */
153 i2c2: i2c@58500000 {
154 compatible = "socionext,uniphier-i2c";
155 reg = <0x58500000 0x40>;
156 #address-cells = <1>;
157 #size-cells = <0>;
158 interrupts = <0 43 1>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&pinctrl_i2c2>;
161 clocks = <&peri_clk 6>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900162 resets = <&peri_rst 6>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900163 clock-frequency = <400000>;
164 };
165
166 i2c3: i2c@58580000 {
167 compatible = "socionext,uniphier-i2c";
168 status = "disabled";
169 reg = <0x58580000 0x40>;
170 #address-cells = <1>;
171 #size-cells = <0>;
172 interrupts = <0 44 1>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&pinctrl_i2c3>;
175 clocks = <&peri_clk 7>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900176 resets = <&peri_rst 7>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900177 clock-frequency = <100000>;
178 };
179
180 system_bus: system-bus@58c00000 {
181 compatible = "socionext,uniphier-system-bus";
182 status = "disabled";
183 reg = <0x58c00000 0x400>;
184 #address-cells = <2>;
185 #size-cells = <1>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&pinctrl_system_bus>;
188 };
189
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900190 smpctrl@59801000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900191 compatible = "socionext,uniphier-smpctrl";
192 reg = <0x59801000 0x400>;
193 };
194
195 mioctrl@59810000 {
196 compatible = "socionext,uniphier-ld4-mioctrl",
197 "simple-mfd", "syscon";
198 reg = <0x59810000 0x800>;
199
200 mio_clk: clock {
201 compatible = "socionext,uniphier-ld4-mio-clock";
202 #clock-cells = <1>;
203 };
204
205 mio_rst: reset {
206 compatible = "socionext,uniphier-ld4-mio-reset";
207 #reset-cells = <1>;
208 };
209 };
210
211 perictrl@59820000 {
212 compatible = "socionext,uniphier-ld4-perictrl",
213 "simple-mfd", "syscon";
214 reg = <0x59820000 0x200>;
215
216 peri_clk: clock {
217 compatible = "socionext,uniphier-ld4-peri-clock";
218 #clock-cells = <1>;
219 };
220
221 peri_rst: reset {
222 compatible = "socionext,uniphier-ld4-peri-reset";
223 #reset-cells = <1>;
224 };
225 };
226
227 sd: sdhc@5a400000 {
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900228 compatible = "socionext,uniphier-sd-v2.91";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900229 status = "disabled";
230 reg = <0x5a400000 0x200>;
231 interrupts = <0 76 4>;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900232 pinctrl-names = "default", "uhs";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900233 pinctrl-0 = <&pinctrl_sd>;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900234 pinctrl-1 = <&pinctrl_sd_uhs>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900235 clocks = <&mio_clk 0>;
236 reset-names = "host", "bridge";
237 resets = <&mio_rst 0>, <&mio_rst 3>;
238 bus-width = <4>;
239 cap-sd-highspeed;
240 sd-uhs-sdr12;
241 sd-uhs-sdr25;
242 sd-uhs-sdr50;
243 };
244
245 emmc: sdhc@5a500000 {
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900246 compatible = "socionext,uniphier-sd-v2.91";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900247 status = "disabled";
248 reg = <0x5a500000 0x200>;
249 interrupts = <0 78 4>;
Masahiro Yamada33aae6b2018-09-10 12:58:32 +0900250 pinctrl-names = "default";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900251 pinctrl-0 = <&pinctrl_emmc>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900252 clocks = <&mio_clk 1>;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900253 reset-names = "host", "bridge", "hw";
254 resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900255 bus-width = <8>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900256 cap-mmc-highspeed;
257 cap-mmc-hw-reset;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900258 non-removable;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900259 };
260
261 usb0: usb@5a800100 {
262 compatible = "socionext,uniphier-ehci", "generic-ehci";
263 status = "disabled";
264 reg = <0x5a800100 0x100>;
265 interrupts = <0 80 4>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_usb0>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900268 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
269 <&mio_clk 12>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900270 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
271 <&mio_rst 12>;
Masahiro Yamada46820e32018-03-15 11:43:03 +0900272 has-transaction-translator;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900273 };
274
275 usb1: usb@5a810100 {
276 compatible = "socionext,uniphier-ehci", "generic-ehci";
277 status = "disabled";
278 reg = <0x5a810100 0x100>;
279 interrupts = <0 81 4>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&pinctrl_usb1>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900282 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
283 <&mio_clk 13>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900284 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
285 <&mio_rst 13>;
Masahiro Yamada46820e32018-03-15 11:43:03 +0900286 has-transaction-translator;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900287 };
288
289 usb2: usb@5a820100 {
290 compatible = "socionext,uniphier-ehci", "generic-ehci";
291 status = "disabled";
292 reg = <0x5a820100 0x100>;
293 interrupts = <0 82 4>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&pinctrl_usb2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900296 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
297 <&mio_clk 14>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900298 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
299 <&mio_rst 14>;
Masahiro Yamada46820e32018-03-15 11:43:03 +0900300 has-transaction-translator;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900301 };
302
303 soc-glue@5f800000 {
304 compatible = "socionext,uniphier-ld4-soc-glue",
305 "simple-mfd", "syscon";
306 reg = <0x5f800000 0x2000>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900307
308 pinctrl: pinctrl {
309 compatible = "socionext,uniphier-ld4-pinctrl";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900310 };
311 };
312
Masahiro Yamada46820e32018-03-15 11:43:03 +0900313 soc-glue@5f900000 {
314 compatible = "socionext,uniphier-ld4-soc-glue-debug",
315 "simple-mfd";
316 #address-cells = <1>;
317 #size-cells = <1>;
318 ranges = <0 0x5f900000 0x2000>;
319
320 efuse@100 {
321 compatible = "socionext,uniphier-efuse";
322 reg = <0x100 0x28>;
323 };
324
325 efuse@130 {
326 compatible = "socionext,uniphier-efuse";
327 reg = <0x130 0x8>;
328 };
329 };
330
Masahiro Yamadacd622142016-12-05 18:31:39 +0900331 timer@60000200 {
332 compatible = "arm,cortex-a9-global-timer";
333 reg = <0x60000200 0x20>;
334 interrupts = <1 11 0x104>;
335 clocks = <&arm_timer_clk>;
336 };
337
338 timer@60000600 {
339 compatible = "arm,cortex-a9-twd-timer";
340 reg = <0x60000600 0x20>;
341 interrupts = <1 13 0x104>;
342 clocks = <&arm_timer_clk>;
343 };
344
345 intc: interrupt-controller@60001000 {
346 compatible = "arm,cortex-a9-gic";
347 reg = <0x60001000 0x1000>,
348 <0x60000100 0x100>;
349 #interrupt-cells = <3>;
350 interrupt-controller;
351 };
352
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900353 aidet: aidet@61830000 {
354 compatible = "socionext,uniphier-ld4-aidet";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900355 reg = <0x61830000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900356 interrupt-controller;
357 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900358 };
359
360 sysctrl@61840000 {
361 compatible = "socionext,uniphier-ld4-sysctrl",
362 "simple-mfd", "syscon";
363 reg = <0x61840000 0x10000>;
364
365 sys_clk: clock {
366 compatible = "socionext,uniphier-ld4-clock";
367 #clock-cells = <1>;
368 };
369
370 sys_rst: reset {
371 compatible = "socionext,uniphier-ld4-reset";
372 #reset-cells = <1>;
373 };
374 };
375
376 nand: nand@68000000 {
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900377 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900378 status = "disabled";
379 reg-names = "nand_data", "denali_reg";
380 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
381 interrupts = <0 65 4>;
382 pinctrl-names = "default";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900383 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900384 clocks = <&sys_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900385 resets = <&sys_rst 2>;
Masahiro Yamadad243c182015-08-28 22:33:13 +0900386 };
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900387 };
Masahiro Yamada8f062432015-12-16 10:54:07 +0900388};
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900389
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900390#include "uniphier-pinctrl.dtsi"