Skip to contentSkip to conversation

armv8: lx2160a: add eSDHC nodes

PATCH Superseded Yinbo Zhu 2 participants 5 messages Oct 10, 2018 – Feb 20, 2019 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yinbo Zhu

author
#0 lore raw

PATCH 1/1 armv8: lx2160a: add eSDHC nodes

This patch is to add eSDHC nodes for lx2160a.

---
 arch/arm/dts/fsl-lx2160a-rdb.dts |    8 ++++++++
 arch/arm/dts/fsl-lx2160a.dtsi    |   24 ++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
arch/arm/dts/fsl-lx2160a-rdb.dts +8 -0
index 162ec25..1d67ba6 100644
@@ -38,3 +38,11 @@
 		reg = <0>;
 	};
 };
+
+&esdhc0 {
+	status = "okay";
+};
+
+&esdhc1 {
+	status = "okay";
+};
arch/arm/dts/fsl-lx2160a.dtsi +24 -0
index 12655fc..ad9bfa2 100644
@@ -76,6 +76,30 @@
 		status = "disabled";
 	};
 
+	esdhc0: esdhc at 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 at 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 at 20c0000 {
 		compatible = "nxp,lx2160a-fspi";
 		#address-cells = <1>;
Signature · 1 line
1.7.1
author
#1 lore raw

PATCH 1/1 armv8: lx2160a: add some minor fixes on esdhc node

The esdhc node has some minor fixes according to the RM document.

---
 arch/arm/dts/fsl-lx2160a.dtsi |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/dts/fsl-lx2160a.dtsi +6 -5
index 73c24f7..8c8172b 100644
@@ -77,8 +77,7 @@
 	};
 
 	esdhc0: esdhc at 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 at 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 at 2100000 {
Signature · 1 line
1.7.1
author
#2 lore raw

PATCH 1/1 configs: lx2160a: enable driver model for eSDHC

In reply to Yinbo Zhu

Enable driver model for eSDHC on lx2160a rdb board.

---
 configs/lx2160ardb_defconfig |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
configs/lx2160ardb_defconfig +3 -0
index bc16085..3d577fc 100644
@@ -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
Signature · 1 line
1.7.1
#3 lore raw

PATCH 1/1 configs: lx2160a: enable driver model for eSDHC

Quoted 10 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Yinbo Zhu
Sent: Wednesday, October 10, 2018 8:45 AM
To: Yinbo Zhu <[email protected]>; Y.b. Lu <[email protected]>; open list <[email protected]>; yorksun at freescale.com
Cc: Xiaobo Xie <[email protected]>
Subject: [U-Boot] [PATCH v1] configs: lx2160a: enable driver model for eSDHC

Quoted 4 lines

Enable driver model for eSDHC on lx2160a rdb board.

---

Squashed lx2rdb platform patches and applied to fsl-qoriq master, awaiting upstream.

--pk

#4 lore raw

PATCH 1/1 armv8: lx2160a: add eSDHC nodes

In reply to Yinbo Zhu
Quoted 9 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Yinbo Zhu
Sent: Wednesday, October 10, 2018 8:45 AM
To: Yinbo Zhu <[email protected]>; Y.b. Lu <[email protected]>; open list <[email protected]>; yorksun at freescale.com
Cc: Xiaobo Xie <[email protected]>
Subject: [U-Boot] [PATCH v1] armv8: lx2160a: add eSDHC nodes

Quoted 4 lines

This patch is to add eSDHC nodes for lx2160a.

---

Squashed with armv8: lx2160ardb : Add support for LX2160ARDB platform And
applied to fsl-qoriq master, awaiting upstream.

--pk