K2G: mmc: Update mmc dt node to use
Subsystems (3)
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
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
@@ -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
PATCH RESEND 2/3 ARM: dts: keystone-k2g-evm: Use sdhci-omap programming model
In reply to Kishon Vijay Abraham IUse 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
@@ -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
PATCH RESEND 3/3 ARM: configs: keystone: Enable CONFIG_MMC_SDHCI_OMAP
In reply to Kishon Vijay Abraham IEnable 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
@@ -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
Santosh,
Quoted 6 lines · Kishon Vijay Abraham I
Update mmc dt node to use sdhci-omap binding instead of
omap_hsmmcbinding.I've also updated
keystone_defconfigto enableCONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enableCONFIG_MMC_SDHCI_OMAPfor MMC to work.
Can this series be merged?
Thanks
Kishon
Santosh Shilimkar
AppliedQuoted 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_hsmmcbinding.I've also updated
keystone_defconfigto enableCONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enableCONFIG_MMC_SDHCI_OMAPfor MMC to work.Can this series be merged?
Applied. Sorry for missing it in earlier batch.
Regards,
Santosh
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_hsmmcbinding.
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
I've also updated
keystone_defconfigto enableCONFIG_MMC_SDHCI_OMAP. Everyone who use a custom .config should also enableCONFIG_MMC_SDHCI_OMAPfor MMC to work.Can this series be merged?
Applied. Sorry for missing it in earlier batch.
Thanks Santosh.
-Kishon