[U-Boot] [PATCH v1] armv8: lx2160a: add eSDHC nodes

This patch is to add eSDHC nodes for lx2160a.
Signed-off-by: Yinbo Zhu yinbo.zhu@nxp.com --- arch/arm/dts/fsl-lx2160a-rdb.dts | 8 ++++++++ arch/arm/dts/fsl-lx2160a.dtsi | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts index 162ec25..1d67ba6 100644 --- a/arch/arm/dts/fsl-lx2160a-rdb.dts +++ b/arch/arm/dts/fsl-lx2160a-rdb.dts @@ -38,3 +38,11 @@ reg = <0>; }; }; + +&esdhc0 { + status = "okay"; +}; + +&esdhc1 { + status = "okay"; +}; diff --git a/arch/arm/dts/fsl-lx2160a.dtsi b/arch/arm/dts/fsl-lx2160a.dtsi index 12655fc..ad9bfa2 100644 --- a/arch/arm/dts/fsl-lx2160a.dtsi +++ b/arch/arm/dts/fsl-lx2160a.dtsi @@ -76,6 +76,30 @@ status = "disabled"; };
+ esdhc0: esdhc@2140000 { + status = "disabled"; + compatible = "fsl,ls2080a-esdhc", "fsl,esdhc"; + reg = <0x0 0x2140000 0x0 0x10000>; + interrupts = <0 28 0x4>; /* Level high type */ + clocks = <&clockgen 4 1>; + voltage-ranges = <1800 1800 3300 3300>; + sdhci,auto-cmd12; + little-endian; + bus-width = <4>; + }; + + esdhc1: esdhc@2150000 { + status = "disabled"; + compatible = "fsl,ls2080a-esdhc", "fsl,esdhc"; + reg = <0x0 0x2150000 0x0 0x10000>; + interrupts = <0 28 0x4>; /* Level high type */ + clocks = <&clockgen 4 1>; + voltage-ranges = <1800 1800 3300 3300>; + sdhci,auto-cmd12; + little-endian; + bus-width = <4>; + }; + fspi: flexspi@20c0000 { compatible = "nxp,lx2160a-fspi"; #address-cells = <1>;

The esdhc node has some minor fixes according to the RM document.
Signed-off-by: Yinbo Zhu yinbo.zhu@nxp.com --- arch/arm/dts/fsl-lx2160a.dtsi | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/arm/dts/fsl-lx2160a.dtsi b/arch/arm/dts/fsl-lx2160a.dtsi index 73c24f7..8c8172b 100644 --- a/arch/arm/dts/fsl-lx2160a.dtsi +++ b/arch/arm/dts/fsl-lx2160a.dtsi @@ -77,8 +77,7 @@ };
esdhc0: esdhc@2140000 { - status = "disabled"; - compatible = "fsl,ls2080a-esdhc", "fsl,esdhc"; + compatible = "fsl,esdhc"; reg = <0x0 0x2140000 0x0 0x10000>; interrupts = <0 28 0x4>; /* Level high type */ clocks = <&clockgen 4 1>; @@ -86,18 +85,20 @@ sdhci,auto-cmd12; little-endian; bus-width = <4>; + status = "disabled"; };
esdhc1: esdhc@2150000 { - status = "disabled"; - compatible = "fsl,ls2080a-esdhc", "fsl,esdhc"; + compatible = "fsl,esdhc"; reg = <0x0 0x2150000 0x0 0x10000>; - interrupts = <0 28 0x4>; /* Level high type */ + interrupts = <0 63 0x4>; /* Level high type */ clocks = <&clockgen 4 1>; voltage-ranges = <1800 1800 3300 3300>; sdhci,auto-cmd12; + non-removable; little-endian; bus-width = <4>; + status = "disabled"; };
dspi0: dspi@2100000 {

Enable driver model for eSDHC on lx2160a rdb board.
Signed-off-by: Yinbo Zhu yinbo.zhu@nxp.com --- configs/lx2160ardb_defconfig | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/configs/lx2160ardb_defconfig b/configs/lx2160ardb_defconfig index bc16085..3d577fc 100644 --- a/configs/lx2160ardb_defconfig +++ b/configs/lx2160ardb_defconfig @@ -35,6 +35,9 @@ CONFIG_NXP_FSPI=y CONFIG_PHYLIB=y CONFIG_NETDEVICES=y CONFIG_PHY_GIGE=y +CONFIG_DM_MMC=y +CONFIG_DM_MMC_OPS=n +CONFIG_BLK=n CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y

-----Original Message----- From: U-Boot u-boot-bounces@lists.denx.de On Behalf Of Yinbo Zhu Sent: Wednesday, October 10, 2018 8:45 AM To: Yinbo Zhu yinbo.zhu@nxp.com; Y.b. Lu yangbo.lu@nxp.com; open list u-boot@lists.denx.de; yorksun@freescale.com Cc: Xiaobo Xie xiaobo.xie@nxp.com Subject: [U-Boot] [PATCH v1] configs: lx2160a: enable driver model for eSDHC
Enable driver model for eSDHC on lx2160a rdb board.
Signed-off-by: Yinbo Zhu yinbo.zhu@nxp.com
Squashed lx2rdb platform patches and applied to fsl-qoriq master, awaiting upstream.
--pk

-----Original Message----- From: U-Boot u-boot-bounces@lists.denx.de On Behalf Of Yinbo Zhu Sent: Wednesday, October 10, 2018 8:45 AM To: Yinbo Zhu yinbo.zhu@nxp.com; Y.b. Lu yangbo.lu@nxp.com; open list u-boot@lists.denx.de; yorksun@freescale.com Cc: Xiaobo Xie xiaobo.xie@nxp.com Subject: [U-Boot] [PATCH v1] armv8: lx2160a: add eSDHC nodes
This patch is to add eSDHC nodes for lx2160a.
Signed-off-by: Yinbo Zhu yinbo.zhu@nxp.com
Squashed with armv8: lx2160ardb : Add support for LX2160ARDB platform And applied to fsl-qoriq master, awaiting upstream.
--pk
participants (2)
-
Prabhakar Kushwaha
-
Yinbo Zhu