blob: 437265bb739348e70e7f227e57de870b7f87641f [file] [log] [blame]
Masahiro Yamada0bc56842018-04-16 12:35:33 +09001// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier sLD8 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09007
Masahiro Yamada6c086d02017-11-25 00:25:35 +09008#include <dt-bindings/gpio/uniphier-gpio.h>
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 Yamada6c086d02017-11-25 00:25:35 +090040 arm_timer_clk: arm-timer {
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 = <(256 * 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>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +090074 resets = <&peri_rst 0>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090075 };
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>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +090085 resets = <&peri_rst 1>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090086 };
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>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +090096 resets = <&peri_rst 2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090097 };
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>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900107 resets = <&peri_rst 3>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900108 };
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 <&pinctrl 104 0 0>,
120 <&pinctrl 112 0 0>;
121 gpio-ranges-group-names = "gpio_range0",
122 "gpio_range1",
123 "gpio_range2";
124 ngpios = <136>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900125 socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
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>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900138 resets = <&peri_rst 4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900139 clock-frequency = <100000>;
140 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900141
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900142 i2c1: i2c@58480000 {
143 compatible = "socionext,uniphier-i2c";
144 status = "disabled";
145 reg = <0x58480000 0x40>;
146 #address-cells = <1>;
147 #size-cells = <0>;
148 interrupts = <0 42 1>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_i2c1>;
151 clocks = <&peri_clk 5>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900152 resets = <&peri_rst 5>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900153 clock-frequency = <100000>;
154 };
Masahiro Yamada9a724622014-11-26 18:34:01 +0900155
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900156 /* chip-internal connection for DMD */
157 i2c2: i2c@58500000 {
158 compatible = "socionext,uniphier-i2c";
159 reg = <0x58500000 0x40>;
160 #address-cells = <1>;
161 #size-cells = <0>;
162 interrupts = <0 43 1>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_i2c2>;
165 clocks = <&peri_clk 6>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900166 resets = <&peri_rst 6>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900167 clock-frequency = <400000>;
168 };
Masahiro Yamada37649af2015-08-28 22:33:13 +0900169
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900170 i2c3: i2c@58580000 {
171 compatible = "socionext,uniphier-i2c";
172 status = "disabled";
173 reg = <0x58580000 0x40>;
174 #address-cells = <1>;
175 #size-cells = <0>;
176 interrupts = <0 44 1>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pinctrl_i2c3>;
179 clocks = <&peri_clk 7>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900180 resets = <&peri_rst 7>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900181 clock-frequency = <100000>;
182 };
Masahiro Yamada2707e832016-06-29 19:39:02 +0900183
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900184 system_bus: system-bus@58c00000 {
185 compatible = "socionext,uniphier-system-bus";
186 status = "disabled";
187 reg = <0x58c00000 0x400>;
188 #address-cells = <2>;
189 #size-cells = <1>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&pinctrl_system_bus>;
192 };
Masahiro Yamadaff7bf562014-12-06 00:03:23 +0900193
Masahiro Yamada938ab162017-05-15 14:23:46 +0900194 smpctrl@59801000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900195 compatible = "socionext,uniphier-smpctrl";
196 reg = <0x59801000 0x400>;
197 };
Masahiro Yamada224e2f72016-02-02 21:11:33 +0900198
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900199 mioctrl@59810000 {
200 compatible = "socionext,uniphier-sld8-mioctrl",
201 "simple-mfd", "syscon";
202 reg = <0x59810000 0x800>;
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900203
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900204 mio_clk: clock {
205 compatible = "socionext,uniphier-sld8-mio-clock";
206 #clock-cells = <1>;
207 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900208
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900209 mio_rst: reset {
210 compatible = "socionext,uniphier-sld8-mio-reset";
211 #reset-cells = <1>;
212 };
213 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900214
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900215 perictrl@59820000 {
216 compatible = "socionext,uniphier-sld8-perictrl",
217 "simple-mfd", "syscon";
218 reg = <0x59820000 0x200>;
Masahiro Yamada37649af2015-08-28 22:33:13 +0900219
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900220 peri_clk: clock {
221 compatible = "socionext,uniphier-sld8-peri-clock";
222 #clock-cells = <1>;
223 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900224
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900225 peri_rst: reset {
226 compatible = "socionext,uniphier-sld8-peri-reset";
227 #reset-cells = <1>;
228 };
229 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900230
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900231 sd: sdhc@5a400000 {
Masahiro Yamada6c7ad4d2018-09-10 12:58:35 +0900232 compatible = "socionext,uniphier-sd-v2.91";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900233 status = "disabled";
234 reg = <0x5a400000 0x200>;
235 interrupts = <0 76 4>;
Masahiro Yamada6c7ad4d2018-09-10 12:58:35 +0900236 pinctrl-names = "default", "uhs";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900237 pinctrl-0 = <&pinctrl_sd>;
Masahiro Yamada6c7ad4d2018-09-10 12:58:35 +0900238 pinctrl-1 = <&pinctrl_sd_uhs>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900239 clocks = <&mio_clk 0>;
240 reset-names = "host", "bridge";
241 resets = <&mio_rst 0>, <&mio_rst 3>;
242 bus-width = <4>;
243 cap-sd-highspeed;
244 sd-uhs-sdr12;
245 sd-uhs-sdr25;
246 sd-uhs-sdr50;
247 };
Masahiro Yamada1d5df7b2016-02-02 21:11:36 +0900248
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900249 emmc: sdhc@5a500000 {
Masahiro Yamada6c7ad4d2018-09-10 12:58:35 +0900250 compatible = "socionext,uniphier-sd-v2.91";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900251 status = "disabled";
252 reg = <0x5a500000 0x200>;
253 interrupts = <0 78 4>;
Masahiro Yamada5ac92d82018-09-10 12:58:32 +0900254 pinctrl-names = "default";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900255 pinctrl-0 = <&pinctrl_emmc>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900256 clocks = <&mio_clk 1>;
Masahiro Yamada6c7ad4d2018-09-10 12:58:35 +0900257 reset-names = "host", "bridge", "hw";
258 resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900259 bus-width = <8>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900260 cap-mmc-highspeed;
261 cap-mmc-hw-reset;
Masahiro Yamada6c7ad4d2018-09-10 12:58:35 +0900262 non-removable;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900263 };
Masahiro Yamada80951832016-02-02 21:11:35 +0900264
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900265 usb0: usb@5a800100 {
266 compatible = "socionext,uniphier-ehci", "generic-ehci";
267 status = "disabled";
268 reg = <0x5a800100 0x100>;
269 interrupts = <0 80 4>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&pinctrl_usb0>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900272 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
273 <&mio_clk 12>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900274 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
275 <&mio_rst 12>;
Masahiro Yamadab61327d2018-03-15 11:43:03 +0900276 has-transaction-translator;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900277 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900278
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900279 usb1: usb@5a810100 {
280 compatible = "socionext,uniphier-ehci", "generic-ehci";
281 status = "disabled";
282 reg = <0x5a810100 0x100>;
283 interrupts = <0 81 4>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&pinctrl_usb1>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900286 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
287 <&mio_clk 13>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900288 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
289 <&mio_rst 13>;
Masahiro Yamadab61327d2018-03-15 11:43:03 +0900290 has-transaction-translator;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900291 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900292
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900293 usb2: usb@5a820100 {
294 compatible = "socionext,uniphier-ehci", "generic-ehci";
295 status = "disabled";
296 reg = <0x5a820100 0x100>;
297 interrupts = <0 82 4>;
298 pinctrl-names = "default";
299 pinctrl-0 = <&pinctrl_usb2>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900300 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
301 <&mio_clk 14>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900302 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
303 <&mio_rst 14>;
Masahiro Yamadab61327d2018-03-15 11:43:03 +0900304 has-transaction-translator;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900305 };
306
307 soc-glue@5f800000 {
308 compatible = "socionext,uniphier-sld8-soc-glue",
309 "simple-mfd", "syscon";
310 reg = <0x5f800000 0x2000>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900311
312 pinctrl: pinctrl {
313 compatible = "socionext,uniphier-sld8-pinctrl";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900314 };
315 };
316
Masahiro Yamadab61327d2018-03-15 11:43:03 +0900317 soc-glue@5f900000 {
318 compatible = "socionext,uniphier-sld8-soc-glue-debug",
319 "simple-mfd";
320 #address-cells = <1>;
321 #size-cells = <1>;
322 ranges = <0 0x5f900000 0x2000>;
323
324 efuse@100 {
325 compatible = "socionext,uniphier-efuse";
326 reg = <0x100 0x28>;
327 };
328
329 efuse@200 {
330 compatible = "socionext,uniphier-efuse";
331 reg = <0x200 0x14>;
332 };
333 };
334
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900335 timer@60000200 {
336 compatible = "arm,cortex-a9-global-timer";
337 reg = <0x60000200 0x20>;
338 interrupts = <1 11 0x104>;
339 clocks = <&arm_timer_clk>;
340 };
341
342 timer@60000600 {
343 compatible = "arm,cortex-a9-twd-timer";
344 reg = <0x60000600 0x20>;
345 interrupts = <1 13 0x104>;
346 clocks = <&arm_timer_clk>;
347 };
348
349 intc: interrupt-controller@60001000 {
350 compatible = "arm,cortex-a9-gic";
351 reg = <0x60001000 0x1000>,
352 <0x60000100 0x100>;
353 #interrupt-cells = <3>;
354 interrupt-controller;
355 };
356
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900357 aidet: aidet@61830000 {
358 compatible = "socionext,uniphier-sld8-aidet";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900359 reg = <0x61830000 0x200>;
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900360 interrupt-controller;
361 #interrupt-cells = <2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900362 };
363
364 sysctrl@61840000 {
365 compatible = "socionext,uniphier-sld8-sysctrl",
366 "simple-mfd", "syscon";
367 reg = <0x61840000 0x10000>;
368
369 sys_clk: clock {
370 compatible = "socionext,uniphier-sld8-clock";
371 #clock-cells = <1>;
372 };
373
374 sys_rst: reset {
375 compatible = "socionext,uniphier-sld8-reset";
376 #reset-cells = <1>;
377 };
378 };
379
380 nand: nand@68000000 {
Masahiro Yamada938ab162017-05-15 14:23:46 +0900381 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900382 status = "disabled";
383 reg-names = "nand_data", "denali_reg";
384 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
385 interrupts = <0 65 4>;
386 pinctrl-names = "default";
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900387 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900388 clocks = <&sys_clk 2>;
Masahiro Yamada6c086d02017-11-25 00:25:35 +0900389 resets = <&sys_rst 2>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900390 };
391 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900392};
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900393
Masahiro Yamada1a420bd2017-08-29 12:20:52 +0900394#include "uniphier-pinctrl.dtsi"