Skip to content

Commit 8f02301

Browse files
r-vigneshnmenon
authored andcommitted
arm64: dts: ti: k3-am62a: Enable UHS mode support for SD cards
Hook up required IO voltage regulators and drop no-1-8-v to support UHS modes on SD cards. Fixes: 5fc6b1b ("arm64: dts: ti: Introduce AM62A7 family of SoCs") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Judith Mendez <jm@ti.com> Link: https://lore.kernel.org/r/20240423151732.3541894-4-jm@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 735ddec commit 8f02301

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

arch/arm64/boot/dts/ti/k3-am62a-main.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@
573573
ti,itap-del-sel-sd-hs = <0x0>;
574574
ti,itap-del-sel-sdr12 = <0x0>;
575575
ti,itap-del-sel-sdr25 = <0x0>;
576-
no-1-8-v;
577576
status = "disabled";
578577
};
579578

@@ -597,7 +596,6 @@
597596
ti,itap-del-sel-sd-hs = <0x0>;
598597
ti,itap-del-sel-sdr12 = <0x0>;
599598
ti,itap-del-sel-sdr25 = <0x0>;
600-
no-1-8-v;
601599
status = "disabled";
602600
};
603601

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@
113113
regulator-boot-on;
114114
};
115115

116+
vddshv_sdio: regulator-5 {
117+
compatible = "regulator-gpio";
118+
regulator-name = "vddshv_sdio";
119+
pinctrl-names = "default";
120+
pinctrl-0 = <&vddshv_sdio_pins_default>;
121+
regulator-min-microvolt = <1800000>;
122+
regulator-max-microvolt = <3300000>;
123+
regulator-boot-on;
124+
vin-supply = <&ldo1>;
125+
gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
126+
states = <1800000 0x0>,
127+
<3300000 0x1>;
128+
};
129+
116130
leds {
117131
compatible = "gpio-leds";
118132
pinctrl-names = "default";
@@ -342,6 +356,12 @@
342356
AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
343357
>;
344358
};
359+
360+
vddshv_sdio_pins_default: vddshv-sdio-default-pins {
361+
pinctrl-single,pins = <
362+
AM62AX_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */
363+
>;
364+
};
345365
};
346366

347367
&mcu_pmx0 {
@@ -580,6 +600,7 @@
580600
/* SD/MMC */
581601
status = "okay";
582602
vmmc-supply = <&vdd_mmc1>;
603+
vqmmc-supply = <&vddshv_sdio>;
583604
pinctrl-names = "default";
584605
pinctrl-0 = <&main_mmc1_pins_default>;
585606
disable-wp;

0 commit comments

Comments
 (0)