Debian Codegraph @

arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /*
3 * Device Tree Source for the RZ/V2H EVK board
4 *
5 * Copyright (C) 2024 Renesas Electronics Corp.
6 */
7
8 /dts-v1/;
9
10 #include <dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include "r9a09g057.dtsi"
14
15 / {
16 model = "Renesas RZ/V2H EVK Board based on r9a09g057h44";
17 compatible = "renesas,rzv2h-evk", "renesas,r9a09g057h44", "renesas,r9a09g057";
18
19 aliases {
20 ethernet0 = &eth0;
21 ethernet1 = &eth1;
22 i2c0 = &i2c0;
23 i2c1 = &i2c1;
24 i2c2 = &i2c2;
25 i2c3 = &i2c3;
26 i2c6 = &i2c6;
27 i2c7 = &i2c7;
28 i2c8 = &i2c8;
29 mmc1 = &sdhi1;
30 serial0 = &scif;
31 };
32
33 chosen {
34 bootargs = "ignore_loglevel";
35 stdout-path = "serial0:115200n8";
36 };
37
38 hdmi-out {
39 compatible = "hdmi-connector";
40 type = "d";
41
42 port {
43 hdmi_con_out: endpoint {
44 remote-endpoint = <&adv7535_out>;
45 };
46 };
47 };
48
49 keys: keys {
50 compatible = "gpio-keys";
51
52 key-wakeup {
53 interrupts-extended = <&icu 0 IRQ_TYPE_EDGE_FALLING>;
54 linux,code = <KEY_WAKEUP>;
55 label = "NMI_SW";
56 debounce-interval = <20>;
57 wakeup-source;
58 };
59 };
60
61 memory@48000000 {
62 device_type = "memory";
63 /* first 128MB is reserved for secure area. */
64 reg = <0x0 0x48000000 0x1 0xf8000000>;
65 };
66
67 memory@240000000 {
68 device_type = "memory";
69 reg = <0x2 0x40000000 0x2 0x00000000>;
70 };
71
72 reg_0p8v: regulator-0p8v {
73 compatible = "regulator-fixed";
74
75 regulator-name = "fixed-0.8V";
76 regulator-min-microvolt = <800000>;
77 regulator-max-microvolt = <800000>;
78 regulator-boot-on;
79 regulator-always-on;
80 };
81
82 reg_1p8v: regulator-1p8v {
83 compatible = "regulator-fixed";
84 regulator-name = "fixed-1.8V";
85 regulator-min-microvolt = <1800000>;
86 regulator-max-microvolt = <1800000>;
87 regulator-boot-on;
88 regulator-always-on;
89 };
90
91 reg_3p3v: regulator-3p3v {
92 compatible = "regulator-fixed";
93
94 regulator-name = "fixed-3.3V";
95 regulator-min-microvolt = <3300000>;
96 regulator-max-microvolt = <3300000>;
97 regulator-boot-on;
98 regulator-always-on;
99 };
100
101 vqmmc_sdhi1: regulator-vccq-sdhi1 {
102 compatible = "regulator-gpio";
103 regulator-name = "SDHI1 VccQ";
104 gpios = <&pinctrl RZV2H_GPIO(A, 2) GPIO_ACTIVE_HIGH>;
105 regulator-min-microvolt = <1800000>;
106 regulator-max-microvolt = <3300000>;
107 gpios-states = <0>;
108 states = <3300000 0>, <1800000 1>;
109 };
110
111 /* 32.768kHz crystal */
112 x6: x6-clock {
113 compatible = "fixed-clock";
114 #clock-cells = <0>;
115 clock-frequency = <32768>;
116 };
117
118 /* 12MHz crystal for ADV7535 */
119 y1: y1-clock {
120 compatible = "fixed-clock";
121 #clock-cells = <0>;
122 clock-frequency = <12000000>;
123 };
124 };
125
126 &audio_extal_clk {
127 clock-frequency = <22579200>;
128 };
129
130 &dsi {
131 status = "okay";
132
133 ports {
134 port@1 {
135 dsi_out: endpoint {
136 data-lanes = <1 2 3 4>;
137 remote-endpoint = <&adv7535_in>;
138 };
139 };
140 };
141 };
142
143 &du {
144 status = "okay";
145 };
146
147 &ehci0 {
148 dr_mode = "otg";
149 status = "okay";
150 };
151
152 &ehci1 {
153 status = "okay";
154 };
155
156 &eth0 {
157 pinctrl-0 = <&eth0_pins>;
158 pinctrl-names = "default";
159 phy-handle = <&phy0>;
160 phy-mode = "rgmii-id";
161 status = "okay";
162 };
163
164 &eth1 {
165 pinctrl-0 = <&eth1_pins>;
166 pinctrl-names = "default";
167 phy-handle = <&phy1>;
168 phy-mode = "rgmii-id";
169 status = "okay";
170 };
171
172 &gpu {
173 status = "okay";
174 mali-supply = <&reg_0p8v>;
175 };
176
177 &hsusb {
178 dr_mode = "otg";
179 status = "okay";
180 };
181
182 &i2c0 {
183 pinctrl-0 = <&i2c0_pins>;
184 pinctrl-names = "default";
185 clock-frequency = <400000>;
186
187 status = "okay";
188 };
189
190 &i2c1 {
191 pinctrl-0 = <&i2c1_pins>;
192 pinctrl-names = "default";
193 clock-frequency = <400000>;
194
195 status = "okay";
196 };
197
198 &i2c2 {
199 pinctrl-0 = <&i2c2_pins>;
200 pinctrl-names = "default";
201 clock-frequency = <400000>;
202
203 status = "okay";
204 };
205
206 &i2c3 {
207 pinctrl-0 = <&i2c3_pins>;
208 pinctrl-names = "default";
209 clock-frequency = <400000>;
210
211 status = "okay";
212
213 adv7535: hdmi@3d {
214 compatible = "adi,adv7535";
215 reg = <0x3d>, <0x3f>, <0x3c>, <0x38>;
216 reg-names = "main", "edid", "cec", "packet";
217 interrupt-parent = <&pinctrl>;
218 interrupts = <RZV2H_GPIO(7, 1) IRQ_TYPE_EDGE_FALLING>;
219 clocks = <&y1>;
220 clock-names = "cec";
221 avdd-supply = <&reg_1p8v>;
222 dvdd-supply = <&reg_1p8v>;
223 pvdd-supply = <&reg_1p8v>;
224 a2vdd-supply = <&reg_1p8v>;
225 v3p3-supply = <&reg_3p3v>;
226 v1p2-supply = <&reg_1p8v>;
227 adi,dsi-lanes = <4>;
228
229 ports {
230 #address-cells = <1>;
231 #size-cells = <0>;
232
233 port@0 {
234 reg = <0>;
235 adv7535_in: endpoint {
236 remote-endpoint = <&dsi_out>;
237 };
238 };
239
240 port@1 {
241 reg = <1>;
242 adv7535_out: endpoint {
243 remote-endpoint = <&hdmi_con_out>;
244 };
245 };
246 };
247 };
248 };
249
250 &i2c6 {
251 pinctrl-0 = <&i2c6_pins>;
252 pinctrl-names = "default";
253 clock-frequency = <400000>;
254
255 status = "okay";
256 };
257
258 &i2c7 {
259 pinctrl-0 = <&i2c7_pins>;
260 pinctrl-names = "default";
261 clock-frequency = <400000>;
262
263 status = "okay";
264 };
265
266 &i2c8 {
267 pinctrl-0 = <&i2c8_pins>;
268 pinctrl-names = "default";
269 clock-frequency = <400000>;
270
271 status = "okay";
272
273 raa215300: pmic@12 {
274 compatible = "renesas,raa215300";
275 reg = <0x12>, <0x6f>;
276 reg-names = "main", "rtc";
277 clocks = <&x6>;
278 clock-names = "xin";
279 };
280 };
281
282 &mdio0 {
283 phy0: ethernet-phy@0 {
284 compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22";
285 reg = <0>;
286 rxc-skew-psec = <0>;
287 txc-skew-psec = <0>;
288 rxdv-skew-psec = <0>;
289 txdv-skew-psec = <0>;
290 rxd0-skew-psec = <0>;
291 rxd1-skew-psec = <0>;
292 rxd2-skew-psec = <0>;
293 rxd3-skew-psec = <0>;
294 txd0-skew-psec = <0>;
295 txd1-skew-psec = <0>;
296 txd2-skew-psec = <0>;
297 txd3-skew-psec = <0>;
298 };
299 };
300
301 &mdio1 {
302 phy1: ethernet-phy@1 {
303 compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22";
304 reg = <0>;
305 rxc-skew-psec = <0>;
306 txc-skew-psec = <0>;
307 rxdv-skew-psec = <0>;
308 txdv-skew-psec = <0>;
309 rxd0-skew-psec = <0>;
310 rxd1-skew-psec = <0>;
311 rxd2-skew-psec = <0>;
312 rxd3-skew-psec = <0>;
313 txd0-skew-psec = <0>;
314 txd1-skew-psec = <0>;
315 txd2-skew-psec = <0>;
316 txd3-skew-psec = <0>;
317 };
318 };
319
320 &ohci0 {
321 dr_mode = "otg";
322 status = "okay";
323 };
324
325 &ohci1 {
326 status = "okay";
327 };
328
329 &ostm0 {
330 status = "okay";
331 };
332
333 &ostm1 {
334 status = "okay";
335 };
336
337 &ostm2 {
338 status = "okay";
339 };
340
341 &ostm3 {
342 status = "okay";
343 };
344
345 &ostm4 {
346 status = "okay";
347 };
348
349 &ostm5 {
350 status = "okay";
351 };
352
353 &ostm6 {
354 status = "okay";
355 };
356
357 &ostm7 {
358 status = "okay";
359 };
360
361 &pinctrl {
362 eth0_pins: eth0 {
363 pins = "ET0_TXC_TXCLK";
364 output-enable;
365 };
366
367 eth1_pins: eth1 {
368 pins = "ET1_TXC_TXCLK";
369 output-enable;
370 };
371
372 i2c0_pins: i2c0 {
373 pinmux = <RZV2H_PORT_PINMUX(3, 0, 1)>, /* I2C0_SDA */
374 <RZV2H_PORT_PINMUX(3, 1, 1)>; /* I2C0_SCL */
375 };
376
377 i2c1_pins: i2c1 {
378 pinmux = <RZV2H_PORT_PINMUX(3, 2, 1)>, /* I2C1_SDA */
379 <RZV2H_PORT_PINMUX(3, 3, 1)>; /* I2C1_SCL */
380 };
381
382 i2c2_pins: i2c2 {
383 pinmux = <RZV2H_PORT_PINMUX(2, 0, 4)>, /* I2C2_SDA */
384 <RZV2H_PORT_PINMUX(2, 1, 4)>; /* I2C2_SCL */
385 };
386
387 i2c3_pins: i2c3 {
388 pinmux = <RZV2H_PORT_PINMUX(3, 6, 1)>, /* I2C3_SDA */
389 <RZV2H_PORT_PINMUX(3, 7, 1)>; /* I2C3_SCL */
390 };
391
392 i2c6_pins: i2c6 {
393 pinmux = <RZV2H_PORT_PINMUX(4, 4, 1)>, /* I2C6_SDA */
394 <RZV2H_PORT_PINMUX(4, 5, 1)>; /* I2C6_SCL */
395 };
396
397 i2c7_pins: i2c7 {
398 pinmux = <RZV2H_PORT_PINMUX(4, 6, 1)>, /* I2C7_SDA */
399 <RZV2H_PORT_PINMUX(4, 7, 1)>; /* I2C7_SCL */
400 };
401
402 i2c8_pins: i2c8 {
403 pinmux = <RZV2H_PORT_PINMUX(0, 6, 1)>, /* I2C8_SDA */
404 <RZV2H_PORT_PINMUX(0, 7, 1)>; /* I2C8_SCL */
405 };
406
407 scif_pins: scif {
408 pins = "SCIF_TXD", "SCIF_RXD";
409 renesas,output-impedance = <1>;
410 };
411
412 sd1-pwr-en-hog {
413 gpio-hog;
414 gpios = <RZV2H_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
415 output-high;
416 line-name = "sd1_pwr_en";
417 };
418
419 sdhi1_pins: sd1 {
420 sd1_dat_cmd {
421 pins = "SD1DAT0", "SD1DAT1", "SD1DAT2", "SD1DAT3", "SD1CMD";
422 input-enable;
423 renesas,output-impedance = <3>;
424 slew-rate = <0>;
425 };
426
427 sd1_clk {
428 pins = "SD1CLK";
429 renesas,output-impedance = <3>;
430 slew-rate = <0>;
431 };
432
433 sd1_cd {
434 pinmux = <RZV2H_PORT_PINMUX(9, 4, 14)>; /* SD1_CD */
435 };
436 };
437
438 usb20_pins: usb20 {
439 ovc {
440 pinmux = <RZV2H_PORT_PINMUX(9, 6, 14)>; /* OVC */
441 };
442
443 vbus {
444 pinmux = <RZV2H_PORT_PINMUX(9, 5, 14)>; /* VBUS */
445 };
446 };
447
448 usb21_pins: usb21 {
449 ovc {
450 pinmux = <RZV2H_PORT_PINMUX(6, 7, 14)>; /* OVC */
451 };
452
453 vbus {
454 pinmux = <RZV2H_PORT_PINMUX(6, 6, 14)>; /* VBUS */
455 };
456 };
457
458 usb30_pins: usb30 {
459 pinmux = <RZV2H_PORT_PINMUX(B, 0, 14)>, /* USB30_VBUSEN */
460 <RZV2H_PORT_PINMUX(B, 1, 14)>; /* USB30_OVRCURN */
461 };
462
463 usb31_pins: usb31 {
464 pinmux = <RZV2H_PORT_PINMUX(6, 2, 14)>, /* USB31_VBUSEN */
465 <RZV2H_PORT_PINMUX(6, 3, 14)>; /* USB31_OVRCURN */
466 };
467
468 xspi_pins: xspi0 {
469 ctrl {
470 pins = "XSPI0_RESET0N", "XSPI0_CS0N", "XSPI0_CKP";
471 output-enable;
472 };
473
474 io {
475 pins = "XSPI0_IO0", "XSPI0_IO1", "XSPI0_IO2", "XSPI0_IO3";
476 renesas,output-impedance = <3>;
477 };
478 };
479 };
480
481 &qextal_clk {
482 clock-frequency = <24000000>;
483 };
484
485 &rtc {
486 status = "okay";
487 };
488
489 &rtxin_clk {
490 clock-frequency = <32768>;
491 };
492
493 &scif {
494 pinctrl-0 = <&scif_pins>;
495 pinctrl-names = "default";
496
497 status = "okay";
498 };
499
500 &sdhi1 {
501 pinctrl-0 = <&sdhi1_pins>;
502 pinctrl-1 = <&sdhi1_pins>;
503 pinctrl-names = "default", "state_uhs";
504 vmmc-supply = <&reg_3p3v>;
505 vqmmc-supply = <&vqmmc_sdhi1>;
506 bus-width = <4>;
507 sd-uhs-sdr50;
508 sd-uhs-sdr104;
509 status = "okay";
510 };
511
512 &usb20phyrst {
513 status = "okay";
514 };
515
516 &usb21phyrst {
517 status = "okay";
518 };
519
520 &usb2_phy0 {
521 pinctrl-0 = <&usb20_pins>;
522 pinctrl-names = "default";
523
524 status = "okay";
525 };
526
527 &usb2_phy1 {
528 pinctrl-0 = <&usb21_pins>;
529 pinctrl-names = "default";
530
531 status = "okay";
532 };
533
534 &usb3_phy0 {
535 status = "okay";
536 };
537
538 &usb3_phy1 {
539 status = "okay";
540 };
541
542 &wdt1 {
543 status = "okay";
544 };
545
546 &xhci0 {
547 pinctrl-0 = <&usb30_pins>;
548 pinctrl-names = "default";
549 status = "okay";
550 };
551
552 &xhci1 {
553 pinctrl-0 = <&usb31_pins>;
554 pinctrl-names = "default";
555 status = "okay";
556 };
557
558 &xspi {
559 pinctrl-0 = <&xspi_pins>;
560 pinctrl-names = "default";
561 /*
562 * MT25QU512ABB8E12 flash chip is capable of running at 166MHz
563 * clock frequency. Set the clock frequency to the maximum 133MHz
564 * supported by the RZ/V2H SoC.
565 */
566 assigned-clocks = <&cpg CPG_CORE R9A09G057_SPI_CLK_SPI>;
567 assigned-clock-rates = <133333334>;
568 status = "okay";
569
570 flash@0 {
571 compatible = "jedec,spi-nor";
572 reg = <0>;
573 vcc-supply = <&reg_1p8v>;
574 m25p,fast-read;
575 spi-tx-bus-width = <4>;
576 spi-rx-bus-width = <4>;
577
578 partitions {
579 compatible = "fixed-partitions";
580 #address-cells = <1>;
581 #size-cells = <1>;
582
583 partition@0 {
584 label = "bl2";
585 reg = <0x00000000 0x00060000>;
586 };
587
588 partition@60000 {
589 label = "fip";
590 reg = <0x00060000 0x1fa0000>;
591 };
592
593 partition@2000000 {
594 label = "user";
595 reg = <0x2000000 0x2000000>;
596 };
597 };
598 };
599 };