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

Yinbo Zhu yinbo.zhu at nxp.com
Tue Oct 16 03:58:59 UTC 2018


This patch is to add eSDHC nodes for lx2160a.

Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
---
Change in v2:
		squash patch "add some minor fixes on esdhc node" to this patch

 arch/arm/dts/fsl-lx2160a-rdb.dts |    8 ++++++++
 arch/arm/dts/fsl-lx2160a.dtsi    |   25 +++++++++++++++++++++++++
 2 files changed, 33 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..b0fc5dc 100644
--- a/arch/arm/dts/fsl-lx2160a.dtsi
+++ b/arch/arm/dts/fsl-lx2160a.dtsi
@@ -76,6 +76,31 @@
 		status = "disabled";
 	};
 
+        esdhc0: esdhc at 2140000 {
+                compatible = "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>;
+                status = "disabled";
+        };
+
+        esdhc1: esdhc at 2150000 {
+                compatible = "fsl,esdhc";
+                reg = <0x0 0x2150000 0x0 0x10000>;
+                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";
+        };
+
 	fspi: flexspi at 20c0000 {
 		compatible = "nxp,lx2160a-fspi";
 		#address-cells = <1>;
-- 
1.7.1



More information about the U-Boot mailing list