ARM: dts: aspeed: harma: Add ina238
authorPeter Yin <peteryin.openbmc@gmail.com>
Thu, 1 Aug 2024 16:01:28 +0000 (00:01 +0800)
committerJoel Stanley <joel@jms.id.au>
Thu, 22 Aug 2024 03:38:11 +0000 (13:08 +0930)
Add INA238 power monitor for Harma fan board.

Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
Link: https://lore.kernel.org/r/20240801160136.1281291-5-peteryin.openbmc@gmail.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts

index 0c4bf165d0b085d7f49a6638c420b4b2efde8975..7d809f1636d6e835ff478c3cee49168a1a3e5f86 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
        };
+
+       power-sensor@40 {
+               compatible = "ti,ina238";
+               reg = <0x40>;
+               shunt-resistor = <1000>;
+       };
+
+       power-sensor@41 {
+               compatible = "ti,ina238";
+               reg = <0x41>;
+               shunt-resistor = <1000>;
+       };
+
+       power-sensor@44 {
+               compatible = "ti,ina238";
+               reg = <0x44>;
+               shunt-resistor = <1000>;
+       };
+
+       power-sensor@45 {
+               compatible = "ti,ina238";
+               reg = <0x45>;
+               shunt-resistor = <1000>;
+       };
 };
 
 &i2c1 {
                #address-cells = <1>;
                #size-cells = <0>;
        };
+
+       power-sensor@40 {
+               compatible = "ti,ina238";
+               reg = <0x40>;
+               shunt-resistor = <1000>;
+       };
+
+       power-sensor@41 {
+               compatible = "ti,ina238";
+               reg = <0x41>;
+               shunt-resistor = <1000>;
+       };
+
+       power-sensor@44 {
+               compatible = "ti,ina238";
+               reg = <0x44>;
+               shunt-resistor = <1000>;
+       };
+
+       power-sensor@45 {
+               compatible = "ti,ina238";
+               reg = <0x45>;
+               shunt-resistor = <1000>;
+       };
 };
 
 &i2c3 {