All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuanhua Han <chuanhua.han@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/7] armv8: lx2160ardb : Add slave nodes under the i2c0 controller
Date: Thu, 23 May 2019 17:22:07 +0800	[thread overview]
Message-ID: <20190523092207.41906-7-chuanhua.han@nxp.com> (raw)
In-Reply-To: <20190523092207.41906-1-chuanhua.han@nxp.com>

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>
---
 arch/arm/dts/fsl-lx2160a-rdb.dts | 51 ++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts
index ca71fbea42..c6b4131338 100644
--- a/arch/arm/dts/fsl-lx2160a-rdb.dts
+++ b/arch/arm/dts/fsl-lx2160a-rdb.dts
@@ -27,6 +27,16 @@
 		i2c6 = &i2c6;
 		i2c7 = &i2c7;
 	};
+
+	sb_3v3: regulator-sb3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "MC34717-3.3VSB";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 };
 
 &esdhc0 {
@@ -37,6 +47,47 @@
 	status = "okay";
 };
 
+&i2c0 {
+	status = "okay";
+
+	i2c-mux at 77 {
+		compatible = "nxp,pca9547";
+		reg = <0x77>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		i2c at 2 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x2>;
+
+			power-monitor at 40 {
+				compatible = "ti,ina220";
+				reg = <0x40>;
+				shunt-resistor = <1000>;
+			};
+		};
+
+		i2c at 3 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x3>;
+
+			temperature-sensor at 4c {
+				compatible = "nxp,sa56004";
+				reg = <0x4c>;
+				vcc-supply = <&sb_3v3>;
+			};
+
+			temperature-sensor at 4d {
+				compatible = "nxp,sa56004";
+				reg = <0x4d>;
+				vcc-supply = <&sb_3v3>;
+			};
+		};
+	};
+};
+
 &i2c4 {
 	status = "okay";
 
-- 
2.17.1

  parent reply	other threads:[~2019-05-23  9:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23  9:22 [U-Boot] [PATCH 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 2/7] configs: lx2160a: enable DM support for pcf2127 rtc Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 3/7] armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes Chuanhua Han
2019-05-24  4:50   ` Heiko Schocher
2019-05-23  9:22 ` [U-Boot] [PATCH 4/7] armv8: lx2160ardb : Add pcf2127 node Chuanhua Han
2019-05-24  4:52   ` Heiko Schocher
2019-05-23  9:22 ` [U-Boot] [PATCH 5/7] drivers: i2c: mxc: Solve the compiler error when using i2c dm mode Chuanhua Han
2019-05-24  4:58   ` Heiko Schocher
2019-05-30  3:44     ` [U-Boot] [EXT] " Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 6/7] gpio: do not include <asm/arch/gpio.h> on ARCH_LX2160A Chuanhua Han
2019-05-24  5:01   ` Heiko Schocher
2019-05-30  3:39     ` [U-Boot] [EXT] " Chuanhua Han
2019-05-23  9:22 ` Chuanhua Han [this message]
2019-05-24  5:03   ` [U-Boot] [PATCH 7/7] armv8: lx2160ardb : Add slave nodes under the i2c0 controller Heiko Schocher
2019-05-30  3:18     ` [U-Boot] [EXT] " Chuanhua Han
2019-05-24  4:48 ` [U-Boot] [PATCH 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model Heiko Schocher
2019-05-30  3:46   ` [U-Boot] [EXT] " Chuanhua Han

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190523092207.41906-7-chuanhua.han@nxp.com \
    --to=chuanhua.han@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.