blob: 70a5ea454cc83a21626bbc12a1109bfc5dd002da [file] [log] [blame]
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09001/*
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier sLD8 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-sld8";
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 = <25000000>;
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>;
53 u-boot,dm-pre-reloc;
Masahiro Yamadab36f3052015-12-16 10:54:08 +090054
Masahiro Yamada6e485b22016-12-05 18:31:39 +090055 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 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090066
Masahiro Yamada6e485b22016-12-05 18:31:39 +090067 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 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090077
Masahiro Yamada6e485b22016-12-05 18:31:39 +090078 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 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090088
Masahiro Yamada6e485b22016-12-05 18:31:39 +090089 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 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090099
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900100 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 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900110
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900111 gpio: gpio@55000000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900112 compatible = "socionext,uniphier-gpio";
Masahiro Yamada964edbf2017-10-13 19:21:52 +0900113 reg = <0x55000000 0x200>;
114 interrupt-parent = <&aidet>;
115 interrupt-controller;
116 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900117 gpio-controller;
118 #gpio-cells = <2>;
Masahiro Yamada964edbf2017-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 Yamada6e485b22016-12-05 18:31:39 +0900126 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900127
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900128 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 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900140
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900141 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 };
Masahiro Yamada9a724622014-11-26 18:34:01 +0900153
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900154 /* 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 };
Masahiro Yamada37649af2015-08-28 22:33:13 +0900166
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900167 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 };
Masahiro Yamada2707e832016-06-29 19:39:02 +0900179
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900180 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 };
Masahiro Yamadaff7bf562014-12-06 00:03:23 +0900189
Masahiro Yamada938ab162017-05-15 14:23:46 +0900190 smpctrl@59801000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900191 compatible = "socionext,uniphier-smpctrl";
192 reg = <0x59801000 0x400>;
193 };
Masahiro Yamada224e2f72016-02-02 21:11:33 +0900194
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900195 mioctrl@59810000 {
196 compatible = "socionext,uniphier-sld8-mioctrl",
197 "simple-mfd", "syscon";
198 reg = <0x59810000 0x800>;
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900199
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900200 mio_clk: clock {
201 compatible = "socionext,uniphier-sld8-mio-clock";
202 #clock-cells = <1>;
203 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900204
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900205 mio_rst: reset {
206 compatible = "socionext,uniphier-sld8-mio-reset";
207 #reset-cells = <1>;
208 };
209 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900210
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900211 perictrl@59820000 {
212 compatible = "socionext,uniphier-sld8-perictrl",
213 "simple-mfd", "syscon";
214 reg = <0x59820000 0x200>;
Masahiro Yamada37649af2015-08-28 22:33:13 +0900215
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900216 peri_clk: clock {
217 compatible = "socionext,uniphier-sld8-peri-clock";
218 #clock-cells = <1>;
219 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900220
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900221 peri_rst: reset {
222 compatible = "socionext,uniphier-sld8-peri-reset";
223 #reset-cells = <1>;
224 };
225 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900226
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900227 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 };
Masahiro Yamada1d5df7b2016-02-02 21:11:36 +0900244
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900245 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 };
Masahiro Yamada80951832016-02-02 21:11:35 +0900261
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900262 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 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900273
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900274 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 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900285
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900286 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 Yamada1a420bd2017-08-29 12:20:52 +0900332 aidet: aidet@61830000 {
333 compatible = "socionext,uniphier-sld8-aidet";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900334 reg = <0x61830000 0x200>;
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900335 interrupt-controller;
336 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-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 Yamada938ab162017-05-15 14:23:46 +0900356 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamada6e485b22016-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 Yamada1a420bd2017-08-29 12:20:52 +0900362 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900363 clocks = <&sys_clk 2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900364 };
365 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900366};
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900367
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900368#include "uniphier-pinctrl.dtsi"