Skip to contentSkip to conversation

K2G: mmc: Update mmc dt node to use

PATCH RESEND Applied Kishon Vijay Abraham I 2 participants 7 messages Jun 22, 2018 – Jul 2, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover K2G: mmc: Update mmc dt node to use

Update mmc dt node to use sdhci-omap binding instead of omap_hsmmc binding.

I've also updated keystone_defconfig to enable CONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enable CONFIG_MMC_SDHCI_OMAP for MMC to work.

Kishon Vijay Abraham I (3):
ARM: dts: keystone-k2g-evm: Add "vqmmc-supply" property for mmc0/mmc1
ARM: dts: keystone-k2g-evm: Use sdhci-omap programming model
ARM: configs: keystone: Enable CONFIG_MMC_SDHCI_OMAP

 arch/arm/boot/dts/keystone-k2g-evm.dts | 10 ++++++++++
 arch/arm/boot/dts/keystone-k2g.dtsi    | 12 ++++--------
 arch/arm/configs/keystone_defconfig    |  3 +++
 3 files changed, 17 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH RESEND 1/3 ARM: dts: keystone-k2g-evm: Add "vqmmc-supply" property for mmc0/mmc1

Add "vqmmc-supply" property for mmc0/mmc1 to indicate the supply connected to the IO lines. Also add dt node for ldo1 regulator required for mmc1 vqmmc-supply.

---
 arch/arm/boot/dts/keystone-k2g-evm.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/keystone-k2g-evm.dts +10 -0
index 154fdd7a7022..ba030c496f51 100644
@@ -37,6 +37,14 @@
 		regulator-max-microvolt = <3300000>;
 		regulator-always-on;
 	};
+
+	vcc1v8_ldo1_reg: fixedregulator-vcc1v8-ldo1 {
+		compatible = "regulator-fixed";
+		regulator-name = "ldo1";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-always-on;
+	};
 };
 
 &k2g_pinctrl {
@@ -144,6 +152,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins>;
 	vmmc-supply = <&vcc3v3_dcin_reg>;
+	vqmmc-supply = <&vcc3v3_dcin_reg>;
 	cd-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
 	status = "okay";
 };
@@ -152,6 +161,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins>;
 	vmmc-supply = <&vcc3v3_dcin_reg>; /* VCC3V3_EMMC is connected to VCC3V3_DCIN */
+	vqmmc-supply = <&vcc1v8_ldo1_reg>;
 	ti,non-removable;
 	status = "okay";
 };
Signature · 1 line
2.17.1
#2 lore raw

PATCH RESEND 2/3 ARM: dts: keystone-k2g-evm: Use sdhci-omap programming model

In reply to Kishon Vijay Abraham I

Use sdhci-omap programming model based on the generic sdhci library for programming the MMC/SD controller.

---
 arch/arm/boot/dts/keystone-k2g.dtsi | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
arch/arm/boot/dts/keystone-k2g.dtsi +4 -8
index da78c0034427..af6bf1301cf5 100644
@@ -391,13 +391,10 @@
 		};
 
 		mmc0: mmc@23000000 {
-			compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc";
+			compatible = "ti,k2g-sdhci";
 			reg = <0x23000000 0x400>;
 			interrupts = <GIC_SPI 96 IRQ_TYPE_EDGE_RISING>;
-			dmas = <&edma1 24 0>, <&edma1 25 0>;
-			dma-names = "tx", "rx";
 			bus-width = <4>;
-			ti,needs-special-reset;
 			no-1-8-v;
 			max-frequency = <96000000>;
 			power-domains = <&k2g_pds 0xb>;
@@ -407,13 +404,12 @@
 		};
 
 		mmc1: mmc@23100000 {
-			compatible = "ti,k2g-hsmmc", "ti,omap4-hsmmc";
+			compatible = "ti,k2g-sdhci";
 			reg = <0x23100000 0x400>;
 			interrupts = <GIC_SPI 97 IRQ_TYPE_EDGE_RISING>;
-			dmas = <&edma1 26 0>, <&edma1 27 0>;
-			dma-names = "tx", "rx";
 			bus-width = <8>;
-			ti,needs-special-reset;
+			no-1-8-v;
+			non-removable;
 			max-frequency = <96000000>;
 			power-domains = <&k2g_pds 0xc>;
 			clocks = <&k2g_clks 0xc 1>, <&k2g_clks 0xc 2>;
Signature · 1 line
2.17.1
#3 lore raw

PATCH RESEND 3/3 ARM: configs: keystone: Enable CONFIG_MMC_SDHCI_OMAP

In reply to Kishon Vijay Abraham I

Enable CONFIG_MMC_SDHCI_OMAP so that TI's K2G SoC
can use sdhci-omap driver for MMC/SD controller.

---
 arch/arm/configs/keystone_defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/keystone_defconfig +3 -0
index 2536c231eea1..21a6ce4ef9bc 100644
@@ -170,7 +170,10 @@ CONFIG_USB_DWC3=y
 CONFIG_NOP_USB_XCEIV=y
 CONFIG_KEYSTONE_USB_PHY=y
 CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_OMAP_HS=y
+CONFIG_MMC_SDHCI_OMAP=y
 CONFIG_NEW_LEDS=y
 CONFIG_LEDS_CLASS=y
 CONFIG_LEDS_GPIO=y
Signature · 1 line
2.17.1
#4 lore raw
In reply to Kishon Vijay Abraham I

Santosh,

Quoted 6 lines · Kishon Vijay Abraham I

Update mmc dt node to use sdhci-omap binding instead of omap_hsmmc binding.

I've also updated keystone_defconfig to enable CONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enable CONFIG_MMC_SDHCI_OMAP for MMC to work.

Can this series be merged?

Thanks
Kishon

#5 lore raw
Quoted 12 lines · Kishon Vijay Abraham I

Santosh,

Quoted 6 lines · Kishon Vijay Abraham I

Update mmc dt node to use sdhci-omap binding instead of omap_hsmmc binding.

I've also updated keystone_defconfig to enable CONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enable CONFIG_MMC_SDHCI_OMAP for MMC to work.

Can this series be merged?

Applied. Sorry for missing it in earlier batch.

Regards,
Santosh

#6 lore raw
Quoted 7 lines · Santosh Shilimkar
Quoted 6 lines · Kishon Vijay Abraham I

Santosh,

Quoted 3 lines · Kishon Vijay Abraham I

Update mmc dt node to use sdhci-omap binding instead of omap_hsmmc binding.

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

I've also updated keystone_defconfig to enable CONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enable CONFIG_MMC_SDHCI_OMAP for MMC to work.

Can this series be merged?

Applied. Sorry for missing it in earlier batch.

Thanks Santosh.

-Kishon