blob: b64107b3dd4af1a61f779d3d5fd3374c3b29800b [file] [log] [blame]
Masahiro Yamadaedbecf52015-08-28 22:33:15 +09001/*
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier PXs2 SoC
Masahiro Yamadaedbecf52015-08-28 22:33:15 +09003 *
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadaedbecf52015-08-28 22:33:15 +09006 *
7 * SPDX-License-Identifier: GPL-2.0+ X11
8 */
9
Masahiro Yamada3de725b2015-12-16 10:54:07 +090010/include/ "uniphier-common32.dtsi"
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090011
12/ {
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090013 compatible = "socionext,uniphier-pxs2";
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090014
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +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 Yamadaedbecf52015-08-28 22:33:15 +090025 };
26
27 cpu@1 {
28 device_type = "cpu";
29 compatible = "arm,cortex-a9";
30 reg = <1>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090031 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090032 next-level-cache = <&l2>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090033 };
34
35 cpu@2 {
36 device_type = "cpu";
37 compatible = "arm,cortex-a9";
38 reg = <2>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090039 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090040 next-level-cache = <&l2>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090041 };
42
43 cpu@3 {
44 device_type = "cpu";
45 compatible = "arm,cortex-a9";
46 reg = <3>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090047 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090048 next-level-cache = <&l2>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090049 };
50 };
51
52 clocks {
53 arm_timer_clk: arm_timer_clk {
54 #clock-cells = <0>;
55 compatible = "fixed-clock";
56 clock-frequency = <50000000>;
57 };
58
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090059 i2c_clk: i2c_clk {
60 #clock-cells = <0>;
61 compatible = "fixed-clock";
62 clock-frequency = <50000000>;
63 };
64 };
Masahiro Yamada3de725b2015-12-16 10:54:07 +090065};
Masahiro Yamadaedbecf52015-08-28 22:33:15 +090066
Masahiro Yamada3de725b2015-12-16 10:54:07 +090067&soc {
Masahiro Yamadab36f3052015-12-16 10:54:08 +090068 l2: l2-cache@500c0000 {
69 compatible = "socionext,uniphier-system-cache";
70 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
71 interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
72 cache-unified;
73 cache-size = <(1280 * 1024)>;
74 cache-sets = <512>;
75 cache-line-size = <128>;
76 cache-level = <2>;
77 };
78
Masahiro Yamada6835b452016-02-16 17:03:51 +090079 port0x: gpio@55000008 {
80 compatible = "socionext,uniphier-gpio";
81 reg = <0x55000008 0x8>;
82 gpio-controller;
83 #gpio-cells = <2>;
84 };
85
86 port1x: gpio@55000010 {
87 compatible = "socionext,uniphier-gpio";
88 reg = <0x55000010 0x8>;
89 gpio-controller;
90 #gpio-cells = <2>;
91 };
92
93 port2x: gpio@55000018 {
94 compatible = "socionext,uniphier-gpio";
95 reg = <0x55000018 0x8>;
96 gpio-controller;
97 #gpio-cells = <2>;
98 };
99
100 port3x: gpio@55000020 {
101 compatible = "socionext,uniphier-gpio";
102 reg = <0x55000020 0x8>;
103 gpio-controller;
104 #gpio-cells = <2>;
105 };
106
107 port4: gpio@55000028 {
108 compatible = "socionext,uniphier-gpio";
109 reg = <0x55000028 0x8>;
110 gpio-controller;
111 #gpio-cells = <2>;
112 };
113
114 port5x: gpio@55000030 {
115 compatible = "socionext,uniphier-gpio";
116 reg = <0x55000030 0x8>;
117 gpio-controller;
118 #gpio-cells = <2>;
119 };
120
121 port6x: gpio@55000038 {
122 compatible = "socionext,uniphier-gpio";
123 reg = <0x55000038 0x8>;
124 gpio-controller;
125 #gpio-cells = <2>;
126 };
127
128 port7x: gpio@55000040 {
129 compatible = "socionext,uniphier-gpio";
130 reg = <0x55000040 0x8>;
131 gpio-controller;
132 #gpio-cells = <2>;
133 };
134
135 port8x: gpio@55000048 {
136 compatible = "socionext,uniphier-gpio";
137 reg = <0x55000048 0x8>;
138 gpio-controller;
139 #gpio-cells = <2>;
140 };
141
142 port9x: gpio@55000050 {
143 compatible = "socionext,uniphier-gpio";
144 reg = <0x55000050 0x8>;
145 gpio-controller;
146 #gpio-cells = <2>;
147 };
148
149 port10x: gpio@55000058 {
150 compatible = "socionext,uniphier-gpio";
151 reg = <0x55000058 0x8>;
152 gpio-controller;
153 #gpio-cells = <2>;
154 };
155
156 port12x: gpio@55000068 {
157 compatible = "socionext,uniphier-gpio";
158 reg = <0x55000068 0x8>;
159 gpio-controller;
160 #gpio-cells = <2>;
161 };
162
163 port13x: gpio@55000070 {
164 compatible = "socionext,uniphier-gpio";
165 reg = <0x55000070 0x8>;
166 gpio-controller;
167 #gpio-cells = <2>;
168 };
169
170 port14x: gpio@55000078 {
171 compatible = "socionext,uniphier-gpio";
172 reg = <0x55000078 0x8>;
173 gpio-controller;
174 #gpio-cells = <2>;
175 };
176
177 port15x: gpio@55000080 {
178 compatible = "socionext,uniphier-gpio";
179 reg = <0x55000080 0x8>;
180 gpio-controller;
181 #gpio-cells = <2>;
182 };
183
184 port16x: gpio@55000088 {
185 compatible = "socionext,uniphier-gpio";
186 reg = <0x55000088 0x8>;
187 gpio-controller;
188 #gpio-cells = <2>;
189 };
190
191 port17x: gpio@550000a0 {
192 compatible = "socionext,uniphier-gpio";
193 reg = <0x550000a0 0x8>;
194 gpio-controller;
195 #gpio-cells = <2>;
196 };
197
198 port18x: gpio@550000a8 {
199 compatible = "socionext,uniphier-gpio";
200 reg = <0x550000a8 0x8>;
201 gpio-controller;
202 #gpio-cells = <2>;
203 };
204
205 port19x: gpio@550000b0 {
206 compatible = "socionext,uniphier-gpio";
207 reg = <0x550000b0 0x8>;
208 gpio-controller;
209 #gpio-cells = <2>;
210 };
211
212 port20x: gpio@550000b8 {
213 compatible = "socionext,uniphier-gpio";
214 reg = <0x550000b8 0x8>;
215 gpio-controller;
216 #gpio-cells = <2>;
217 };
218
219 port21x: gpio@550000c0 {
220 compatible = "socionext,uniphier-gpio";
221 reg = <0x550000c0 0x8>;
222 gpio-controller;
223 #gpio-cells = <2>;
224 };
225
226 port22x: gpio@550000c8 {
227 compatible = "socionext,uniphier-gpio";
228 reg = <0x550000c8 0x8>;
229 gpio-controller;
230 #gpio-cells = <2>;
231 };
232
233 port23x: gpio@550000d0 {
234 compatible = "socionext,uniphier-gpio";
235 reg = <0x550000d0 0x8>;
236 gpio-controller;
237 #gpio-cells = <2>;
238 };
239
240 port24x: gpio@550000d8 {
241 compatible = "socionext,uniphier-gpio";
242 reg = <0x550000d8 0x8>;
243 gpio-controller;
244 #gpio-cells = <2>;
245 };
246
247 port25x: gpio@550000e0 {
248 compatible = "socionext,uniphier-gpio";
249 reg = <0x550000e0 0x8>;
250 gpio-controller;
251 #gpio-cells = <2>;
252 };
253
254 port26x: gpio@550000e8 {
255 compatible = "socionext,uniphier-gpio";
256 reg = <0x550000e8 0x8>;
257 gpio-controller;
258 #gpio-cells = <2>;
259 };
260
261 port27x: gpio@550000f0 {
262 compatible = "socionext,uniphier-gpio";
263 reg = <0x550000f0 0x8>;
264 gpio-controller;
265 #gpio-cells = <2>;
266 };
267
268 port28x: gpio@550000f8 {
269 compatible = "socionext,uniphier-gpio";
270 reg = <0x550000f8 0x8>;
271 gpio-controller;
272 #gpio-cells = <2>;
273 };
274
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900275 i2c0: i2c@58780000 {
276 compatible = "socionext,uniphier-fi2c";
277 status = "disabled";
278 reg = <0x58780000 0x80>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900279 #address-cells = <1>;
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900280 #size-cells = <0>;
281 interrupts = <0 41 4>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&pinctrl_i2c0>;
284 clocks = <&i2c_clk>;
285 clock-frequency = <100000>;
286 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900287
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900288 i2c1: i2c@58781000 {
289 compatible = "socionext,uniphier-fi2c";
290 status = "disabled";
291 reg = <0x58781000 0x80>;
292 #address-cells = <1>;
293 #size-cells = <0>;
294 interrupts = <0 42 4>;
295 pinctrl-names = "default";
296 pinctrl-0 = <&pinctrl_i2c1>;
297 clocks = <&i2c_clk>;
298 clock-frequency = <100000>;
299 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900300
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900301 i2c2: i2c@58782000 {
302 compatible = "socionext,uniphier-fi2c";
303 status = "disabled";
304 reg = <0x58782000 0x80>;
305 #address-cells = <1>;
306 #size-cells = <0>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&pinctrl_i2c2>;
309 interrupts = <0 43 4>;
310 clocks = <&i2c_clk>;
311 clock-frequency = <100000>;
312 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900313
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900314 i2c3: i2c@58783000 {
315 compatible = "socionext,uniphier-fi2c";
316 status = "disabled";
317 reg = <0x58783000 0x80>;
318 #address-cells = <1>;
319 #size-cells = <0>;
320 interrupts = <0 44 4>;
321 pinctrl-names = "default";
322 pinctrl-0 = <&pinctrl_i2c3>;
323 clocks = <&i2c_clk>;
324 clock-frequency = <100000>;
325 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900326
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900327 /* chip-internal connection for DMD */
328 i2c4: i2c@58784000 {
329 compatible = "socionext,uniphier-fi2c";
330 reg = <0x58784000 0x80>;
331 #address-cells = <1>;
332 #size-cells = <0>;
333 interrupts = <0 45 4>;
334 clocks = <&i2c_clk>;
335 clock-frequency = <400000>;
336 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900337
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900338 /* chip-internal connection for STM */
339 i2c5: i2c@58785000 {
340 compatible = "socionext,uniphier-fi2c";
341 reg = <0x58785000 0x80>;
342 #address-cells = <1>;
343 #size-cells = <0>;
344 interrupts = <0 25 4>;
345 clocks = <&i2c_clk>;
346 clock-frequency = <400000>;
347 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900348
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900349 /* chip-internal connection for HDMI */
350 i2c6: i2c@58786000 {
351 compatible = "socionext,uniphier-fi2c";
352 reg = <0x58786000 0x80>;
353 #address-cells = <1>;
354 #size-cells = <0>;
355 interrupts = <0 26 4>;
356 clocks = <&i2c_clk>;
357 clock-frequency = <400000>;
358 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900359
Masahiro Yamada299307d2016-02-18 19:52:50 +0900360 emmc: sdhc@5a000000 {
361 compatible = "socionext,uniphier-sdhc";
362 status = "disabled";
363 reg = <0x5a000000 0x800>;
364 interrupts = <0 78 4>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&pinctrl_emmc>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900367 clocks = <&mio_clk 1>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +0900368 reset-names = "host", "hw-reset";
369 resets = <&mio_rst 1>, <&mio_rst 6>;
Masahiro Yamada299307d2016-02-18 19:52:50 +0900370 bus-width = <8>;
371 non-removable;
372 };
373
374 sd: sdhc@5a400000 {
375 compatible = "socionext,uniphier-sdhc";
376 status = "disabled";
377 reg = <0x5a400000 0x800>;
378 interrupts = <0 76 4>;
379 pinctrl-names = "default", "1.8v";
380 pinctrl-0 = <&pinctrl_sd>;
381 pinctrl-1 = <&pinctrl_sd_1v8>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900382 clocks = <&mio_clk 0>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +0900383 reset-names = "host";
384 resets = <&mio_rst 0>;
Masahiro Yamada299307d2016-02-18 19:52:50 +0900385 bus-width = <4>;
386 };
387
Masahiro Yamada2707e832016-06-29 19:39:02 +0900388 aidet@5fc20000 {
389 compatible = "simple-mfd", "syscon";
390 reg = <0x5fc20000 0x200>;
391 };
392
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900393 usb0: usb@65a00000 {
394 compatible = "socionext,uniphier-xhci", "generic-xhci";
395 status = "disabled";
396 reg = <0x65a00000 0x100>;
Masahiro Yamadab36f3052015-12-16 10:54:08 +0900397 interrupts = <0 134 4>;
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900398 pinctrl-names = "default";
399 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900400 };
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900401
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900402 usb1: usb@65c00000 {
403 compatible = "socionext,uniphier-xhci", "generic-xhci";
404 status = "disabled";
405 reg = <0x65c00000 0x100>;
Masahiro Yamadab36f3052015-12-16 10:54:08 +0900406 interrupts = <0 137 4>;
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900407 pinctrl-names = "default";
408 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900409 };
410};
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900411
Masahiro Yamada224e2f72016-02-02 21:11:33 +0900412&refclk {
413 clock-frequency = <25000000>;
414};
415
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900416&serial0 {
417 clock-frequency = <88900000>;
418};
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900419
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900420&serial1 {
421 clock-frequency = <88900000>;
422};
Masahiro Yamadaa4e54cc2015-11-04 21:56:07 +0900423
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900424&serial2 {
425 clock-frequency = <88900000>;
426};
Masahiro Yamadaa4e54cc2015-11-04 21:56:07 +0900427
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900428&serial3 {
429 clock-frequency = <88900000>;
Masahiro Yamadaedbecf52015-08-28 22:33:15 +0900430};
431
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900432&mio_clk {
433 compatible = "socionext,uniphier-pxs2-mio-clock";
434};
435
436&mio_rst {
437 compatible = "socionext,uniphier-pxs2-mio-reset";
438};
439
440&peri_clk {
441 compatible = "socionext,uniphier-pxs2-peri-clock";
Masahiro Yamada1d5df7b2016-02-02 21:11:36 +0900442};
443
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900444&peri_rst {
445 compatible = "socionext,uniphier-pxs2-peri-reset";
Masahiro Yamada80951832016-02-02 21:11:35 +0900446};
447
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900448&pinctrl {
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900449 compatible = "socionext,uniphier-pxs2-pinctrl";
Masahiro Yamada3de725b2015-12-16 10:54:07 +0900450};
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900451
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900452&sys_clk {
453 compatible = "socionext,uniphier-pxs2-clock";
454};
455
456&sys_rst {
457 compatible = "socionext,uniphier-pxs2-reset";
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900458};