xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/rzv2-evk-cn15-sd.dtso (revision 115e74a29b530d121891238e9551c4bcdf7b04b5)
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	};
29};
30
31&pinctrl {
32	sdhi0-pwr-en-hog {
33		gpio-hog;
34		gpios = <RZG2L_GPIO(10, 1) GPIO_ACTIVE_HIGH>;
35		output-high;
36		line-name = "sd0_pwr_en";
37	};
38
39	sdhi0_pins: sd0 {
40		sd0-cd {
41			pinmux = <RZG2L_PORT_PINMUX(10, 5, 15)>; /* SD0_CD */
42		};
43
44		sd0-clk {
45			pins = "SD0CLK";
46			renesas,output-impedance = <3>;
47			slew-rate = <0>;
48		};
49
50		sd0-dat-cmd {
51			pins = "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0CMD";
52			input-enable;
53			renesas,output-impedance = <3>;
54			slew-rate = <0>;
55		};
56	};
57};
58
59&sdhi0 {
60	pinctrl-0 = <&sdhi0_pins>;
61	pinctrl-1 = <&sdhi0_pins>;
62	pinctrl-names = "default", "state_uhs";
63	vmmc-supply = <&reg_3p3v>;
64	vqmmc-supply = <&vqmmc_sdhi0>;
65	bus-width = <4>;
66	sd-uhs-sdr50;
67	sd-uhs-sdr104;
68	status = "okay";
69};
70