blob: 91d6dde030ab7eaf21b5a18fd6cdf0f97ffd6460 [file] [log] [blame]
Masahiro Yamada3e98fc12018-04-16 12:35:33 +09001// 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>
Masahiro Yamada61e6cc02017-01-21 18:05:30 +09007
Masahiro Yamadab443fb42017-11-25 00:25:35 +09008#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/gpio/uniphier-gpio.h>
Kunihiko Hayashi051451a2023-02-28 11:37:09 +090010#include <dt-bindings/interrupt-controller/arm-gic.h>
Masahiro Yamada08520332020-07-09 15:08:14 +090011#include <dt-bindings/thermal/thermal.h>
Masahiro Yamadab443fb42017-11-25 00:25:35 +090012
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090013/ {
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";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +090042 compatible = "arm,cortex-a53";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090043 reg = <0 0x000>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090044 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090045 enable-method = "psci";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +090046 next-level-cache = <&l2>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090047 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada08520332020-07-09 15:08:14 +090048 #cooling-cells = <2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090049 };
50
51 cpu1: cpu@1 {
52 device_type = "cpu";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +090053 compatible = "arm,cortex-a53";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090054 reg = <0 0x001>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090055 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090056 enable-method = "psci";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +090057 next-level-cache = <&l2>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090058 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada08520332020-07-09 15:08:14 +090059 #cooling-cells = <2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090060 };
61
62 cpu2: cpu@2 {
63 device_type = "cpu";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +090064 compatible = "arm,cortex-a53";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090065 reg = <0 0x002>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090066 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090067 enable-method = "psci";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +090068 next-level-cache = <&l2>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090069 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada08520332020-07-09 15:08:14 +090070 #cooling-cells = <2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090071 };
72
73 cpu3: cpu@3 {
74 device_type = "cpu";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +090075 compatible = "arm,cortex-a53";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090076 reg = <0 0x003>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090077 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090078 enable-method = "psci";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +090079 next-level-cache = <&l2>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090080 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada08520332020-07-09 15:08:14 +090081 #cooling-cells = <2>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090082 };
Kunihiko Hayashi051451a2023-02-28 11:37:09 +090083
84 l2: l2-cache {
85 compatible = "cache";
86 };
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090087 };
88
Masahiro Yamadab443fb42017-11-25 00:25:35 +090089 cluster0_opp: opp-table {
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090090 compatible = "operating-points-v2";
91 opp-shared;
92
93 opp-250000000 {
94 opp-hz = /bits/ 64 <250000000>;
95 clock-latency-ns = <300>;
96 };
97 opp-325000000 {
98 opp-hz = /bits/ 64 <325000000>;
99 clock-latency-ns = <300>;
100 };
101 opp-500000000 {
102 opp-hz = /bits/ 64 <500000000>;
103 clock-latency-ns = <300>;
104 };
105 opp-650000000 {
106 opp-hz = /bits/ 64 <650000000>;
107 clock-latency-ns = <300>;
108 };
109 opp-666667000 {
110 opp-hz = /bits/ 64 <666667000>;
111 clock-latency-ns = <300>;
112 };
113 opp-866667000 {
114 opp-hz = /bits/ 64 <866667000>;
115 clock-latency-ns = <300>;
116 };
117 opp-1000000000 {
118 opp-hz = /bits/ 64 <1000000000>;
119 clock-latency-ns = <300>;
120 };
121 opp-1300000000 {
122 opp-hz = /bits/ 64 <1300000000>;
123 clock-latency-ns = <300>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900124 };
125 };
126
127 psci {
128 compatible = "arm,psci-1.0";
129 method = "smc";
130 };
131
132 clocks {
133 refclk: ref {
134 compatible = "fixed-clock";
135 #clock-cells = <0>;
136 clock-frequency = <25000000>;
137 };
138 };
139
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900140 emmc_pwrseq: emmc-pwrseq {
141 compatible = "mmc-pwrseq-emmc";
142 reset-gpios = <&gpio UNIPHIER_GPIO_PORT(5, 7) GPIO_ACTIVE_LOW>;
143 };
144
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900145 timer {
146 compatible = "arm,armv8-timer";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900147 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
148 <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
149 <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
150 <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900151 };
152
Masahiro Yamada08520332020-07-09 15:08:14 +0900153 thermal-zones {
154 cpu-thermal {
155 polling-delay-passive = <250>; /* 250ms */
156 polling-delay = <1000>; /* 1000ms */
157 thermal-sensors = <&pvtctl>;
158
159 trips {
160 cpu_crit: cpu-crit {
161 temperature = <110000>; /* 110C */
162 hysteresis = <2000>;
163 type = "critical";
164 };
165 cpu_alert: cpu-alert {
166 temperature = <100000>; /* 100C */
167 hysteresis = <2000>;
168 type = "passive";
169 };
170 };
171
172 cooling-maps {
173 map0 {
174 trip = <&cpu_alert>;
175 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
176 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
177 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
178 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
179 };
180 };
181 };
182 };
183
Masahiro Yamada47eb8ad2019-07-10 20:07:29 +0900184 reserved-memory {
185 #address-cells = <2>;
186 #size-cells = <2>;
187 ranges;
188
189 secure-memory@81000000 {
190 reg = <0x0 0x81000000 0x0 0x01000000>;
191 no-map;
192 };
193 };
194
Masahiro Yamada7ad79c12017-03-13 00:16:40 +0900195 soc@0 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900196 compatible = "simple-bus";
197 #address-cells = <1>;
198 #size-cells = <1>;
199 ranges = <0 0 0 0xffffffff>;
200
Masahiro Yamada2001a812018-12-19 20:03:21 +0900201 spi0: spi@54006000 {
202 compatible = "socionext,uniphier-scssi";
203 status = "disabled";
204 reg = <0x54006000 0x100>;
Masahiro Yamada08520332020-07-09 15:08:14 +0900205 #address-cells = <1>;
206 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900207 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_spi0>;
210 clocks = <&peri_clk 11>;
211 resets = <&peri_rst 11>;
212 };
213
214 spi1: spi@54006100 {
215 compatible = "socionext,uniphier-scssi";
216 status = "disabled";
217 reg = <0x54006100 0x100>;
Masahiro Yamada08520332020-07-09 15:08:14 +0900218 #address-cells = <1>;
219 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900220 interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900221 pinctrl-names = "default";
222 pinctrl-0 = <&pinctrl_spi1>;
Masahiro Yamada08520332020-07-09 15:08:14 +0900223 clocks = <&peri_clk 12>;
224 resets = <&peri_rst 12>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900225 };
226
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900227 serial0: serial@54006800 {
228 compatible = "socionext,uniphier-uart";
229 status = "disabled";
230 reg = <0x54006800 0x40>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900231 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900232 pinctrl-names = "default";
233 pinctrl-0 = <&pinctrl_uart0>;
234 clocks = <&peri_clk 0>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900235 resets = <&peri_rst 0>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900236 };
237
238 serial1: serial@54006900 {
239 compatible = "socionext,uniphier-uart";
240 status = "disabled";
241 reg = <0x54006900 0x40>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900242 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900243 pinctrl-names = "default";
244 pinctrl-0 = <&pinctrl_uart1>;
245 clocks = <&peri_clk 1>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900246 resets = <&peri_rst 1>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900247 };
248
249 serial2: serial@54006a00 {
250 compatible = "socionext,uniphier-uart";
251 status = "disabled";
252 reg = <0x54006a00 0x40>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900253 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_uart2>;
256 clocks = <&peri_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900257 resets = <&peri_rst 2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900258 };
259
260 serial3: serial@54006b00 {
261 compatible = "socionext,uniphier-uart";
262 status = "disabled";
263 reg = <0x54006b00 0x40>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900264 interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900265 pinctrl-names = "default";
266 pinctrl-0 = <&pinctrl_uart3>;
267 clocks = <&peri_clk 3>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900268 resets = <&peri_rst 3>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900269 };
270
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900271 gpio: gpio@55000000 {
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900272 compatible = "socionext,uniphier-gpio";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900273 reg = <0x55000000 0x200>;
274 interrupt-parent = <&aidet>;
275 interrupt-controller;
276 #interrupt-cells = <2>;
277 gpio-controller;
278 #gpio-cells = <2>;
279 gpio-ranges = <&pinctrl 0 0 0>,
Masahiro Yamada46820e32018-03-15 11:43:03 +0900280 <&pinctrl 104 0 0>,
281 <&pinctrl 168 0 0>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900282 gpio-ranges-group-names = "gpio_range0",
283 "gpio_range1",
284 "gpio_range2";
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900285 ngpios = <286>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900286 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
287 <21 217 3>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900288 };
289
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900290 i2c0: i2c@58780000 {
291 compatible = "socionext,uniphier-fi2c";
292 status = "disabled";
293 reg = <0x58780000 0x80>;
294 #address-cells = <1>;
295 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900296 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900297 pinctrl-names = "default";
298 pinctrl-0 = <&pinctrl_i2c0>;
299 clocks = <&peri_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900300 resets = <&peri_rst 4>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900301 clock-frequency = <100000>;
302 };
303
304 i2c1: i2c@58781000 {
305 compatible = "socionext,uniphier-fi2c";
306 status = "disabled";
307 reg = <0x58781000 0x80>;
308 #address-cells = <1>;
309 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900310 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900311 pinctrl-names = "default";
312 pinctrl-0 = <&pinctrl_i2c1>;
313 clocks = <&peri_clk 5>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900314 resets = <&peri_rst 5>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900315 clock-frequency = <100000>;
316 };
317
318 i2c2: i2c@58782000 {
319 compatible = "socionext,uniphier-fi2c";
320 status = "disabled";
321 reg = <0x58782000 0x80>;
322 #address-cells = <1>;
323 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900324 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900325 pinctrl-names = "default";
326 pinctrl-0 = <&pinctrl_i2c2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900327 clocks = <&peri_clk 6>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900328 resets = <&peri_rst 6>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900329 clock-frequency = <100000>;
330 };
331
332 i2c3: i2c@58783000 {
333 compatible = "socionext,uniphier-fi2c";
334 status = "disabled";
335 reg = <0x58783000 0x80>;
336 #address-cells = <1>;
337 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900338 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900339 pinctrl-names = "default";
340 pinctrl-0 = <&pinctrl_i2c3>;
341 clocks = <&peri_clk 7>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900342 resets = <&peri_rst 7>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900343 clock-frequency = <100000>;
344 };
345
346 /* chip-internal connection for HDMI */
347 i2c6: i2c@58786000 {
348 compatible = "socionext,uniphier-fi2c";
349 reg = <0x58786000 0x80>;
350 #address-cells = <1>;
351 #size-cells = <0>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900352 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900353 clocks = <&peri_clk 10>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900354 resets = <&peri_rst 10>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900355 clock-frequency = <400000>;
356 };
357
358 system_bus: system-bus@58c00000 {
359 compatible = "socionext,uniphier-system-bus";
360 status = "disabled";
361 reg = <0x58c00000 0x400>;
362 #address-cells = <2>;
363 #size-cells = <1>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&pinctrl_system_bus>;
366 };
367
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900368 smpctrl@59801000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900369 compatible = "socionext,uniphier-smpctrl";
370 reg = <0x59801000 0x400>;
371 };
372
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900373 sdctrl: syscon@59810000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900374 compatible = "socionext,uniphier-pxs3-sdctrl",
375 "simple-mfd", "syscon";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900376 reg = <0x59810000 0x400>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900377
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900378 sd_clk: clock-controller {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900379 compatible = "socionext,uniphier-pxs3-sd-clock";
380 #clock-cells = <1>;
381 };
382
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900383 sd_rst: reset-controller {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900384 compatible = "socionext,uniphier-pxs3-sd-reset";
385 #reset-cells = <1>;
386 };
387 };
388
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900389 syscon@59820000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900390 compatible = "socionext,uniphier-pxs3-perictrl",
391 "simple-mfd", "syscon";
392 reg = <0x59820000 0x200>;
393
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900394 peri_clk: clock-controller {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900395 compatible = "socionext,uniphier-pxs3-peri-clock";
396 #clock-cells = <1>;
397 };
398
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900399 peri_rst: reset-controller {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900400 compatible = "socionext,uniphier-pxs3-peri-reset";
401 #reset-cells = <1>;
402 };
403 };
404
Masahiro Yamada44ebaa82020-02-28 21:57:19 +0900405 emmc: mmc@5a000000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900406 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900407 reg = <0x5a000000 0x400>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900408 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900409 pinctrl-names = "default";
Masahiro Yamada33aae6b2018-09-10 12:58:32 +0900410 pinctrl-0 = <&pinctrl_emmc>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900411 clocks = <&sys_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900412 resets = <&sys_rst 4>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900413 bus-width = <8>;
414 mmc-ddr-1_8v;
415 mmc-hs200-1_8v;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900416 mmc-pwrseq = <&emmc_pwrseq>;
Masahiro Yamadac3d3e2a2018-05-23 00:30:54 +0900417 cdns,phy-input-delay-legacy = <9>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900418 cdns,phy-input-delay-mmc-highspeed = <2>;
419 cdns,phy-input-delay-mmc-ddr = <3>;
420 cdns,phy-dll-delay-sdclk = <21>;
421 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900422 };
423
Masahiro Yamada44ebaa82020-02-28 21:57:19 +0900424 sd: mmc@5a400000 {
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900425 compatible = "socionext,uniphier-sd-v3.1.1";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900426 status = "disabled";
427 reg = <0x5a400000 0x800>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900428 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900429 pinctrl-names = "default", "uhs";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900430 pinctrl-0 = <&pinctrl_sd>;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900431 pinctrl-1 = <&pinctrl_sd_uhs>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900432 clocks = <&sd_clk 0>;
433 reset-names = "host";
434 resets = <&sd_rst 0>;
435 bus-width = <4>;
436 cap-sd-highspeed;
Masahiro Yamadac3ab1e12018-09-10 12:58:35 +0900437 sd-uhs-sdr12;
438 sd-uhs-sdr25;
439 sd-uhs-sdr50;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900440 socionext,syscon-uhs-mode = <&sdctrl 0>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900441 };
442
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900443 soc_glue: syscon@5f800000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900444 compatible = "socionext,uniphier-pxs3-soc-glue",
445 "simple-mfd", "syscon";
446 reg = <0x5f800000 0x2000>;
447
448 pinctrl: pinctrl {
449 compatible = "socionext,uniphier-pxs3-pinctrl";
450 };
451 };
452
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900453 syscon@5f900000 {
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900454 compatible = "socionext,uniphier-pxs3-soc-glue-debug",
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900455 "simple-mfd", "syscon";
456 reg = <0x5f900000 0x2000>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900457 #address-cells = <1>;
458 #size-cells = <1>;
459 ranges = <0 0x5f900000 0x2000>;
460
461 efuse@100 {
462 compatible = "socionext,uniphier-efuse";
463 reg = <0x100 0x28>;
464 };
465
466 efuse@200 {
467 compatible = "socionext,uniphier-efuse";
468 reg = <0x200 0x68>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900469 #address-cells = <1>;
470 #size-cells = <1>;
471
472 /* USB cells */
473 usb_rterm0: trim@54,4 {
474 reg = <0x54 1>;
475 bits = <4 2>;
476 };
477 usb_rterm1: trim@55,4 {
478 reg = <0x55 1>;
479 bits = <4 2>;
480 };
481 usb_rterm2: trim@58,4 {
482 reg = <0x58 1>;
483 bits = <4 2>;
484 };
485 usb_rterm3: trim@59,4 {
486 reg = <0x59 1>;
487 bits = <4 2>;
488 };
489 usb_sel_t0: trim@54,0 {
490 reg = <0x54 1>;
491 bits = <0 4>;
492 };
493 usb_sel_t1: trim@55,0 {
494 reg = <0x55 1>;
495 bits = <0 4>;
496 };
497 usb_sel_t2: trim@58,0 {
498 reg = <0x58 1>;
499 bits = <0 4>;
500 };
501 usb_sel_t3: trim@59,0 {
502 reg = <0x59 1>;
503 bits = <0 4>;
504 };
505 usb_hs_i0: trim@56,0 {
506 reg = <0x56 1>;
507 bits = <0 4>;
508 };
509 usb_hs_i2: trim@5a,0 {
510 reg = <0x5a 1>;
511 bits = <0 4>;
512 };
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900513 };
514 };
515
Masahiro Yamada08520332020-07-09 15:08:14 +0900516 xdmac: dma-controller@5fc10000 {
517 compatible = "socionext,uniphier-xdmac";
518 reg = <0x5fc10000 0x5300>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900519 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada08520332020-07-09 15:08:14 +0900520 dma-channels = <16>;
521 #dma-cells = <2>;
522 };
523
Masahiro Yamada44ebaa82020-02-28 21:57:19 +0900524 aidet: interrupt-controller@5fc20000 {
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900525 compatible = "socionext,uniphier-pxs3-aidet";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900526 reg = <0x5fc20000 0x200>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900527 interrupt-controller;
528 #interrupt-cells = <2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900529 };
530
531 gic: interrupt-controller@5fe00000 {
532 compatible = "arm,gic-v3";
533 reg = <0x5fe00000 0x10000>, /* GICD */
534 <0x5fe80000 0x80000>; /* GICR */
535 interrupt-controller;
536 #interrupt-cells = <3>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900537 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900538 };
539
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900540 syscon@61840000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900541 compatible = "socionext,uniphier-pxs3-sysctrl",
542 "simple-mfd", "syscon";
543 reg = <0x61840000 0x10000>;
544
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900545 sys_clk: clock-controller {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900546 compatible = "socionext,uniphier-pxs3-clock";
547 #clock-cells = <1>;
548 };
549
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900550 sys_rst: reset-controller {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900551 compatible = "socionext,uniphier-pxs3-reset";
552 #reset-cells = <1>;
553 };
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900554
555 watchdog {
556 compatible = "socionext,uniphier-wdt";
557 };
Masahiro Yamada08520332020-07-09 15:08:14 +0900558
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900559 pvtctl: thermal-sensor {
Masahiro Yamada08520332020-07-09 15:08:14 +0900560 compatible = "socionext,uniphier-pxs3-thermal";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900561 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada08520332020-07-09 15:08:14 +0900562 #thermal-sensor-cells = <0>;
563 socionext,tmod-calibration = <0x0f22 0x68ee>;
564 };
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900565 };
566
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900567 eth0: ethernet@65000000 {
568 compatible = "socionext,uniphier-pxs3-ave4";
569 status = "disabled";
570 reg = <0x65000000 0x8500>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900571 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900572 pinctrl-names = "default";
573 pinctrl-0 = <&pinctrl_ether_rgmii>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900574 clock-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900575 clocks = <&sys_clk 6>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900576 reset-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900577 resets = <&sys_rst 6>;
Kunihiko Hayashidd8c3132022-07-13 10:59:45 +0900578 phy-mode = "rgmii-id";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900579 local-mac-address = [00 00 00 00 00 00];
Kunihiko Hayashi69b3d4e2018-05-11 18:49:14 +0900580 socionext,syscon-phy-mode = <&soc_glue 0>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900581
582 mdio0: mdio {
583 #address-cells = <1>;
584 #size-cells = <0>;
585 };
586 };
587
588 eth1: ethernet@65200000 {
589 compatible = "socionext,uniphier-pxs3-ave4";
590 status = "disabled";
591 reg = <0x65200000 0x8500>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900592 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900593 pinctrl-names = "default";
594 pinctrl-0 = <&pinctrl_ether1_rgmii>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900595 clock-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900596 clocks = <&sys_clk 7>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900597 reset-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900598 resets = <&sys_rst 7>;
Kunihiko Hayashidd8c3132022-07-13 10:59:45 +0900599 phy-mode = "rgmii-id";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900600 local-mac-address = [00 00 00 00 00 00];
Kunihiko Hayashi69b3d4e2018-05-11 18:49:14 +0900601 socionext,syscon-phy-mode = <&soc_glue 1>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900602
603 mdio1: mdio {
604 #address-cells = <1>;
605 #size-cells = <0>;
606 };
607 };
608
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900609 ahci0: sata@65600000 {
610 compatible = "socionext,uniphier-pxs3-ahci",
611 "generic-ahci";
612 status = "disabled";
613 reg = <0x65600000 0x10000>;
614 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
615 clocks = <&sys_clk 28>;
616 resets = <&sys_rst 28>, <&ahci0_rst 0>;
617 ports-implemented = <1>;
618 phys = <&ahci0_phy>;
619 };
620
621 sata-controller@65700000 {
622 compatible = "socionext,uniphier-pxs3-ahci-glue",
623 "simple-mfd";
624 reg = <0x65700000 0x100>;
625 #address-cells = <1>;
626 #size-cells = <1>;
627 ranges = <0 0x65700000 0x100>;
628
629 ahci0_rst: reset-controller@0 {
630 compatible = "socionext,uniphier-pxs3-ahci-reset";
631 reg = <0x0 0x4>;
632 clock-names = "link";
633 clocks = <&sys_clk 28>;
634 reset-names = "link";
635 resets = <&sys_rst 28>;
636 #reset-cells = <1>;
637 };
638
639 ahci0_phy: phy@10 {
640 compatible = "socionext,uniphier-pxs3-ahci-phy";
641 reg = <0x10 0x10>;
642 clock-names = "link", "phy";
643 clocks = <&sys_clk 28>, <&sys_clk 30>;
644 reset-names = "link", "phy";
645 resets = <&sys_rst 28>, <&sys_rst 30>;
646 #phy-cells = <0>;
647 };
648 };
649
650 ahci1: sata@65800000 {
651 compatible = "socionext,uniphier-pxs3-ahci",
652 "generic-ahci";
653 status = "disabled";
654 reg = <0x65800000 0x10000>;
655 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
656 clocks = <&sys_clk 29>;
657 resets = <&sys_rst 29>, <&ahci1_rst 0>;
658 ports-implemented = <1>;
659 phys = <&ahci1_phy>;
660 };
661
662 sata-controller@65900000 {
663 compatible = "socionext,uniphier-pxs3-ahci-glue",
664 "simple-mfd";
665 reg = <0x65900000 0x100>;
666 #address-cells = <1>;
667 #size-cells = <1>;
668 ranges = <0 0x65900000 0x100>;
669
670 ahci1_rst: reset-controller@0 {
671 compatible = "socionext,uniphier-pxs3-ahci-reset";
672 reg = <0x0 0x4>;
673 clock-names = "link";
674 clocks = <&sys_clk 29>;
675 reset-names = "link";
676 resets = <&sys_rst 29>;
677 #reset-cells = <1>;
678 };
679
680 ahci1_phy: phy@10 {
681 compatible = "socionext,uniphier-pxs3-ahci-phy";
682 reg = <0x10 0x10>;
683 clock-names = "link", "phy";
684 clocks = <&sys_clk 29>, <&sys_clk 30>;
685 reset-names = "link", "phy";
686 resets = <&sys_rst 29>, <&sys_rst 30>;
687 #phy-cells = <0>;
688 };
689 };
690
Kunihiko Hayashie8002632023-02-28 11:37:08 +0900691 usb0: usb@65a00000 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900692 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
693 status = "disabled";
694 reg = <0x65a00000 0xcd00>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900695 interrupt-names = "dwc_usb3";
696 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900697 pinctrl-names = "default";
698 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
699 clock-names = "ref", "bus_early", "suspend";
700 clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>;
701 resets = <&usb0_rst 15>;
702 phys = <&usb0_hsphy0>, <&usb0_hsphy1>,
703 <&usb0_ssphy0>, <&usb0_ssphy1>;
704 dr_mode = "host";
705 };
706
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900707 usb-controller@65b00000 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900708 compatible = "socionext,uniphier-pxs3-dwc3-glue",
709 "simple-mfd";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900710 reg = <0x65b00000 0x400>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900711 #address-cells = <1>;
712 #size-cells = <1>;
713 ranges = <0 0x65b00000 0x400>;
714
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900715 usb0_rst: reset-controller@0 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900716 compatible = "socionext,uniphier-pxs3-usb3-reset";
717 reg = <0x0 0x4>;
718 #reset-cells = <1>;
719 clock-names = "link";
720 clocks = <&sys_clk 12>;
721 reset-names = "link";
722 resets = <&sys_rst 12>;
723 };
724
725 usb0_vbus0: regulator@100 {
726 compatible = "socionext,uniphier-pxs3-usb3-regulator";
727 reg = <0x100 0x10>;
728 clock-names = "link";
729 clocks = <&sys_clk 12>;
730 reset-names = "link";
731 resets = <&sys_rst 12>;
732 };
733
734 usb0_vbus1: regulator@110 {
735 compatible = "socionext,uniphier-pxs3-usb3-regulator";
736 reg = <0x110 0x10>;
737 clock-names = "link";
738 clocks = <&sys_clk 12>;
739 reset-names = "link";
740 resets = <&sys_rst 12>;
741 };
742
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900743 usb0_hsphy0: phy@200 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900744 compatible = "socionext,uniphier-pxs3-usb3-hsphy";
745 reg = <0x200 0x10>;
746 #phy-cells = <0>;
747 clock-names = "link", "phy";
748 clocks = <&sys_clk 12>, <&sys_clk 16>;
749 reset-names = "link", "phy";
750 resets = <&sys_rst 12>, <&sys_rst 16>;
751 vbus-supply = <&usb0_vbus0>;
752 nvmem-cell-names = "rterm", "sel_t", "hs_i";
753 nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>,
754 <&usb_hs_i0>;
755 };
756
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900757 usb0_hsphy1: phy@210 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900758 compatible = "socionext,uniphier-pxs3-usb3-hsphy";
759 reg = <0x210 0x10>;
760 #phy-cells = <0>;
761 clock-names = "link", "phy";
762 clocks = <&sys_clk 12>, <&sys_clk 16>;
763 reset-names = "link", "phy";
764 resets = <&sys_rst 12>, <&sys_rst 16>;
765 vbus-supply = <&usb0_vbus1>;
766 nvmem-cell-names = "rterm", "sel_t", "hs_i";
767 nvmem-cells = <&usb_rterm1>, <&usb_sel_t1>,
768 <&usb_hs_i0>;
769 };
770
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900771 usb0_ssphy0: phy@300 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900772 compatible = "socionext,uniphier-pxs3-usb3-ssphy";
773 reg = <0x300 0x10>;
774 #phy-cells = <0>;
775 clock-names = "link", "phy";
776 clocks = <&sys_clk 12>, <&sys_clk 17>;
777 reset-names = "link", "phy";
778 resets = <&sys_rst 12>, <&sys_rst 17>;
779 vbus-supply = <&usb0_vbus0>;
780 };
781
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900782 usb0_ssphy1: phy@310 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900783 compatible = "socionext,uniphier-pxs3-usb3-ssphy";
784 reg = <0x310 0x10>;
785 #phy-cells = <0>;
786 clock-names = "link", "phy";
787 clocks = <&sys_clk 12>, <&sys_clk 18>;
788 reset-names = "link", "phy";
789 resets = <&sys_rst 12>, <&sys_rst 18>;
790 vbus-supply = <&usb0_vbus1>;
791 };
792 };
793
Kunihiko Hayashie8002632023-02-28 11:37:08 +0900794 usb1: usb@65c00000 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900795 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
796 status = "disabled";
797 reg = <0x65c00000 0xcd00>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900798 interrupt-names = "dwc_usb3";
799 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900800 pinctrl-names = "default";
801 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
802 clock-names = "ref", "bus_early", "suspend";
803 clocks = <&sys_clk 13>, <&sys_clk 13>, <&sys_clk 13>;
804 resets = <&usb1_rst 15>;
805 phys = <&usb1_hsphy0>, <&usb1_hsphy1>,
806 <&usb1_ssphy0>;
807 dr_mode = "host";
808 };
809
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900810 usb-controller@65d00000 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900811 compatible = "socionext,uniphier-pxs3-dwc3-glue",
812 "simple-mfd";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900813 reg = <0x65d00000 0x400>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900814 #address-cells = <1>;
815 #size-cells = <1>;
816 ranges = <0 0x65d00000 0x400>;
817
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900818 usb1_rst: reset-controller@0 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900819 compatible = "socionext,uniphier-pxs3-usb3-reset";
820 reg = <0x0 0x4>;
821 #reset-cells = <1>;
822 clock-names = "link";
823 clocks = <&sys_clk 13>;
824 reset-names = "link";
825 resets = <&sys_rst 13>;
826 };
827
828 usb1_vbus0: regulator@100 {
829 compatible = "socionext,uniphier-pxs3-usb3-regulator";
830 reg = <0x100 0x10>;
831 clock-names = "link";
832 clocks = <&sys_clk 13>;
833 reset-names = "link";
834 resets = <&sys_rst 13>;
835 };
836
837 usb1_vbus1: regulator@110 {
838 compatible = "socionext,uniphier-pxs3-usb3-regulator";
839 reg = <0x110 0x10>;
840 clock-names = "link";
841 clocks = <&sys_clk 13>;
842 reset-names = "link";
843 resets = <&sys_rst 13>;
844 };
845
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900846 usb1_hsphy0: phy@200 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900847 compatible = "socionext,uniphier-pxs3-usb3-hsphy";
848 reg = <0x200 0x10>;
849 #phy-cells = <0>;
850 clock-names = "link", "phy", "phy-ext";
851 clocks = <&sys_clk 13>, <&sys_clk 20>,
852 <&sys_clk 14>;
853 reset-names = "link", "phy";
854 resets = <&sys_rst 13>, <&sys_rst 20>;
855 vbus-supply = <&usb1_vbus0>;
856 nvmem-cell-names = "rterm", "sel_t", "hs_i";
857 nvmem-cells = <&usb_rterm2>, <&usb_sel_t2>,
858 <&usb_hs_i2>;
859 };
860
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900861 usb1_hsphy1: phy@210 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900862 compatible = "socionext,uniphier-pxs3-usb3-hsphy";
863 reg = <0x210 0x10>;
864 #phy-cells = <0>;
865 clock-names = "link", "phy", "phy-ext";
866 clocks = <&sys_clk 13>, <&sys_clk 20>,
867 <&sys_clk 14>;
868 reset-names = "link", "phy";
869 resets = <&sys_rst 13>, <&sys_rst 20>;
870 vbus-supply = <&usb1_vbus1>;
871 nvmem-cell-names = "rterm", "sel_t", "hs_i";
872 nvmem-cells = <&usb_rterm3>, <&usb_sel_t3>,
873 <&usb_hs_i2>;
874 };
875
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900876 usb1_ssphy0: phy@300 {
Masahiro Yamada2001a812018-12-19 20:03:21 +0900877 compatible = "socionext,uniphier-pxs3-usb3-ssphy";
878 reg = <0x300 0x10>;
879 #phy-cells = <0>;
880 clock-names = "link", "phy", "phy-ext";
881 clocks = <&sys_clk 13>, <&sys_clk 21>,
882 <&sys_clk 14>;
883 reset-names = "link", "phy";
884 resets = <&sys_rst 13>, <&sys_rst 21>;
885 vbus-supply = <&usb1_vbus0>;
886 };
887 };
888
Masahiro Yamadacd33fed2019-04-12 18:55:50 +0900889 pcie: pcie@66000000 {
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900890 compatible = "socionext,uniphier-pcie";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +0900891 status = "disabled";
892 reg-names = "dbi", "link", "config";
893 reg = <0x66000000 0x1000>, <0x66010000 0x10000>,
894 <0x2fff0000 0x10000>;
895 #address-cells = <3>;
896 #size-cells = <2>;
897 clocks = <&sys_clk 24>;
898 resets = <&sys_rst 24>;
899 num-lanes = <1>;
900 num-viewport = <1>;
901 bus-range = <0x0 0xff>;
902 device_type = "pci";
903 ranges =
904 /* downstream I/O */
905 <0x81000000 0 0x00000000 0x2ffe0000 0 0x00010000>,
906 /* non-prefetchable memory */
907 <0x82000000 0 0x20000000 0x20000000 0 0x0ffe0000>;
908 #interrupt-cells = <1>;
909 interrupt-names = "dma", "msi";
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900910 interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>,
911 <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamadacd33fed2019-04-12 18:55:50 +0900912 interrupt-map-mask = <0 0 0 7>;
913 interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */
914 <0 0 0 2 &pcie_intc 1>, /* INTB */
915 <0 0 0 3 &pcie_intc 2>, /* INTC */
916 <0 0 0 4 &pcie_intc 3>; /* INTD */
917 phy-names = "pcie-phy";
918 phys = <&pcie_phy>;
919
920 pcie_intc: legacy-interrupt-controller {
921 interrupt-controller;
922 #interrupt-cells = <1>;
923 interrupt-parent = <&gic>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900924 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamadacd33fed2019-04-12 18:55:50 +0900925 };
926 };
927
928 pcie_phy: phy@66038000 {
929 compatible = "socionext,uniphier-pxs3-pcie-phy";
930 reg = <0x66038000 0x4000>;
931 #phy-cells = <0>;
Masahiro Yamada65282ed2020-08-04 14:41:09 +0900932 clock-names = "link";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +0900933 clocks = <&sys_clk 24>;
Masahiro Yamada65282ed2020-08-04 14:41:09 +0900934 reset-names = "link";
Masahiro Yamadacd33fed2019-04-12 18:55:50 +0900935 resets = <&sys_rst 24>;
936 socionext,syscon = <&soc_glue>;
937 };
938
Masahiro Yamada44ebaa82020-02-28 21:57:19 +0900939 nand: nand-controller@68000000 {
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900940 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900941 status = "disabled";
942 reg-names = "nand_data", "denali_reg";
943 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
Kunihiko Hayashi051451a2023-02-28 11:37:09 +0900944 #address-cells = <1>;
945 #size-cells = <0>;
946 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900947 pinctrl-names = "default";
948 pinctrl-0 = <&pinctrl_nand>;
Masahiro Yamada2001a812018-12-19 20:03:21 +0900949 clock-names = "nand", "nand_x", "ecc";
950 clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
Masahiro Yamada5ad15962020-02-28 21:57:20 +0900951 reset-names = "nand", "reg";
952 resets = <&sys_rst 2>, <&sys_rst 2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900953 };
954 };
955};
956
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900957#include "uniphier-pinctrl.dtsi"