Skip to content

Commit 1a42724

Browse files
prabhakarladgeertu
authored andcommitted
arm64: dts: renesas: Add initial device tree for RZ/V2N EVK
Add the initial device tree for the Renesas RZ/V2N EVK board, based on the R9A09G056N48 SoC. Enable basic board functionality, including: - Memory mapping (reserve the first 128MB for the secure area) - Clock inputs (QEXTAL, RTXIN, AUDIO_EXTAL) - PINCTRL configurations for peripherals - Serial console (SCIF) - SDHI1 with power control and UHS modes Update the Makefile to include the new DTB. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 74e252a commit 1a42724

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

arch/arm64/boot/dts/renesas/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ dtb-$(CONFIG_ARCH_R9A09G011) += r9a09g011-v2mevk2.dtb
152152

153153
dtb-$(CONFIG_ARCH_R9A09G047) += r9a09g047e57-smarc.dtb
154154

155+
dtb-$(CONFIG_ARCH_R9A09G056) += r9a09g056n48-rzv2n-evk.dtb
156+
155157
dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h44-rzv2h-evk.dtb
156158
dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h48-kakip.dtb
157159

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Device Tree Source for the RZ/V2N EVK board
4+
*
5+
* Copyright (C) 2025 Renesas Electronics Corp.
6+
*/
7+
8+
/dts-v1/;
9+
10+
#include <dt-bindings/gpio/gpio.h>
11+
#include "r9a09g056.dtsi"
12+
13+
/ {
14+
model = "Renesas RZ/V2N EVK Board based on r9a09g056n48";
15+
compatible = "renesas,rzv2n-evk", "renesas,r9a09g056n48", "renesas,r9a09g056";
16+
17+
aliases {
18+
mmc1 = &sdhi1;
19+
serial0 = &scif;
20+
};
21+
22+
chosen {
23+
bootargs = "ignore_loglevel";
24+
stdout-path = "serial0:115200n8";
25+
};
26+
27+
memory@48000000 {
28+
device_type = "memory";
29+
/* first 128MB is reserved for secure area. */
30+
reg = <0x0 0x48000000 0x1 0xf8000000>;
31+
};
32+
33+
reg_3p3v: regulator-3p3v {
34+
compatible = "regulator-fixed";
35+
regulator-name = "fixed-3.3V";
36+
regulator-min-microvolt = <3300000>;
37+
regulator-max-microvolt = <3300000>;
38+
regulator-boot-on;
39+
regulator-always-on;
40+
};
41+
42+
vqmmc_sdhi1: regulator-vqmmc-sdhi1 {
43+
compatible = "regulator-gpio";
44+
regulator-name = "SDHI1 VqmmC";
45+
gpios = <&pinctrl RZV2N_GPIO(A, 2) GPIO_ACTIVE_HIGH>;
46+
regulator-min-microvolt = <1800000>;
47+
regulator-max-microvolt = <3300000>;
48+
gpios-states = <0>;
49+
states = <3300000 0>, <1800000 1>;
50+
};
51+
};
52+
53+
&audio_extal_clk {
54+
clock-frequency = <22579200>;
55+
};
56+
57+
&pinctrl {
58+
scif_pins: scif {
59+
pins = "SCIF_TXD", "SCIF_RXD";
60+
renesas,output-impedance = <1>;
61+
};
62+
63+
sd1-pwr-en-hog {
64+
gpio-hog;
65+
gpios = <RZV2N_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
66+
output-high;
67+
line-name = "sd1_pwr_en";
68+
};
69+
70+
sdhi1_pins: sd1 {
71+
sd1-cd {
72+
pinmux = <RZV2N_PORT_PINMUX(9, 4, 14)>; /* SD1_CD */
73+
};
74+
75+
sd1-clk {
76+
pins = "SD1CLK";
77+
renesas,output-impedance = <3>;
78+
slew-rate = <0>;
79+
};
80+
81+
sd1-dat-cmd {
82+
pins = "SD1DAT0", "SD1DAT1", "SD1DAT2", "SD1DAT3", "SD1CMD";
83+
input-enable;
84+
renesas,output-impedance = <3>;
85+
slew-rate = <0>;
86+
};
87+
};
88+
};
89+
90+
&qextal_clk {
91+
clock-frequency = <24000000>;
92+
};
93+
94+
&rtxin_clk {
95+
clock-frequency = <32768>;
96+
};
97+
98+
&scif {
99+
pinctrl-0 = <&scif_pins>;
100+
pinctrl-names = "default";
101+
status = "okay";
102+
};
103+
104+
&sdhi1 {
105+
pinctrl-0 = <&sdhi1_pins>;
106+
pinctrl-1 = <&sdhi1_pins>;
107+
pinctrl-names = "default", "state_uhs";
108+
vmmc-supply = <&reg_3p3v>;
109+
vqmmc-supply = <&vqmmc_sdhi1>;
110+
bus-width = <4>;
111+
sd-uhs-sdr50;
112+
sd-uhs-sdr104;
113+
status = "okay";
114+
};

0 commit comments

Comments
 (0)