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