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

Yinbo Zhu yinbo.zhu at nxp.com
Wed Oct 10 03:15:01 UTC 2018


This patch is to add eSDHC nodes for lx2160a.

Signed-off-by: Yinbo Zhu <yinbo.zhu at 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 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>;
-- 
1.7.1



More information about the U-Boot mailing list