powerpc/t1023rdb: add ina220 current sensor node
authorShengzhou Liu <Shengzhou.Liu@freescale.com>
Tue, 7 Jul 2015 06:17:41 +0000 (14:17 +0800)
committerScott Wood <scottwood@freescale.com>
Sat, 8 Aug 2015 03:59:32 +0000 (22:59 -0500)
Add support for INA220 current sensor.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/boot/dts/t1023rdb.dts

index 06b090a..aa50885 100644 (file)
                };
 
                i2c@118100 {
+                       current-sensor@40 {
+                               compatible = "ti,ina220";
+                               reg = <0x40>;
+                               shunt-resistor = <1000>;
+                       };
+
+                       current-sensor@41 {
+                               compatible = "ti,ina220";
+                               reg = <0x41>;
+                               shunt-resistor = <1000>;
+                       };
                };
        };