| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* |
| 3 |
* Shared DT overlay for the microSD Sub Board (RTK0EF0186B01000BJ), which |
| 4 |
* is connected to the CN15 connector on the RZ/V2H and RZ/V2N EVKs. |
| 5 |
* |
| 6 |
* Copyright (C) 2025 Renesas Electronics Corp. |
| 7 |
*/ |
| 8 |
|
| 9 |
/dts-v1/; |
| 10 |
/plugin/; |
| 11 |
|
| 12 |
#include <dt-bindings/gpio/gpio.h> |
| 13 |
#include <dt-bindings/pinctrl/rzg2l-pinctrl.h> |
| 14 |
|
| 15 |
&{/} { |
| 16 |
aliases { |
| 17 |
mmc0 = "/soc/mmc@15c00000"; |
| 18 |
}; |
| 19 |
|
| 20 |
vqmmc_sdhi0: regulator-vqmmc-sdhi0 { |
| 21 |
compatible = "regulator-gpio"; |
| 22 |
regulator-name = "SDHI0 VqmmC"; |
| 23 |
gpios = <&pinctrl RZG2L_GPIO(10, 0) GPIO_ACTIVE_HIGH>; |
| 24 |
regulator-min-microvolt = <1800000>; |
| 25 |
regulator-max-microvolt = <3300000>; |
| 26 |
gpios-states = <0>; |
| 27 |
states = <3300000 0>, <1800000 1>; |
| 28 |
regulator-ramp-delay = <60>; |
| 29 |
}; |
| 30 |
}; |
| 31 |
|
| 32 |
&pinctrl { |
| 33 |
sdhi0-pwr-en-hog { |
| 34 |
gpio-hog; |
| 35 |
gpios = <RZG2L_GPIO(10, 1) GPIO_ACTIVE_HIGH>; |
| 36 |
output-high; |
| 37 |
line-name = "sd0_pwr_en"; |
| 38 |
}; |
| 39 |
|
| 40 |
sdhi0_pins: sd0 { |
| 41 |
sd0-cd { |
| 42 |
pinmux = <RZG2L_PORT_PINMUX(10, 5, 15)>; /* SD0_CD */ |
| 43 |
}; |
| 44 |
|
| 45 |
sd0-clk { |
| 46 |
pins = "SD0CLK"; |
| 47 |
renesas,output-impedance = <3>; |
| 48 |
slew-rate = <0>; |
| 49 |
}; |
| 50 |
|
| 51 |
sd0-dat-cmd { |
| 52 |
pins = "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0CMD"; |
| 53 |
input-enable; |
| 54 |
renesas,output-impedance = <3>; |
| 55 |
slew-rate = <0>; |
| 56 |
}; |
| 57 |
}; |
| 58 |
}; |
| 59 |
|
| 60 |
&sdhi0 { |
| 61 |
pinctrl-0 = <&sdhi0_pins>; |
| 62 |
pinctrl-1 = <&sdhi0_pins>; |
| 63 |
pinctrl-names = "default", "state_uhs"; |
| 64 |
vmmc-supply = <®_3p3v>; |
| 65 |
vqmmc-supply = <&vqmmc_sdhi0>; |
| 66 |
bus-width = <4>; |
| 67 |
sd-uhs-sdr50; |
| 68 |
sd-uhs-sdr104; |
| 69 |
status = "okay"; |
| 70 |
}; |