[U-Boot] [PATCH 4/7] armv8: lx2160ardb : Add pcf2127 node

Chuanhua Han chuanhua.han at nxp.com
Thu May 23 09:22:04 UTC 2019


This patch adds the pcf2127-rtc node under the i2c4 node.

Signed-off-by: Chuanhua Han <chuanhua.han at nxp.com>
---
 arch/arm/dts/fsl-lx2160a-rdb.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts
index 4b526449a1..ca71fbea42 100644
--- a/arch/arm/dts/fsl-lx2160a-rdb.dts
+++ b/arch/arm/dts/fsl-lx2160a-rdb.dts
@@ -17,6 +17,16 @@
 	model = "NXP Layerscape LX2160ARDB Board";
 	compatible = "fsl,lx2160ardb", "fsl,lx2160a";
 
+	aliases {
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		i2c2 = &i2c2;
+		i2c3 = &i2c3;
+		i2c4 = &i2c4;
+		i2c5 = &i2c5;
+		i2c6 = &i2c6;
+		i2c7 = &i2c7;
+	};
 };
 
 &esdhc0 {
@@ -27,6 +37,15 @@
 	status = "okay";
 };
 
+&i2c4 {
+	status = "okay";
+
+	rtc at 51 {
+		compatible = "pcf2127-rtc";
+		reg = <0x51>;
+	};
+};
+
 &sata0 {
 	status = "okay";
 };
-- 
2.17.1



More information about the U-Boot mailing list