xref: /freebsd/sys/contrib/device-tree/src/arm64/renesas/r9a09g057h44-rzv2h-evk.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot/*
3*b2d2a78aSEmmanuel Vadot * Device Tree Source for the RZ/V2H EVK board
4*b2d2a78aSEmmanuel Vadot *
5*b2d2a78aSEmmanuel Vadot * Copyright (C) 2024 Renesas Electronics Corp.
6*b2d2a78aSEmmanuel Vadot */
7*b2d2a78aSEmmanuel Vadot
8*b2d2a78aSEmmanuel Vadot/dts-v1/;
9*b2d2a78aSEmmanuel Vadot
10*b2d2a78aSEmmanuel Vadot#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
11*b2d2a78aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
12*b2d2a78aSEmmanuel Vadot#include "r9a09g057.dtsi"
13*b2d2a78aSEmmanuel Vadot
14*b2d2a78aSEmmanuel Vadot/ {
15*b2d2a78aSEmmanuel Vadot	model = "Renesas RZ/V2H EVK Board based on r9a09g057h44";
16*b2d2a78aSEmmanuel Vadot	compatible = "renesas,rzv2h-evk", "renesas,r9a09g057h44", "renesas,r9a09g057";
17*b2d2a78aSEmmanuel Vadot
18*b2d2a78aSEmmanuel Vadot	aliases {
19*b2d2a78aSEmmanuel Vadot		i2c0 = &i2c0;
20*b2d2a78aSEmmanuel Vadot		i2c1 = &i2c1;
21*b2d2a78aSEmmanuel Vadot		i2c2 = &i2c2;
22*b2d2a78aSEmmanuel Vadot		i2c3 = &i2c3;
23*b2d2a78aSEmmanuel Vadot		i2c6 = &i2c6;
24*b2d2a78aSEmmanuel Vadot		i2c7 = &i2c7;
25*b2d2a78aSEmmanuel Vadot		i2c8 = &i2c8;
26*b2d2a78aSEmmanuel Vadot		mmc1 = &sdhi1;
27*b2d2a78aSEmmanuel Vadot		serial0 = &scif;
28*b2d2a78aSEmmanuel Vadot	};
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadot	chosen {
31*b2d2a78aSEmmanuel Vadot		bootargs = "ignore_loglevel";
32*b2d2a78aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
33*b2d2a78aSEmmanuel Vadot	};
34*b2d2a78aSEmmanuel Vadot
35*b2d2a78aSEmmanuel Vadot	memory@48000000 {
36*b2d2a78aSEmmanuel Vadot		device_type = "memory";
37*b2d2a78aSEmmanuel Vadot		/* first 128MB is reserved for secure area. */
38*b2d2a78aSEmmanuel Vadot		reg = <0x0 0x48000000 0x1 0xF8000000>;
39*b2d2a78aSEmmanuel Vadot	};
40*b2d2a78aSEmmanuel Vadot
41*b2d2a78aSEmmanuel Vadot	memory@240000000 {
42*b2d2a78aSEmmanuel Vadot		device_type = "memory";
43*b2d2a78aSEmmanuel Vadot		reg = <0x2 0x40000000 0x2 0x00000000>;
44*b2d2a78aSEmmanuel Vadot	};
45*b2d2a78aSEmmanuel Vadot
46*b2d2a78aSEmmanuel Vadot	reg_3p3v: regulator1 {
47*b2d2a78aSEmmanuel Vadot		compatible = "regulator-fixed";
48*b2d2a78aSEmmanuel Vadot
49*b2d2a78aSEmmanuel Vadot		regulator-name = "fixed-3.3V";
50*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
51*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
52*b2d2a78aSEmmanuel Vadot		regulator-boot-on;
53*b2d2a78aSEmmanuel Vadot		regulator-always-on;
54*b2d2a78aSEmmanuel Vadot	};
55*b2d2a78aSEmmanuel Vadot
56*b2d2a78aSEmmanuel Vadot	vqmmc_sdhi1: regulator-vccq-sdhi1 {
57*b2d2a78aSEmmanuel Vadot		compatible = "regulator-gpio";
58*b2d2a78aSEmmanuel Vadot		regulator-name = "SDHI1 VccQ";
59*b2d2a78aSEmmanuel Vadot		gpios = <&pinctrl RZG2L_GPIO(10, 2) GPIO_ACTIVE_HIGH>;
60*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
61*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
62*b2d2a78aSEmmanuel Vadot		gpios-states = <0>;
63*b2d2a78aSEmmanuel Vadot		states = <3300000 0>, <1800000 1>;
64*b2d2a78aSEmmanuel Vadot	};
65*b2d2a78aSEmmanuel Vadot};
66*b2d2a78aSEmmanuel Vadot
67*b2d2a78aSEmmanuel Vadot&audio_extal_clk {
68*b2d2a78aSEmmanuel Vadot	clock-frequency = <22579200>;
69*b2d2a78aSEmmanuel Vadot};
70*b2d2a78aSEmmanuel Vadot
71*b2d2a78aSEmmanuel Vadot&i2c0 {
72*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c0_pins>;
73*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
74*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
75*b2d2a78aSEmmanuel Vadot
76*b2d2a78aSEmmanuel Vadot	status = "okay";
77*b2d2a78aSEmmanuel Vadot};
78*b2d2a78aSEmmanuel Vadot
79*b2d2a78aSEmmanuel Vadot&i2c1 {
80*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
81*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
82*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
83*b2d2a78aSEmmanuel Vadot
84*b2d2a78aSEmmanuel Vadot	status = "okay";
85*b2d2a78aSEmmanuel Vadot};
86*b2d2a78aSEmmanuel Vadot
87*b2d2a78aSEmmanuel Vadot&i2c2 {
88*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c2_pins>;
89*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
90*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
91*b2d2a78aSEmmanuel Vadot
92*b2d2a78aSEmmanuel Vadot	status = "okay";
93*b2d2a78aSEmmanuel Vadot};
94*b2d2a78aSEmmanuel Vadot
95*b2d2a78aSEmmanuel Vadot&i2c3 {
96*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c3_pins>;
97*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
98*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
99*b2d2a78aSEmmanuel Vadot
100*b2d2a78aSEmmanuel Vadot	status = "okay";
101*b2d2a78aSEmmanuel Vadot};
102*b2d2a78aSEmmanuel Vadot
103*b2d2a78aSEmmanuel Vadot&i2c6 {
104*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c6_pins>;
105*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
106*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
107*b2d2a78aSEmmanuel Vadot
108*b2d2a78aSEmmanuel Vadot	status = "okay";
109*b2d2a78aSEmmanuel Vadot};
110*b2d2a78aSEmmanuel Vadot
111*b2d2a78aSEmmanuel Vadot&i2c7 {
112*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c7_pins>;
113*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
114*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
115*b2d2a78aSEmmanuel Vadot
116*b2d2a78aSEmmanuel Vadot	status = "okay";
117*b2d2a78aSEmmanuel Vadot};
118*b2d2a78aSEmmanuel Vadot
119*b2d2a78aSEmmanuel Vadot&i2c8 {
120*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2c8_pins>;
121*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
122*b2d2a78aSEmmanuel Vadot	clock-frequency = <400000>;
123*b2d2a78aSEmmanuel Vadot
124*b2d2a78aSEmmanuel Vadot	status = "okay";
125*b2d2a78aSEmmanuel Vadot};
126*b2d2a78aSEmmanuel Vadot
127*b2d2a78aSEmmanuel Vadot&ostm0 {
128*b2d2a78aSEmmanuel Vadot	status = "okay";
129*b2d2a78aSEmmanuel Vadot};
130*b2d2a78aSEmmanuel Vadot
131*b2d2a78aSEmmanuel Vadot&ostm1 {
132*b2d2a78aSEmmanuel Vadot	status = "okay";
133*b2d2a78aSEmmanuel Vadot};
134*b2d2a78aSEmmanuel Vadot
135*b2d2a78aSEmmanuel Vadot&ostm2 {
136*b2d2a78aSEmmanuel Vadot	status = "okay";
137*b2d2a78aSEmmanuel Vadot};
138*b2d2a78aSEmmanuel Vadot
139*b2d2a78aSEmmanuel Vadot&ostm3 {
140*b2d2a78aSEmmanuel Vadot	status = "okay";
141*b2d2a78aSEmmanuel Vadot};
142*b2d2a78aSEmmanuel Vadot
143*b2d2a78aSEmmanuel Vadot&ostm4 {
144*b2d2a78aSEmmanuel Vadot	status = "okay";
145*b2d2a78aSEmmanuel Vadot};
146*b2d2a78aSEmmanuel Vadot
147*b2d2a78aSEmmanuel Vadot&ostm5 {
148*b2d2a78aSEmmanuel Vadot	status = "okay";
149*b2d2a78aSEmmanuel Vadot};
150*b2d2a78aSEmmanuel Vadot
151*b2d2a78aSEmmanuel Vadot&ostm6 {
152*b2d2a78aSEmmanuel Vadot	status = "okay";
153*b2d2a78aSEmmanuel Vadot};
154*b2d2a78aSEmmanuel Vadot
155*b2d2a78aSEmmanuel Vadot&ostm7 {
156*b2d2a78aSEmmanuel Vadot	status = "okay";
157*b2d2a78aSEmmanuel Vadot};
158*b2d2a78aSEmmanuel Vadot
159*b2d2a78aSEmmanuel Vadot&pinctrl {
160*b2d2a78aSEmmanuel Vadot	i2c0_pins: i2c0 {
161*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(3, 0, 1)>, /* I2C0_SDA */
162*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(3, 1, 1)>; /* I2C0_SCL */
163*b2d2a78aSEmmanuel Vadot	};
164*b2d2a78aSEmmanuel Vadot
165*b2d2a78aSEmmanuel Vadot	i2c1_pins: i2c1 {
166*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(3, 2, 1)>, /* I2C1_SDA */
167*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(3, 3, 1)>; /* I2C1_SCL */
168*b2d2a78aSEmmanuel Vadot	};
169*b2d2a78aSEmmanuel Vadot
170*b2d2a78aSEmmanuel Vadot	i2c2_pins: i2c2 {
171*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(2, 0, 4)>, /* I2C2_SDA */
172*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(2, 1, 4)>; /* I2C2_SCL */
173*b2d2a78aSEmmanuel Vadot	};
174*b2d2a78aSEmmanuel Vadot
175*b2d2a78aSEmmanuel Vadot	i2c3_pins: i2c3 {
176*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(3, 6, 1)>, /* I2C3_SDA */
177*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(3, 7, 1)>; /* I2C3_SCL */
178*b2d2a78aSEmmanuel Vadot	};
179*b2d2a78aSEmmanuel Vadot
180*b2d2a78aSEmmanuel Vadot	i2c6_pins: i2c6 {
181*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(4, 4, 1)>, /* I2C6_SDA */
182*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(4, 5, 1)>; /* I2C6_SCL */
183*b2d2a78aSEmmanuel Vadot	};
184*b2d2a78aSEmmanuel Vadot
185*b2d2a78aSEmmanuel Vadot	i2c7_pins: i2c7 {
186*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(4, 6, 1)>, /* I2C7_SDA */
187*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(4, 7, 1)>; /* I2C7_SCL */
188*b2d2a78aSEmmanuel Vadot	};
189*b2d2a78aSEmmanuel Vadot
190*b2d2a78aSEmmanuel Vadot	i2c8_pins: i2c8 {
191*b2d2a78aSEmmanuel Vadot		pinmux = <RZG2L_PORT_PINMUX(0, 6, 1)>, /* I2C8_SDA */
192*b2d2a78aSEmmanuel Vadot			 <RZG2L_PORT_PINMUX(0, 7, 1)>; /* I2C8_SCL */
193*b2d2a78aSEmmanuel Vadot	};
194*b2d2a78aSEmmanuel Vadot
195*b2d2a78aSEmmanuel Vadot	scif_pins: scif {
196*b2d2a78aSEmmanuel Vadot		pins = "SCIF_TXD", "SCIF_RXD";
197*b2d2a78aSEmmanuel Vadot		renesas,output-impedance = <1>;
198*b2d2a78aSEmmanuel Vadot	};
199*b2d2a78aSEmmanuel Vadot
200*b2d2a78aSEmmanuel Vadot	sd1-pwr-en-hog {
201*b2d2a78aSEmmanuel Vadot		gpio-hog;
202*b2d2a78aSEmmanuel Vadot		gpios = <RZG2L_GPIO(10, 3) GPIO_ACTIVE_HIGH>;
203*b2d2a78aSEmmanuel Vadot		output-high;
204*b2d2a78aSEmmanuel Vadot		line-name = "sd1_pwr_en";
205*b2d2a78aSEmmanuel Vadot	};
206*b2d2a78aSEmmanuel Vadot
207*b2d2a78aSEmmanuel Vadot	sdhi1_pins: sd1 {
208*b2d2a78aSEmmanuel Vadot		sd1_dat_cmd {
209*b2d2a78aSEmmanuel Vadot			pins = "SD1DAT0", "SD1DAT1", "SD1DAT2", "SD1DAT3", "SD1CMD";
210*b2d2a78aSEmmanuel Vadot			input-enable;
211*b2d2a78aSEmmanuel Vadot			renesas,output-impedance = <3>;
212*b2d2a78aSEmmanuel Vadot			slew-rate = <0>;
213*b2d2a78aSEmmanuel Vadot		};
214*b2d2a78aSEmmanuel Vadot
215*b2d2a78aSEmmanuel Vadot		sd1_clk {
216*b2d2a78aSEmmanuel Vadot			pins = "SD1CLK";
217*b2d2a78aSEmmanuel Vadot			renesas,output-impedance = <3>;
218*b2d2a78aSEmmanuel Vadot			slew-rate = <0>;
219*b2d2a78aSEmmanuel Vadot		};
220*b2d2a78aSEmmanuel Vadot
221*b2d2a78aSEmmanuel Vadot		sd1_cd {
222*b2d2a78aSEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(9, 4, 14)>; /* SD1_CD */
223*b2d2a78aSEmmanuel Vadot		};
224*b2d2a78aSEmmanuel Vadot	};
225*b2d2a78aSEmmanuel Vadot};
226*b2d2a78aSEmmanuel Vadot
227*b2d2a78aSEmmanuel Vadot&qextal_clk {
228*b2d2a78aSEmmanuel Vadot	clock-frequency = <24000000>;
229*b2d2a78aSEmmanuel Vadot};
230*b2d2a78aSEmmanuel Vadot
231*b2d2a78aSEmmanuel Vadot&rtxin_clk {
232*b2d2a78aSEmmanuel Vadot	clock-frequency = <32768>;
233*b2d2a78aSEmmanuel Vadot};
234*b2d2a78aSEmmanuel Vadot
235*b2d2a78aSEmmanuel Vadot&scif {
236*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&scif_pins>;
237*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
238*b2d2a78aSEmmanuel Vadot
239*b2d2a78aSEmmanuel Vadot	status = "okay";
240*b2d2a78aSEmmanuel Vadot};
241*b2d2a78aSEmmanuel Vadot
242*b2d2a78aSEmmanuel Vadot&sdhi1 {
243*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&sdhi1_pins>;
244*b2d2a78aSEmmanuel Vadot	pinctrl-1 = <&sdhi1_pins>;
245*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
246*b2d2a78aSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
247*b2d2a78aSEmmanuel Vadot	vqmmc-supply = <&vqmmc_sdhi1>;
248*b2d2a78aSEmmanuel Vadot	bus-width = <4>;
249*b2d2a78aSEmmanuel Vadot	sd-uhs-sdr50;
250*b2d2a78aSEmmanuel Vadot	sd-uhs-sdr104;
251*b2d2a78aSEmmanuel Vadot	status = "okay";
252*b2d2a78aSEmmanuel Vadot};
253*b2d2a78aSEmmanuel Vadot
254*b2d2a78aSEmmanuel Vadot&wdt1 {
255*b2d2a78aSEmmanuel Vadot	status = "okay";
256*b2d2a78aSEmmanuel Vadot};
257