diff mbox series

ARM: dts: exynos: Add external SD card support for Trats board

Message ID 20180907074713.4347-1-m.szyprowski@samsung.com
State New
Headers show
Series ARM: dts: exynos: Add external SD card support for Trats board | expand

Commit Message

Marek Szyprowski Sept. 7, 2018, 7:47 a.m. UTC
Enable support for SDHCI controller number 2 and add required regulator
for external SD card.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

---
 arch/arm/boot/dts/exynos4210-trats.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

-- 
2.17.1

Comments

Krzysztof Kozlowski Sept. 10, 2018, 5 p.m. UTC | #1
On Fri, Sep 07, 2018 at 09:47:13AM +0200, Marek Szyprowski wrote:
> Enable support for SDHCI controller number 2 and add required regulator

> for external SD card.

> 

> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

> ---

>  arch/arm/boot/dts/exynos4210-trats.dts | 15 +++++++++++++++

>  1 file changed, 15 insertions(+)


Thanks, applied.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts
index 6f1d76cb7951..f9bbc6315cd9 100644
--- a/arch/arm/boot/dts/exynos4210-trats.dts
+++ b/arch/arm/boot/dts/exynos4210-trats.dts
@@ -385,6 +385,12 @@ 
 			     regulator-max-microvolt = <1800000>;
 			};
 
+			tflash_reg: LDO17 {
+			     regulator-name = "VTF_2.8V";
+			     regulator-min-microvolt = <2800000>;
+			     regulator-max-microvolt = <2800000>;
+			};
+
 			vddq_reg: LDO21 {
 			     regulator-name = "VDDQ_M1M2_1.2V";
 			     regulator-min-microvolt = <1200000>;
@@ -452,6 +458,15 @@ 
 	status = "okay";
 };
 
+&sdhci_2 {
+	bus-width = <4>;
+	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
+	pinctrl-names = "default";
+	vmmc-supply = <&tflash_reg>;
+	cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
+	status = "okay";
+};
+
 &serial_0 {
 	status = "okay";
 };