powerpc: Add INA220 to device tree for supported boards
authorHongtao Jia <hongtao.jia@freescale.com>
Wed, 5 Nov 2014 06:59:53 +0000 (14:59 +0800)
committerScott Wood <scottwood@freescale.com>
Sat, 8 Nov 2014 00:10:48 +0000 (18:10 -0600)
Including: P3041DS P5020DS P5040DS B4QDS

Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/boot/dts/b4qds.dtsi
arch/powerpc/boot/dts/p3041ds.dts
arch/powerpc/boot/dts/p5020ds.dts
arch/powerpc/boot/dts/p5040ds.dts

index bccc9867bc6be778bd43c0af5a19e6de6b563184..e5bde0b85135f67b4ed96f5a4f87230c746264a8 100644 (file)
                                        };
                                };
 
+                               i2c@2 {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       reg = <0x2>;
+
+                                       ina220@40 {
+                                               compatible = "ti,ina220";
+                                               reg = <0x40>;
+                                               shunt-resistor = <1000>;
+                                       };
+                               };
+
                                i2c@3 {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
index 2fed3bc0b990daa9d55590e1a64d1b3d671b8eb1..394ea9c943c92e12a89656963429331af89b0d42 100644 (file)
                                reg = <0x68>;
                                interrupts = <0x1 0x1 0 0>;
                        };
+                       ina220@40 {
+                               compatible = "ti,ina220";
+                               reg = <0x40>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@41 {
+                               compatible = "ti,ina220";
+                               reg = <0x41>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@44 {
+                               compatible = "ti,ina220";
+                               reg = <0x44>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@45 {
+                               compatible = "ti,ina220";
+                               reg = <0x45>;
+                               shunt-resistor = <1000>;
+                       };
                        adt7461@4c {
                                compatible = "adi,adt7461";
                                reg = <0x4c>;
index 2869fea717dd7fa5b3d470df6452523cf460530b..b7f3057cd894ce49f0b18f0b7e83df828b044e24 100644 (file)
                                reg = <0x68>;
                                interrupts = <0x1 0x1 0 0>;
                        };
+                       ina220@40 {
+                               compatible = "ti,ina220";
+                               reg = <0x40>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@41 {
+                               compatible = "ti,ina220";
+                               reg = <0x41>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@44 {
+                               compatible = "ti,ina220";
+                               reg = <0x44>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@45 {
+                               compatible = "ti,ina220";
+                               reg = <0x45>;
+                               shunt-resistor = <1000>;
+                       };
                        adt7461@4c {
                                compatible = "adi,adt7461";
                                reg = <0x4c>;
index 860b5ccf76c0bb0fdb38f96612456b0da1fb96c2..7e04bf487c04738005d429ca9f41bfe62aab01d3 100644 (file)
                                reg = <0x68>;
                                interrupts = <0x1 0x1 0 0>;
                        };
+                       ina220@40 {
+                               compatible = "ti,ina220";
+                               reg = <0x40>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@41 {
+                               compatible = "ti,ina220";
+                               reg = <0x41>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@44 {
+                               compatible = "ti,ina220";
+                               reg = <0x44>;
+                               shunt-resistor = <1000>;
+                       };
+                       ina220@45 {
+                               compatible = "ti,ina220";
+                               reg = <0x45>;
+                               shunt-resistor = <1000>;
+                       };
                        adt7461@4c {
                                compatible = "adi,adt7461";
                                reg = <0x4c>;