diff mbox

arm/dts: Add node for ina220 on LS1021ATWR

Message ID 1442391643-37883-1-git-send-email-yao.yuan@freescale.com (mailing list archive)
State New, archived
Headers show

Commit Message

yao yuan Sept. 16, 2015, 8:20 a.m. UTC
The INA220 monitors both shunt drop and supply voltage.

Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
---
 arch/arm/boot/dts/ls1021a-twr.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Shawn Guo Sept. 24, 2015, 12:05 p.m. UTC | #1
On Wed, Sep 16, 2015 at 04:20:43PM +0800, Yuan Yao wrote:
> The INA220 monitors both shunt drop and supply voltage.
> 
> Signed-off-by: Yuan Yao <yao.yuan@freescale.com>

For sake of consistency, the subject prefix of dts patches that I
collect should be like "ARM: dts: ...".  I changed prefix and applied
patch.

Shawn
yao yuan Sept. 24, 2015, 1:31 p.m. UTC | #2
Thanks for your review. I will be care for other patches. 

Best Regards,
Yuan Yao

> -----Original Message-----
> From: Shawn Guo [mailto:shawnguo@kernel.org]
> Sent: Thursday, September 24, 2015 8:05 PM
> To: Yuan Yao-B46683 <yao.yuan@freescale.com>
> Cc: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Jia
> Hongtao-B38951 <hongtao.jia@freescale.com>
> Subject: Re: [PATCH] arm/dts: Add node for ina220 on LS1021ATWR
> 
> On Wed, Sep 16, 2015 at 04:20:43PM +0800, Yuan Yao wrote:
> > The INA220 monitors both shunt drop and supply voltage.
> >
> > Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
> 
> For sake of consistency, the subject prefix of dts patches that I collect should
> be like "ARM: dts: ...".  I changed prefix and applied patch.
> 
> Shawn
diff mbox

Patch

diff --git a/arch/arm/boot/dts/ls1021a-twr.dts b/arch/arm/boot/dts/ls1021a-twr.dts
index e008f93..fbb89d1 100644
--- a/arch/arm/boot/dts/ls1021a-twr.dts
+++ b/arch/arm/boot/dts/ls1021a-twr.dts
@@ -144,6 +144,19 @@ 
 
 &i2c0 {
 	status = "okay";
+
+	ina220@40 {
+		compatible = "ti,ina220";
+		reg = <0x40>;
+		shunt-resistor = <1000>;
+	};
+
+	ina220@41 {
+		compatible = "ti,ina220";
+		reg = <0x41>;
+		shunt-resistor = <1000>;
+	};
+
 };
 
 &i2c1 {