]> git.karo-electronics.de Git - linux-beck.git/commitdiff
powerpc/t1024rdb: add ina220 current sensor node
authorShengzhou Liu <Shengzhou.Liu@freescale.com>
Tue, 7 Jul 2015 06:17:40 +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/t1024rdb.dts

index 733e723ffed621edbbeb489943537715a69c205a..bf05e324fda2e2a7b0e71eeebb95ac06ddaef8f3 100644 (file)
                                reg = <0x4c>;
                        };
 
+                       current-sensor@40 {
+                               compatible = "ti,ina220";
+                               reg = <0x40>;
+                               shunt-resistor = <1000>;
+                       };
+
                        eeprom@50 {
                                compatible = "atmel,24c256";
                                reg = <0x50>;