blob: 70a5ea454cc83a21626bbc12a1109bfc5dd002da [file] [log] [blame]
Masahiro Yamada509eb672014-11-26 18:33:59 +09001/*
Masahiro Yamada52159d22016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier sLD8 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-sld8";
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 = <25000000>;
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 = <(256 * 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 = <80000000>;
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 = <80000000>;
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 = <80000000>;
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 = <80000000>;
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 <&pinctrl 104 0 0>,
121 <&pinctrl 112 0 0>;
122 gpio-ranges-group-names = "gpio_range0",
123 "gpio_range1",
124 "gpio_range2";
125 ngpios = <136>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900126 };
127
128 i2c0: i2c@58400000 {
129 compatible = "socionext,uniphier-i2c";
130 status = "disabled";
131 reg = <0x58400000 0x40>;
132 #address-cells = <1>;
133 #size-cells = <0>;
134 interrupts = <0 41 1>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_i2c0>;
137 clocks = <&peri_clk 4>;
138 clock-frequency = <100000>;
139 };
140
141 i2c1: i2c@58480000 {
142 compatible = "socionext,uniphier-i2c";
143 status = "disabled";
144 reg = <0x58480000 0x40>;
145 #address-cells = <1>;
146 #size-cells = <0>;
147 interrupts = <0 42 1>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&pinctrl_i2c1>;
150 clocks = <&peri_clk 5>;
151 clock-frequency = <100000>;
152 };
153
154 /* chip-internal connection for DMD */
155 i2c2: i2c@58500000 {
156 compatible = "socionext,uniphier-i2c";
157 reg = <0x58500000 0x40>;
158 #address-cells = <1>;
159 #size-cells = <0>;
160 interrupts = <0 43 1>;
161 pinctrl-names = "default";
162 pinctrl-0 = <&pinctrl_i2c2>;
163 clocks = <&peri_clk 6>;
164 clock-frequency = <400000>;
165 };
166
167 i2c3: i2c@58580000 {
168 compatible = "socionext,uniphier-i2c";
169 status = "disabled";
170 reg = <0x58580000 0x40>;
171 #address-cells = <1>;
172 #size-cells = <0>;
173 interrupts = <0 44 1>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_i2c3>;
176 clocks = <&peri_clk 7>;
177 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-sld8-mioctrl",
197 "simple-mfd", "syscon";
198 reg = <0x59810000 0x800>;
199
200 mio_clk: clock {
201 compatible = "socionext,uniphier-sld8-mio-clock";
202 #clock-cells = <1>;
203 };
204
205 mio_rst: reset {
206 compatible = "socionext,uniphier-sld8-mio-reset";
207 #reset-cells = <1>;
208 };
209 };
210
211 perictrl@59820000 {
212 compatible = "socionext,uniphier-sld8-perictrl",
213 "simple-mfd", "syscon";
214 reg = <0x59820000 0x200>;
215
216 peri_clk: clock {
217 compatible = "socionext,uniphier-sld8-peri-clock";
218 #clock-cells = <1>;
219 };
220
221 peri_rst: reset {
222 compatible = "socionext,uniphier-sld8-peri-reset";
223 #reset-cells = <1>;
224 };
225 };
226
227 sd: sdhc@5a400000 {
228 compatible = "socionext,uniphier-sdhc";
229 status = "disabled";
230 reg = <0x5a400000 0x200>;
231 interrupts = <0 76 4>;
232 pinctrl-names = "default", "1.8v";
233 pinctrl-0 = <&pinctrl_sd>;
234 pinctrl-1 = <&pinctrl_sd_1v8>;
235 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 {
246 compatible = "socionext,uniphier-sdhc";
247 status = "disabled";
248 reg = <0x5a500000 0x200>;
249 interrupts = <0 78 4>;
250 pinctrl-names = "default", "1.8v";
251 pinctrl-0 = <&pinctrl_emmc>;
252 pinctrl-1 = <&pinctrl_emmc_1v8>;
253 clocks = <&mio_clk 1>;
254 reset-names = "host", "bridge";
255 resets = <&mio_rst 1>, <&mio_rst 4>;
256 bus-width = <8>;
257 non-removable;
258 cap-mmc-highspeed;
259 cap-mmc-hw-reset;
260 };
261
262 usb0: usb@5a800100 {
263 compatible = "socionext,uniphier-ehci", "generic-ehci";
264 status = "disabled";
265 reg = <0x5a800100 0x100>;
266 interrupts = <0 80 4>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_usb0>;
269 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
270 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
271 <&mio_rst 12>;
272 };
273
274 usb1: usb@5a810100 {
275 compatible = "socionext,uniphier-ehci", "generic-ehci";
276 status = "disabled";
277 reg = <0x5a810100 0x100>;
278 interrupts = <0 81 4>;
279 pinctrl-names = "default";
280 pinctrl-0 = <&pinctrl_usb1>;
281 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
282 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
283 <&mio_rst 13>;
284 };
285
286 usb2: usb@5a820100 {
287 compatible = "socionext,uniphier-ehci", "generic-ehci";
288 status = "disabled";
289 reg = <0x5a820100 0x100>;
290 interrupts = <0 82 4>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&pinctrl_usb2>;
293 clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
294 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
295 <&mio_rst 14>;
296 };
297
298 soc-glue@5f800000 {
299 compatible = "socionext,uniphier-sld8-soc-glue",
300 "simple-mfd", "syscon";
301 reg = <0x5f800000 0x2000>;
302 u-boot,dm-pre-reloc;
303
304 pinctrl: pinctrl {
305 compatible = "socionext,uniphier-sld8-pinctrl";
306 u-boot,dm-pre-reloc;
307 };
308 };
309
310 timer@60000200 {
311 compatible = "arm,cortex-a9-global-timer";
312 reg = <0x60000200 0x20>;
313 interrupts = <1 11 0x104>;
314 clocks = <&arm_timer_clk>;
315 };
316
317 timer@60000600 {
318 compatible = "arm,cortex-a9-twd-timer";
319 reg = <0x60000600 0x20>;
320 interrupts = <1 13 0x104>;
321 clocks = <&arm_timer_clk>;
322 };
323
324 intc: interrupt-controller@60001000 {
325 compatible = "arm,cortex-a9-gic";
326 reg = <0x60001000 0x1000>,
327 <0x60000100 0x100>;
328 #interrupt-cells = <3>;
329 interrupt-controller;
330 };
331
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900332 aidet: aidet@61830000 {
333 compatible = "socionext,uniphier-sld8-aidet";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900334 reg = <0x61830000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900335 interrupt-controller;
336 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900337 };
338
339 sysctrl@61840000 {
340 compatible = "socionext,uniphier-sld8-sysctrl",
341 "simple-mfd", "syscon";
342 reg = <0x61840000 0x10000>;
343
344 sys_clk: clock {
345 compatible = "socionext,uniphier-sld8-clock";
346 #clock-cells = <1>;
347 };
348
349 sys_rst: reset {
350 compatible = "socionext,uniphier-sld8-reset";
351 #reset-cells = <1>;
352 };
353 };
354
355 nand: nand@68000000 {
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900356 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900357 status = "disabled";
358 reg-names = "nand_data", "denali_reg";
359 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
360 interrupts = <0 65 4>;
361 pinctrl-names = "default";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900362 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900363 clocks = <&sys_clk 2>;
Masahiro Yamadad243c182015-08-28 22:33:13 +0900364 };
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900365 };
Masahiro Yamada8f062432015-12-16 10:54:07 +0900366};
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900367
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900368#include "uniphier-pinctrl.dtsi"