]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
arm64: dts: uniphier: add SPI node for LD20, LD11 and PXs3
[mirror_ubuntu-hirsute-kernel.git] / arch / arm64 / boot / dts / socionext / uniphier-pxs3.dtsi
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 //
3 // Device Tree Source for UniPhier PXs3 SoC
4 //
5 // Copyright (C) 2017 Socionext Inc.
6 // Author: Masahiro Yamada <yamada.masahiro@socionext.com>
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/gpio/uniphier-gpio.h>
10
11 /memreserve/ 0x80000000 0x02000000;
12
13 / {
14 compatible = "socionext,uniphier-pxs3";
15 #address-cells = <2>;
16 #size-cells = <2>;
17 interrupt-parent = <&gic>;
18
19 cpus {
20 #address-cells = <2>;
21 #size-cells = <0>;
22
23 cpu-map {
24 cluster0 {
25 core0 {
26 cpu = <&cpu0>;
27 };
28 core1 {
29 cpu = <&cpu1>;
30 };
31 core2 {
32 cpu = <&cpu2>;
33 };
34 core3 {
35 cpu = <&cpu3>;
36 };
37 };
38 };
39
40 cpu0: cpu@0 {
41 device_type = "cpu";
42 compatible = "arm,cortex-a53", "arm,armv8";
43 reg = <0 0x000>;
44 clocks = <&sys_clk 33>;
45 enable-method = "psci";
46 operating-points-v2 = <&cluster0_opp>;
47 };
48
49 cpu1: cpu@1 {
50 device_type = "cpu";
51 compatible = "arm,cortex-a53", "arm,armv8";
52 reg = <0 0x001>;
53 clocks = <&sys_clk 33>;
54 enable-method = "psci";
55 operating-points-v2 = <&cluster0_opp>;
56 };
57
58 cpu2: cpu@2 {
59 device_type = "cpu";
60 compatible = "arm,cortex-a53", "arm,armv8";
61 reg = <0 0x002>;
62 clocks = <&sys_clk 33>;
63 enable-method = "psci";
64 operating-points-v2 = <&cluster0_opp>;
65 };
66
67 cpu3: cpu@3 {
68 device_type = "cpu";
69 compatible = "arm,cortex-a53", "arm,armv8";
70 reg = <0 0x003>;
71 clocks = <&sys_clk 33>;
72 enable-method = "psci";
73 operating-points-v2 = <&cluster0_opp>;
74 };
75 };
76
77 cluster0_opp: opp-table {
78 compatible = "operating-points-v2";
79 opp-shared;
80
81 opp-250000000 {
82 opp-hz = /bits/ 64 <250000000>;
83 clock-latency-ns = <300>;
84 };
85 opp-325000000 {
86 opp-hz = /bits/ 64 <325000000>;
87 clock-latency-ns = <300>;
88 };
89 opp-500000000 {
90 opp-hz = /bits/ 64 <500000000>;
91 clock-latency-ns = <300>;
92 };
93 opp-650000000 {
94 opp-hz = /bits/ 64 <650000000>;
95 clock-latency-ns = <300>;
96 };
97 opp-666667000 {
98 opp-hz = /bits/ 64 <666667000>;
99 clock-latency-ns = <300>;
100 };
101 opp-866667000 {
102 opp-hz = /bits/ 64 <866667000>;
103 clock-latency-ns = <300>;
104 };
105 opp-1000000000 {
106 opp-hz = /bits/ 64 <1000000000>;
107 clock-latency-ns = <300>;
108 };
109 opp-1300000000 {
110 opp-hz = /bits/ 64 <1300000000>;
111 clock-latency-ns = <300>;
112 };
113 };
114
115 psci {
116 compatible = "arm,psci-1.0";
117 method = "smc";
118 };
119
120 clocks {
121 refclk: ref {
122 compatible = "fixed-clock";
123 #clock-cells = <0>;
124 clock-frequency = <25000000>;
125 };
126 };
127
128 emmc_pwrseq: emmc-pwrseq {
129 compatible = "mmc-pwrseq-emmc";
130 reset-gpios = <&gpio UNIPHIER_GPIO_PORT(5, 7) GPIO_ACTIVE_LOW>;
131 };
132
133 timer {
134 compatible = "arm,armv8-timer";
135 interrupts = <1 13 4>,
136 <1 14 4>,
137 <1 11 4>,
138 <1 10 4>;
139 };
140
141 soc@0 {
142 compatible = "simple-bus";
143 #address-cells = <1>;
144 #size-cells = <1>;
145 ranges = <0 0 0 0xffffffff>;
146
147 spi0: spi@54006000 {
148 compatible = "socionext,uniphier-scssi";
149 status = "disabled";
150 reg = <0x54006000 0x100>;
151 interrupts = <0 39 4>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_spi0>;
154 clocks = <&peri_clk 11>;
155 resets = <&peri_rst 11>;
156 };
157
158 spi1: spi@54006100 {
159 compatible = "socionext,uniphier-scssi";
160 status = "disabled";
161 reg = <0x54006100 0x100>;
162 interrupts = <0 216 4>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_spi1>;
165 clocks = <&peri_clk 11>;
166 resets = <&peri_rst 11>;
167 };
168
169 serial0: serial@54006800 {
170 compatible = "socionext,uniphier-uart";
171 status = "disabled";
172 reg = <0x54006800 0x40>;
173 interrupts = <0 33 4>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_uart0>;
176 clocks = <&peri_clk 0>;
177 resets = <&peri_rst 0>;
178 };
179
180 serial1: serial@54006900 {
181 compatible = "socionext,uniphier-uart";
182 status = "disabled";
183 reg = <0x54006900 0x40>;
184 interrupts = <0 35 4>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pinctrl_uart1>;
187 clocks = <&peri_clk 1>;
188 resets = <&peri_rst 1>;
189 };
190
191 serial2: serial@54006a00 {
192 compatible = "socionext,uniphier-uart";
193 status = "disabled";
194 reg = <0x54006a00 0x40>;
195 interrupts = <0 37 4>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_uart2>;
198 clocks = <&peri_clk 2>;
199 resets = <&peri_rst 2>;
200 };
201
202 serial3: serial@54006b00 {
203 compatible = "socionext,uniphier-uart";
204 status = "disabled";
205 reg = <0x54006b00 0x40>;
206 interrupts = <0 177 4>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&pinctrl_uart3>;
209 clocks = <&peri_clk 3>;
210 resets = <&peri_rst 3>;
211 };
212
213 gpio: gpio@55000000 {
214 compatible = "socionext,uniphier-gpio";
215 reg = <0x55000000 0x200>;
216 interrupt-parent = <&aidet>;
217 interrupt-controller;
218 #interrupt-cells = <2>;
219 gpio-controller;
220 #gpio-cells = <2>;
221 gpio-ranges = <&pinctrl 0 0 0>,
222 <&pinctrl 104 0 0>,
223 <&pinctrl 168 0 0>;
224 gpio-ranges-group-names = "gpio_range0",
225 "gpio_range1",
226 "gpio_range2";
227 ngpios = <286>;
228 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
229 <21 217 3>;
230 };
231
232 i2c0: i2c@58780000 {
233 compatible = "socionext,uniphier-fi2c";
234 status = "disabled";
235 reg = <0x58780000 0x80>;
236 #address-cells = <1>;
237 #size-cells = <0>;
238 interrupts = <0 41 4>;
239 pinctrl-names = "default";
240 pinctrl-0 = <&pinctrl_i2c0>;
241 clocks = <&peri_clk 4>;
242 resets = <&peri_rst 4>;
243 clock-frequency = <100000>;
244 };
245
246 i2c1: i2c@58781000 {
247 compatible = "socionext,uniphier-fi2c";
248 status = "disabled";
249 reg = <0x58781000 0x80>;
250 #address-cells = <1>;
251 #size-cells = <0>;
252 interrupts = <0 42 4>;
253 pinctrl-names = "default";
254 pinctrl-0 = <&pinctrl_i2c1>;
255 clocks = <&peri_clk 5>;
256 resets = <&peri_rst 5>;
257 clock-frequency = <100000>;
258 };
259
260 i2c2: i2c@58782000 {
261 compatible = "socionext,uniphier-fi2c";
262 status = "disabled";
263 reg = <0x58782000 0x80>;
264 #address-cells = <1>;
265 #size-cells = <0>;
266 interrupts = <0 43 4>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_i2c2>;
269 clocks = <&peri_clk 6>;
270 resets = <&peri_rst 6>;
271 clock-frequency = <100000>;
272 };
273
274 i2c3: i2c@58783000 {
275 compatible = "socionext,uniphier-fi2c";
276 status = "disabled";
277 reg = <0x58783000 0x80>;
278 #address-cells = <1>;
279 #size-cells = <0>;
280 interrupts = <0 44 4>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&pinctrl_i2c3>;
283 clocks = <&peri_clk 7>;
284 resets = <&peri_rst 7>;
285 clock-frequency = <100000>;
286 };
287
288 /* chip-internal connection for HDMI */
289 i2c6: i2c@58786000 {
290 compatible = "socionext,uniphier-fi2c";
291 reg = <0x58786000 0x80>;
292 #address-cells = <1>;
293 #size-cells = <0>;
294 interrupts = <0 26 4>;
295 clocks = <&peri_clk 10>;
296 resets = <&peri_rst 10>;
297 clock-frequency = <400000>;
298 };
299
300 system_bus: system-bus@58c00000 {
301 compatible = "socionext,uniphier-system-bus";
302 status = "disabled";
303 reg = <0x58c00000 0x400>;
304 #address-cells = <2>;
305 #size-cells = <1>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_system_bus>;
308 };
309
310 smpctrl@59801000 {
311 compatible = "socionext,uniphier-smpctrl";
312 reg = <0x59801000 0x400>;
313 };
314
315 sdctrl@59810000 {
316 compatible = "socionext,uniphier-pxs3-sdctrl",
317 "simple-mfd", "syscon";
318 reg = <0x59810000 0x400>;
319
320 sd_clk: clock {
321 compatible = "socionext,uniphier-pxs3-sd-clock";
322 #clock-cells = <1>;
323 };
324
325 sd_rst: reset {
326 compatible = "socionext,uniphier-pxs3-sd-reset";
327 #reset-cells = <1>;
328 };
329 };
330
331 perictrl@59820000 {
332 compatible = "socionext,uniphier-pxs3-perictrl",
333 "simple-mfd", "syscon";
334 reg = <0x59820000 0x200>;
335
336 peri_clk: clock {
337 compatible = "socionext,uniphier-pxs3-peri-clock";
338 #clock-cells = <1>;
339 };
340
341 peri_rst: reset {
342 compatible = "socionext,uniphier-pxs3-peri-reset";
343 #reset-cells = <1>;
344 };
345 };
346
347 emmc: sdhc@5a000000 {
348 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
349 reg = <0x5a000000 0x400>;
350 interrupts = <0 78 4>;
351 pinctrl-names = "default";
352 pinctrl-0 = <&pinctrl_emmc>;
353 clocks = <&sys_clk 4>;
354 resets = <&sys_rst 4>;
355 bus-width = <8>;
356 mmc-ddr-1_8v;
357 mmc-hs200-1_8v;
358 mmc-pwrseq = <&emmc_pwrseq>;
359 cdns,phy-input-delay-legacy = <9>;
360 cdns,phy-input-delay-mmc-highspeed = <2>;
361 cdns,phy-input-delay-mmc-ddr = <3>;
362 cdns,phy-dll-delay-sdclk = <21>;
363 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
364 };
365
366 soc_glue: soc-glue@5f800000 {
367 compatible = "socionext,uniphier-pxs3-soc-glue",
368 "simple-mfd", "syscon";
369 reg = <0x5f800000 0x2000>;
370
371 pinctrl: pinctrl {
372 compatible = "socionext,uniphier-pxs3-pinctrl";
373 };
374 };
375
376 soc-glue@5f900000 {
377 compatible = "socionext,uniphier-pxs3-soc-glue-debug",
378 "simple-mfd";
379 #address-cells = <1>;
380 #size-cells = <1>;
381 ranges = <0 0x5f900000 0x2000>;
382
383 efuse@100 {
384 compatible = "socionext,uniphier-efuse";
385 reg = <0x100 0x28>;
386 };
387
388 efuse@200 {
389 compatible = "socionext,uniphier-efuse";
390 reg = <0x200 0x68>;
391 };
392 };
393
394 aidet: aidet@5fc20000 {
395 compatible = "socionext,uniphier-pxs3-aidet";
396 reg = <0x5fc20000 0x200>;
397 interrupt-controller;
398 #interrupt-cells = <2>;
399 };
400
401 gic: interrupt-controller@5fe00000 {
402 compatible = "arm,gic-v3";
403 reg = <0x5fe00000 0x10000>, /* GICD */
404 <0x5fe80000 0x80000>; /* GICR */
405 interrupt-controller;
406 #interrupt-cells = <3>;
407 interrupts = <1 9 4>;
408 };
409
410 sysctrl@61840000 {
411 compatible = "socionext,uniphier-pxs3-sysctrl",
412 "simple-mfd", "syscon";
413 reg = <0x61840000 0x10000>;
414
415 sys_clk: clock {
416 compatible = "socionext,uniphier-pxs3-clock";
417 #clock-cells = <1>;
418 };
419
420 sys_rst: reset {
421 compatible = "socionext,uniphier-pxs3-reset";
422 #reset-cells = <1>;
423 };
424
425 watchdog {
426 compatible = "socionext,uniphier-wdt";
427 };
428 };
429
430 eth0: ethernet@65000000 {
431 compatible = "socionext,uniphier-pxs3-ave4";
432 status = "disabled";
433 reg = <0x65000000 0x8500>;
434 interrupts = <0 66 4>;
435 pinctrl-names = "default";
436 pinctrl-0 = <&pinctrl_ether_rgmii>;
437 clock-names = "ether";
438 clocks = <&sys_clk 6>;
439 reset-names = "ether";
440 resets = <&sys_rst 6>;
441 phy-mode = "rgmii";
442 local-mac-address = [00 00 00 00 00 00];
443 socionext,syscon-phy-mode = <&soc_glue 0>;
444
445 mdio0: mdio {
446 #address-cells = <1>;
447 #size-cells = <0>;
448 };
449 };
450
451 eth1: ethernet@65200000 {
452 compatible = "socionext,uniphier-pxs3-ave4";
453 status = "disabled";
454 reg = <0x65200000 0x8500>;
455 interrupts = <0 67 4>;
456 pinctrl-names = "default";
457 pinctrl-0 = <&pinctrl_ether1_rgmii>;
458 clock-names = "ether";
459 clocks = <&sys_clk 7>;
460 reset-names = "ether";
461 resets = <&sys_rst 7>;
462 phy-mode = "rgmii";
463 local-mac-address = [00 00 00 00 00 00];
464 socionext,syscon-phy-mode = <&soc_glue 1>;
465
466 mdio1: mdio {
467 #address-cells = <1>;
468 #size-cells = <0>;
469 };
470 };
471
472 nand: nand@68000000 {
473 compatible = "socionext,uniphier-denali-nand-v5b";
474 status = "disabled";
475 reg-names = "nand_data", "denali_reg";
476 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
477 interrupts = <0 65 4>;
478 pinctrl-names = "default";
479 pinctrl-0 = <&pinctrl_nand>;
480 clock-names = "nand", "nand_x", "ecc";
481 clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
482 resets = <&sys_rst 2>;
483 };
484 };
485 };
486
487 #include "uniphier-pinctrl.dtsi"