xref: /freebsd/sys/contrib/device-tree/src/arm64/renesas/r9a09g056n48-rzv2n-evk.dts (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1ae5de77eSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2ae5de77eSEmmanuel Vadot/*
3ae5de77eSEmmanuel Vadot * Device Tree Source for the RZ/V2N EVK board
4ae5de77eSEmmanuel Vadot *
5ae5de77eSEmmanuel Vadot * Copyright (C) 2025 Renesas Electronics Corp.
6ae5de77eSEmmanuel Vadot */
7ae5de77eSEmmanuel Vadot
8ae5de77eSEmmanuel Vadot/dts-v1/;
9ae5de77eSEmmanuel Vadot
10ae5de77eSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
11ae5de77eSEmmanuel Vadot#include "r9a09g056.dtsi"
12ae5de77eSEmmanuel Vadot
13ae5de77eSEmmanuel Vadot/ {
14ae5de77eSEmmanuel Vadot	model = "Renesas RZ/V2N EVK Board based on r9a09g056n48";
15ae5de77eSEmmanuel Vadot	compatible = "renesas,rzv2n-evk", "renesas,r9a09g056n48", "renesas,r9a09g056";
16ae5de77eSEmmanuel Vadot
17ae5de77eSEmmanuel Vadot	aliases {
18*833e5d42SEmmanuel Vadot		ethernet0 = &eth0;
19*833e5d42SEmmanuel Vadot		ethernet1 = &eth1;
20*833e5d42SEmmanuel Vadot		i2c0 = &i2c0;
21*833e5d42SEmmanuel Vadot		i2c1 = &i2c1;
22*833e5d42SEmmanuel Vadot		i2c2 = &i2c2;
23*833e5d42SEmmanuel Vadot		i2c3 = &i2c3;
24*833e5d42SEmmanuel Vadot		i2c6 = &i2c6;
25*833e5d42SEmmanuel Vadot		i2c7 = &i2c7;
26*833e5d42SEmmanuel Vadot		i2c8 = &i2c8;
27ae5de77eSEmmanuel Vadot		mmc1 = &sdhi1;
28ae5de77eSEmmanuel Vadot		serial0 = &scif;
29ae5de77eSEmmanuel Vadot	};
30ae5de77eSEmmanuel Vadot
31ae5de77eSEmmanuel Vadot	chosen {
32ae5de77eSEmmanuel Vadot		bootargs = "ignore_loglevel";
33ae5de77eSEmmanuel Vadot		stdout-path = "serial0:115200n8";
34ae5de77eSEmmanuel Vadot	};
35ae5de77eSEmmanuel Vadot
36ae5de77eSEmmanuel Vadot	memory@48000000 {
37ae5de77eSEmmanuel Vadot		device_type = "memory";
38ae5de77eSEmmanuel Vadot		/* first 128MB is reserved for secure area. */
39ae5de77eSEmmanuel Vadot		reg = <0x0 0x48000000 0x1 0xf8000000>;
40ae5de77eSEmmanuel Vadot	};
41ae5de77eSEmmanuel Vadot
42*833e5d42SEmmanuel Vadot	reg_0p8v: regulator-0p8v {
43*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
44*833e5d42SEmmanuel Vadot		regulator-name = "fixed-0.8V";
45*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <800000>;
46*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <800000>;
47*833e5d42SEmmanuel Vadot		regulator-boot-on;
48*833e5d42SEmmanuel Vadot		regulator-always-on;
49*833e5d42SEmmanuel Vadot	};
50*833e5d42SEmmanuel Vadot
51*833e5d42SEmmanuel Vadot	reg_1p8v: regulator-1p8v {
52*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
53*833e5d42SEmmanuel Vadot		regulator-name = "fixed-1.8V";
54*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <1800000>;
55*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <1800000>;
56*833e5d42SEmmanuel Vadot		regulator-boot-on;
57*833e5d42SEmmanuel Vadot		regulator-always-on;
58*833e5d42SEmmanuel Vadot	};
59*833e5d42SEmmanuel Vadot
60ae5de77eSEmmanuel Vadot	reg_3p3v: regulator-3p3v {
61ae5de77eSEmmanuel Vadot		compatible = "regulator-fixed";
62ae5de77eSEmmanuel Vadot		regulator-name = "fixed-3.3V";
63ae5de77eSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
64ae5de77eSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
65ae5de77eSEmmanuel Vadot		regulator-boot-on;
66ae5de77eSEmmanuel Vadot		regulator-always-on;
67ae5de77eSEmmanuel Vadot	};
68ae5de77eSEmmanuel Vadot
69ae5de77eSEmmanuel Vadot	vqmmc_sdhi1: regulator-vqmmc-sdhi1 {
70ae5de77eSEmmanuel Vadot		compatible = "regulator-gpio";
71ae5de77eSEmmanuel Vadot		regulator-name = "SDHI1 VqmmC";
72ae5de77eSEmmanuel Vadot		gpios = <&pinctrl RZV2N_GPIO(A, 2) GPIO_ACTIVE_HIGH>;
73ae5de77eSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
74ae5de77eSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
75ae5de77eSEmmanuel Vadot		gpios-states = <0>;
76ae5de77eSEmmanuel Vadot		states = <3300000 0>, <1800000 1>;
77ae5de77eSEmmanuel Vadot	};
78*833e5d42SEmmanuel Vadot
79*833e5d42SEmmanuel Vadot	/* 32.768kHz crystal */
80*833e5d42SEmmanuel Vadot	x6: x6-clock {
81*833e5d42SEmmanuel Vadot		compatible = "fixed-clock";
82*833e5d42SEmmanuel Vadot		#clock-cells = <0>;
83*833e5d42SEmmanuel Vadot		clock-frequency = <32768>;
84*833e5d42SEmmanuel Vadot	};
85ae5de77eSEmmanuel Vadot};
86ae5de77eSEmmanuel Vadot
87ae5de77eSEmmanuel Vadot&audio_extal_clk {
88ae5de77eSEmmanuel Vadot	clock-frequency = <22579200>;
89ae5de77eSEmmanuel Vadot};
90ae5de77eSEmmanuel Vadot
91*833e5d42SEmmanuel Vadot&ehci0 {
92*833e5d42SEmmanuel Vadot	dr_mode = "otg";
93*833e5d42SEmmanuel Vadot	status = "okay";
94*833e5d42SEmmanuel Vadot};
95*833e5d42SEmmanuel Vadot
96*833e5d42SEmmanuel Vadot&eth0 {
97*833e5d42SEmmanuel Vadot	pinctrl-0 = <&eth0_pins>;
98*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
99*833e5d42SEmmanuel Vadot	phy-handle = <&phy0>;
100*833e5d42SEmmanuel Vadot	phy-mode = "rgmii-id";
101*833e5d42SEmmanuel Vadot	status = "okay";
102*833e5d42SEmmanuel Vadot};
103*833e5d42SEmmanuel Vadot
104*833e5d42SEmmanuel Vadot&eth1 {
105*833e5d42SEmmanuel Vadot	pinctrl-0 = <&eth1_pins>;
106*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
107*833e5d42SEmmanuel Vadot	phy-handle = <&phy1>;
108*833e5d42SEmmanuel Vadot	phy-mode = "rgmii-id";
109*833e5d42SEmmanuel Vadot	status = "okay";
110*833e5d42SEmmanuel Vadot};
111*833e5d42SEmmanuel Vadot
112*833e5d42SEmmanuel Vadot&gpu {
113*833e5d42SEmmanuel Vadot	status = "okay";
114*833e5d42SEmmanuel Vadot	mali-supply = <&reg_0p8v>;
115*833e5d42SEmmanuel Vadot};
116*833e5d42SEmmanuel Vadot
117*833e5d42SEmmanuel Vadot&hsusb {
118*833e5d42SEmmanuel Vadot	dr_mode = "otg";
119*833e5d42SEmmanuel Vadot	status = "okay";
120*833e5d42SEmmanuel Vadot};
121*833e5d42SEmmanuel Vadot
122*833e5d42SEmmanuel Vadot&i2c0 {
123*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c0_pins>;
124*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
125*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
126*833e5d42SEmmanuel Vadot	status = "okay";
127*833e5d42SEmmanuel Vadot};
128*833e5d42SEmmanuel Vadot
129*833e5d42SEmmanuel Vadot&i2c1 {
130*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
131*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
132*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
133*833e5d42SEmmanuel Vadot	status = "okay";
134*833e5d42SEmmanuel Vadot};
135*833e5d42SEmmanuel Vadot
136*833e5d42SEmmanuel Vadot&i2c2 {
137*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c2_pins>;
138*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
139*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
140*833e5d42SEmmanuel Vadot	status = "okay";
141*833e5d42SEmmanuel Vadot};
142*833e5d42SEmmanuel Vadot
143*833e5d42SEmmanuel Vadot&i2c3 {
144*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c3_pins>;
145*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
146*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
147*833e5d42SEmmanuel Vadot	status = "okay";
148*833e5d42SEmmanuel Vadot};
149*833e5d42SEmmanuel Vadot
150*833e5d42SEmmanuel Vadot&i2c6 {
151*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c6_pins>;
152*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
153*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
154*833e5d42SEmmanuel Vadot	status = "okay";
155*833e5d42SEmmanuel Vadot};
156*833e5d42SEmmanuel Vadot
157*833e5d42SEmmanuel Vadot&i2c7 {
158*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c7_pins>;
159*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
160*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
161*833e5d42SEmmanuel Vadot	status = "okay";
162*833e5d42SEmmanuel Vadot};
163*833e5d42SEmmanuel Vadot
164*833e5d42SEmmanuel Vadot&i2c8 {
165*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c8_pins>;
166*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
167*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
168*833e5d42SEmmanuel Vadot	status = "okay";
169*833e5d42SEmmanuel Vadot
170*833e5d42SEmmanuel Vadot	raa215300: pmic@12 {
171*833e5d42SEmmanuel Vadot		compatible = "renesas,raa215300";
172*833e5d42SEmmanuel Vadot		reg = <0x12>, <0x6f>;
173*833e5d42SEmmanuel Vadot		reg-names = "main", "rtc";
174*833e5d42SEmmanuel Vadot		clocks = <&x6>;
175*833e5d42SEmmanuel Vadot		clock-names = "xin";
176*833e5d42SEmmanuel Vadot	};
177*833e5d42SEmmanuel Vadot};
178*833e5d42SEmmanuel Vadot
179*833e5d42SEmmanuel Vadot&mdio0 {
180*833e5d42SEmmanuel Vadot	phy0: ethernet-phy@0 {
181*833e5d42SEmmanuel Vadot		compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22";
182*833e5d42SEmmanuel Vadot		reg = <0>;
183*833e5d42SEmmanuel Vadot		rxc-skew-psec = <0>;
184*833e5d42SEmmanuel Vadot		txc-skew-psec = <0>;
185*833e5d42SEmmanuel Vadot		rxdv-skew-psec = <0>;
186*833e5d42SEmmanuel Vadot		txdv-skew-psec = <0>;
187*833e5d42SEmmanuel Vadot		rxd0-skew-psec = <0>;
188*833e5d42SEmmanuel Vadot		rxd1-skew-psec = <0>;
189*833e5d42SEmmanuel Vadot		rxd2-skew-psec = <0>;
190*833e5d42SEmmanuel Vadot		rxd3-skew-psec = <0>;
191*833e5d42SEmmanuel Vadot		txd0-skew-psec = <0>;
192*833e5d42SEmmanuel Vadot		txd1-skew-psec = <0>;
193*833e5d42SEmmanuel Vadot		txd2-skew-psec = <0>;
194*833e5d42SEmmanuel Vadot		txd3-skew-psec = <0>;
195*833e5d42SEmmanuel Vadot	};
196*833e5d42SEmmanuel Vadot};
197*833e5d42SEmmanuel Vadot
198*833e5d42SEmmanuel Vadot&mdio1 {
199*833e5d42SEmmanuel Vadot	phy1: ethernet-phy@1 {
200*833e5d42SEmmanuel Vadot		compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22";
201*833e5d42SEmmanuel Vadot		reg = <0>;
202*833e5d42SEmmanuel Vadot		rxc-skew-psec = <0>;
203*833e5d42SEmmanuel Vadot		txc-skew-psec = <0>;
204*833e5d42SEmmanuel Vadot		rxdv-skew-psec = <0>;
205*833e5d42SEmmanuel Vadot		txdv-skew-psec = <0>;
206*833e5d42SEmmanuel Vadot		rxd0-skew-psec = <0>;
207*833e5d42SEmmanuel Vadot		rxd1-skew-psec = <0>;
208*833e5d42SEmmanuel Vadot		rxd2-skew-psec = <0>;
209*833e5d42SEmmanuel Vadot		rxd3-skew-psec = <0>;
210*833e5d42SEmmanuel Vadot		txd0-skew-psec = <0>;
211*833e5d42SEmmanuel Vadot		txd1-skew-psec = <0>;
212*833e5d42SEmmanuel Vadot		txd2-skew-psec = <0>;
213*833e5d42SEmmanuel Vadot		txd3-skew-psec = <0>;
214*833e5d42SEmmanuel Vadot	};
215*833e5d42SEmmanuel Vadot};
216*833e5d42SEmmanuel Vadot
217*833e5d42SEmmanuel Vadot&ohci0 {
218*833e5d42SEmmanuel Vadot	dr_mode = "otg";
219*833e5d42SEmmanuel Vadot	status = "okay";
220*833e5d42SEmmanuel Vadot};
221*833e5d42SEmmanuel Vadot
222*833e5d42SEmmanuel Vadot&ostm0 {
223*833e5d42SEmmanuel Vadot	status = "okay";
224*833e5d42SEmmanuel Vadot};
225*833e5d42SEmmanuel Vadot
226*833e5d42SEmmanuel Vadot&ostm1 {
227*833e5d42SEmmanuel Vadot	status = "okay";
228*833e5d42SEmmanuel Vadot};
229*833e5d42SEmmanuel Vadot
230*833e5d42SEmmanuel Vadot&ostm2 {
231*833e5d42SEmmanuel Vadot	status = "okay";
232*833e5d42SEmmanuel Vadot};
233*833e5d42SEmmanuel Vadot
234*833e5d42SEmmanuel Vadot&ostm3 {
235*833e5d42SEmmanuel Vadot	status = "okay";
236*833e5d42SEmmanuel Vadot};
237*833e5d42SEmmanuel Vadot
238*833e5d42SEmmanuel Vadot&ostm4 {
239*833e5d42SEmmanuel Vadot	status = "okay";
240*833e5d42SEmmanuel Vadot};
241*833e5d42SEmmanuel Vadot
242*833e5d42SEmmanuel Vadot&ostm5 {
243*833e5d42SEmmanuel Vadot	status = "okay";
244*833e5d42SEmmanuel Vadot};
245*833e5d42SEmmanuel Vadot
246*833e5d42SEmmanuel Vadot&ostm6 {
247*833e5d42SEmmanuel Vadot	status = "okay";
248*833e5d42SEmmanuel Vadot};
249*833e5d42SEmmanuel Vadot
250*833e5d42SEmmanuel Vadot&ostm7 {
251*833e5d42SEmmanuel Vadot	status = "okay";
252*833e5d42SEmmanuel Vadot};
253*833e5d42SEmmanuel Vadot
254ae5de77eSEmmanuel Vadot&pinctrl {
255*833e5d42SEmmanuel Vadot	eth0_pins: eth0 {
256*833e5d42SEmmanuel Vadot		pins = "ET0_TXC_TXCLK";
257*833e5d42SEmmanuel Vadot		output-enable;
258*833e5d42SEmmanuel Vadot	};
259*833e5d42SEmmanuel Vadot
260*833e5d42SEmmanuel Vadot	eth1_pins: eth1 {
261*833e5d42SEmmanuel Vadot		pins = "ET1_TXC_TXCLK";
262*833e5d42SEmmanuel Vadot		output-enable;
263*833e5d42SEmmanuel Vadot	};
264*833e5d42SEmmanuel Vadot
265*833e5d42SEmmanuel Vadot	i2c0_pins: i2c0 {
266*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(3, 0, 1)>, /* I2C0_SDA */
267*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(3, 1, 1)>; /* I2C0_SCL */
268*833e5d42SEmmanuel Vadot	};
269*833e5d42SEmmanuel Vadot
270*833e5d42SEmmanuel Vadot	i2c1_pins: i2c1 {
271*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(3, 2, 1)>, /* I2C1_SDA */
272*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(3, 3, 1)>; /* I2C1_SCL */
273*833e5d42SEmmanuel Vadot	};
274*833e5d42SEmmanuel Vadot
275*833e5d42SEmmanuel Vadot	i2c2_pins: i2c2 {
276*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(2, 0, 4)>, /* I2C2_SDA */
277*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(2, 1, 4)>; /* I2C2_SCL */
278*833e5d42SEmmanuel Vadot	};
279*833e5d42SEmmanuel Vadot
280*833e5d42SEmmanuel Vadot	i2c3_pins: i2c3 {
281*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(3, 6, 1)>, /* I2C3_SDA */
282*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(3, 7, 1)>; /* I2C3_SCL */
283*833e5d42SEmmanuel Vadot	};
284*833e5d42SEmmanuel Vadot
285*833e5d42SEmmanuel Vadot	i2c6_pins: i2c6 {
286*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(4, 4, 1)>, /* I2C6_SDA */
287*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(4, 5, 1)>; /* I2C6_SCL */
288*833e5d42SEmmanuel Vadot		/* There are no pull-up resistors on the EVK, so enable the internal pull-up */
289*833e5d42SEmmanuel Vadot		bias-pull-up;
290*833e5d42SEmmanuel Vadot	};
291*833e5d42SEmmanuel Vadot
292*833e5d42SEmmanuel Vadot	i2c7_pins: i2c7 {
293*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(4, 6, 1)>, /* I2C7_SDA */
294*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(4, 7, 1)>; /* I2C7_SCL */
295*833e5d42SEmmanuel Vadot		/* There are no pull-up resistors on the EVK, so enable the internal pull-up */
296*833e5d42SEmmanuel Vadot		bias-pull-up;
297*833e5d42SEmmanuel Vadot	};
298*833e5d42SEmmanuel Vadot
299*833e5d42SEmmanuel Vadot	i2c8_pins: i2c8 {
300*833e5d42SEmmanuel Vadot		pinmux = <RZV2N_PORT_PINMUX(0, 6, 1)>, /* I2C8_SDA */
301*833e5d42SEmmanuel Vadot			 <RZV2N_PORT_PINMUX(0, 7, 1)>; /* I2C8_SCL */
302*833e5d42SEmmanuel Vadot	};
303*833e5d42SEmmanuel Vadot
304ae5de77eSEmmanuel Vadot	scif_pins: scif {
305ae5de77eSEmmanuel Vadot		pins = "SCIF_TXD", "SCIF_RXD";
306ae5de77eSEmmanuel Vadot		renesas,output-impedance = <1>;
307ae5de77eSEmmanuel Vadot	};
308ae5de77eSEmmanuel Vadot
309ae5de77eSEmmanuel Vadot	sd1-pwr-en-hog {
310ae5de77eSEmmanuel Vadot		gpio-hog;
311ae5de77eSEmmanuel Vadot		gpios = <RZV2N_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
312ae5de77eSEmmanuel Vadot		output-high;
313ae5de77eSEmmanuel Vadot		line-name = "sd1_pwr_en";
314ae5de77eSEmmanuel Vadot	};
315ae5de77eSEmmanuel Vadot
316ae5de77eSEmmanuel Vadot	sdhi1_pins: sd1 {
317ae5de77eSEmmanuel Vadot		sd1-cd {
318ae5de77eSEmmanuel Vadot			pinmux = <RZV2N_PORT_PINMUX(9, 4, 14)>; /* SD1_CD */
319ae5de77eSEmmanuel Vadot		};
320ae5de77eSEmmanuel Vadot
321ae5de77eSEmmanuel Vadot		sd1-clk {
322ae5de77eSEmmanuel Vadot			pins = "SD1CLK";
323ae5de77eSEmmanuel Vadot			renesas,output-impedance = <3>;
324ae5de77eSEmmanuel Vadot			slew-rate = <0>;
325ae5de77eSEmmanuel Vadot		};
326ae5de77eSEmmanuel Vadot
327ae5de77eSEmmanuel Vadot		sd1-dat-cmd {
328ae5de77eSEmmanuel Vadot			pins = "SD1DAT0", "SD1DAT1", "SD1DAT2", "SD1DAT3", "SD1CMD";
329ae5de77eSEmmanuel Vadot			input-enable;
330ae5de77eSEmmanuel Vadot			renesas,output-impedance = <3>;
331ae5de77eSEmmanuel Vadot			slew-rate = <0>;
332ae5de77eSEmmanuel Vadot		};
333ae5de77eSEmmanuel Vadot	};
334*833e5d42SEmmanuel Vadot
335*833e5d42SEmmanuel Vadot	usb20_pins: usb20 {
336*833e5d42SEmmanuel Vadot		ovc {
337*833e5d42SEmmanuel Vadot			pinmux =  <RZV2N_PORT_PINMUX(9, 6, 14)>; /* OVC */
338*833e5d42SEmmanuel Vadot		};
339*833e5d42SEmmanuel Vadot
340*833e5d42SEmmanuel Vadot		vbus {
341*833e5d42SEmmanuel Vadot			pinmux = <RZV2N_PORT_PINMUX(9, 5, 14)>; /* VBUS */
342*833e5d42SEmmanuel Vadot		};
343*833e5d42SEmmanuel Vadot	};
344*833e5d42SEmmanuel Vadot
345*833e5d42SEmmanuel Vadot	xspi_pins: xspi0 {
346*833e5d42SEmmanuel Vadot		ctrl {
347*833e5d42SEmmanuel Vadot			pins = "XSPI0_RESET0N", "XSPI0_CS0N", "XSPI0_CKP";
348*833e5d42SEmmanuel Vadot			output-enable;
349*833e5d42SEmmanuel Vadot		};
350*833e5d42SEmmanuel Vadot
351*833e5d42SEmmanuel Vadot		io {
352*833e5d42SEmmanuel Vadot			pins = "XSPI0_IO0", "XSPI0_IO1", "XSPI0_IO2", "XSPI0_IO3";
353*833e5d42SEmmanuel Vadot			renesas,output-impedance = <3>;
354*833e5d42SEmmanuel Vadot		};
355*833e5d42SEmmanuel Vadot	};
356ae5de77eSEmmanuel Vadot};
357ae5de77eSEmmanuel Vadot
358ae5de77eSEmmanuel Vadot&qextal_clk {
359ae5de77eSEmmanuel Vadot	clock-frequency = <24000000>;
360ae5de77eSEmmanuel Vadot};
361ae5de77eSEmmanuel Vadot
362ae5de77eSEmmanuel Vadot&rtxin_clk {
363ae5de77eSEmmanuel Vadot	clock-frequency = <32768>;
364ae5de77eSEmmanuel Vadot};
365ae5de77eSEmmanuel Vadot
366ae5de77eSEmmanuel Vadot&scif {
367ae5de77eSEmmanuel Vadot	pinctrl-0 = <&scif_pins>;
368ae5de77eSEmmanuel Vadot	pinctrl-names = "default";
369ae5de77eSEmmanuel Vadot	status = "okay";
370ae5de77eSEmmanuel Vadot};
371ae5de77eSEmmanuel Vadot
372ae5de77eSEmmanuel Vadot&sdhi1 {
373ae5de77eSEmmanuel Vadot	pinctrl-0 = <&sdhi1_pins>;
374ae5de77eSEmmanuel Vadot	pinctrl-1 = <&sdhi1_pins>;
375ae5de77eSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
376ae5de77eSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
377ae5de77eSEmmanuel Vadot	vqmmc-supply = <&vqmmc_sdhi1>;
378ae5de77eSEmmanuel Vadot	bus-width = <4>;
379ae5de77eSEmmanuel Vadot	sd-uhs-sdr50;
380ae5de77eSEmmanuel Vadot	sd-uhs-sdr104;
381ae5de77eSEmmanuel Vadot	status = "okay";
382ae5de77eSEmmanuel Vadot};
383*833e5d42SEmmanuel Vadot
384*833e5d42SEmmanuel Vadot&usb20phyrst {
385*833e5d42SEmmanuel Vadot	status = "okay";
386*833e5d42SEmmanuel Vadot};
387*833e5d42SEmmanuel Vadot
388*833e5d42SEmmanuel Vadot&usb2_phy0 {
389*833e5d42SEmmanuel Vadot	pinctrl-0 = <&usb20_pins>;
390*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
391*833e5d42SEmmanuel Vadot
392*833e5d42SEmmanuel Vadot	status = "okay";
393*833e5d42SEmmanuel Vadot};
394*833e5d42SEmmanuel Vadot
395*833e5d42SEmmanuel Vadot&wdt1 {
396*833e5d42SEmmanuel Vadot	status = "okay";
397*833e5d42SEmmanuel Vadot};
398*833e5d42SEmmanuel Vadot
399*833e5d42SEmmanuel Vadot&xspi {
400*833e5d42SEmmanuel Vadot	pinctrl-0 = <&xspi_pins>;
401*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
402*833e5d42SEmmanuel Vadot	/*
403*833e5d42SEmmanuel Vadot	 * MT25QU512ABB8E12 flash chip is capable of running at 166MHz
404*833e5d42SEmmanuel Vadot	 * clock frequency. Set the clock frequency to the maximum 133MHz
405*833e5d42SEmmanuel Vadot	 * supported by the RZ/V2N SoC.
406*833e5d42SEmmanuel Vadot	 */
407*833e5d42SEmmanuel Vadot	assigned-clocks = <&cpg CPG_CORE R9A09G056_SPI_CLK_SPI>;
408*833e5d42SEmmanuel Vadot	assigned-clock-rates = <133333334>;
409*833e5d42SEmmanuel Vadot	status = "okay";
410*833e5d42SEmmanuel Vadot
411*833e5d42SEmmanuel Vadot	flash@0 {
412*833e5d42SEmmanuel Vadot		compatible = "jedec,spi-nor";
413*833e5d42SEmmanuel Vadot		reg = <0>;
414*833e5d42SEmmanuel Vadot		vcc-supply = <&reg_1p8v>;
415*833e5d42SEmmanuel Vadot		m25p,fast-read;
416*833e5d42SEmmanuel Vadot		spi-tx-bus-width = <4>;
417*833e5d42SEmmanuel Vadot		spi-rx-bus-width = <4>;
418*833e5d42SEmmanuel Vadot
419*833e5d42SEmmanuel Vadot		partitions {
420*833e5d42SEmmanuel Vadot			compatible = "fixed-partitions";
421*833e5d42SEmmanuel Vadot			#address-cells = <1>;
422*833e5d42SEmmanuel Vadot			#size-cells = <1>;
423*833e5d42SEmmanuel Vadot
424*833e5d42SEmmanuel Vadot			partition@0 {
425*833e5d42SEmmanuel Vadot				label = "bl2";
426*833e5d42SEmmanuel Vadot				reg = <0x00000000 0x00060000>;
427*833e5d42SEmmanuel Vadot			};
428*833e5d42SEmmanuel Vadot
429*833e5d42SEmmanuel Vadot			partition@60000 {
430*833e5d42SEmmanuel Vadot				label = "fip";
431*833e5d42SEmmanuel Vadot				reg = <0x00060000 0x1fa0000>;
432*833e5d42SEmmanuel Vadot			};
433*833e5d42SEmmanuel Vadot
434*833e5d42SEmmanuel Vadot			partition@2000000 {
435*833e5d42SEmmanuel Vadot				label = "user";
436*833e5d42SEmmanuel Vadot				reg = <0x2000000 0x2000000>;
437*833e5d42SEmmanuel Vadot			};
438*833e5d42SEmmanuel Vadot		};
439*833e5d42SEmmanuel Vadot	};
440*833e5d42SEmmanuel Vadot};
441