diff mbox series

[U-Boot,v3,5/5] armv8: dts: ls2088ardb: Add slave nodes under the i2c0 controller

Message ID 20190722083646.15229-5-chuanhua.han@nxp.com
State Accepted
Commit 6672ab1628a7837361524ebbc5e2119be9202fa7
Delegated to: Prabhakar Kushwaha
Headers show
Series [U-Boot,v3,1/5] armv8: ls2088a: The ls2088a platform supports the I2C driver model. | expand

Commit Message

Chuanhua Han July 22, 2019, 8:36 a.m. UTC
This patch adds some slave nodes to support the i2c dm on the device
side under the i2c0 controller.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
---
depends on: 
    - http://patchwork.ozlabs.org/project/uboot/list/?series=109459
    - http://patchwork.ozlabs.org/project/uboot/list/?series=113103

Change in v3:
	- No change. 
Change in v2:
	- Delete unnecessary i2c slave nodes.

 arch/arm/dts/fsl-ls2088a-rdb-qspi.dts |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

Comments

Prabhakar Kushwaha Aug. 22, 2019, 8:33 a.m. UTC | #1
> -----Original Message-----
> From: Chuanhua Han <chuanhua.han@nxp.com>
> Sent: Monday, July 22, 2019 2:07 PM
> To: albert.u.boot@aribaud.net; Prabhakar Kushwaha
> <prabhakar.kushwaha@nxp.com>; Priyanka Jain <priyanka.jain@nxp.com>;
> Rajesh Bhagat <rajesh.bhagat@nxp.com>
> Cc: u-boot@lists.denx.de; Chuanhua Han <chuanhua.han@nxp.com>
> Subject: [PATCH v3 5/5] armv8: dts: ls2088ardb: Add slave nodes under the
> i2c0 controller
> 
> This patch adds some slave nodes to support the i2c dm on the device side
> under the i2c0 controller.
> 
> Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
> ---

This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk
diff mbox series

Patch

diff --git a/arch/arm/dts/fsl-ls2088a-rdb-qspi.dts b/arch/arm/dts/fsl-ls2088a-rdb-qspi.dts
index bf97d13..72b2177 100644
--- a/arch/arm/dts/fsl-ls2088a-rdb-qspi.dts
+++ b/arch/arm/dts/fsl-ls2088a-rdb-qspi.dts
@@ -57,6 +57,28 @@ 
 	};
 };
 
+&i2c0 {
+	status = "okay";
+	u-boot,dm-pre-reloc;
+
+	pca9547@75 {
+		compatible = "nxp,pca9547";
+		reg = <0x75>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		 i2c@1 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x01>;
+			rtc@68 {
+				compatible = "dallas,ds3232";
+				reg = <0x68>;
+			};
+		};
+	};
+};
+
 &sata {
 	status = "okay";
 };