diff mbox series

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

Message ID 20190523092207.41906-4-chuanhua.han@nxp.com
State Superseded
Delegated to: Prabhakar Kushwaha
Headers show
Series [U-Boot,1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model. | expand

Commit Message

Chuanhua Han May 23, 2019, 9:22 a.m. UTC
This patch adds the pcf2127-rtc node under the i2c4 node.

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

Comments

Heiko Schocher May 24, 2019, 4:52 a.m. UTC | #1
Hello Chuanhua Han,

Am 23.05.2019 um 11:22 schrieb Chuanhua Han:
> This patch adds the pcf2127-rtc node under the i2c4 node.
> 
> Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
> ---
>   arch/arm/dts/fsl-lx2160a-rdb.dts | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
diff mbox series

Patch

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@51 {
+		compatible = "pcf2127-rtc";
+		reg = <0x51>;
+	};
+};
+
 &sata0 {
 	status = "okay";
 };