[PATCH 1/2 v2] powerpc/t1024rdb: add ina220 current sensor node

Shengzhou Liu Shengzhou.Liu at freescale.com
Tue Jul 7 16:17:40 AEST 2015


Add support for INA220 current sensor.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu at freescale.com>
---
v2: rename node name to 'current-sensor' for generic.

 arch/powerpc/boot/dts/t1024rdb.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/boot/dts/t1024rdb.dts b/arch/powerpc/boot/dts/t1024rdb.dts
index 733e723..bf05e32 100644
--- a/arch/powerpc/boot/dts/t1024rdb.dts
+++ b/arch/powerpc/boot/dts/t1024rdb.dts
@@ -114,6 +114,12 @@
 				reg = <0x4c>;
 			};
 
+			current-sensor at 40 {
+				compatible = "ti,ina220";
+				reg = <0x40>;
+				shunt-resistor = <1000>;
+			};
+
 			eeprom at 50 {
 				compatible = "atmel,24c256";
 				reg = <0x50>;
-- 
2.1.0.27.g96db324



More information about the Linuxppc-dev mailing list