]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: microchip: sam9x60ek: Add power monitor support
authorMihai Sain <mihai.sain@microchip.com>
Mon, 23 Sep 2024 06:49:28 +0000 (09:49 +0300)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 13 Oct 2024 15:52:13 +0000 (18:52 +0300)
Add PAC1934 support in order to monitor the board power consumption.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
Link: https://lore.kernel.org/r/20240923064932.5797-2-mihai.sain@microchip.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/at91-sam9x60ek.dts

index 3b38707d736eed38aa24455634a1f182f51aa8df..6cf699d9b5407f14ca7b10428976976b868155f3 100644 (file)
                i2c-digital-filter-width-ns = <35>;
                status = "okay";
 
+               power-monitor@17 {
+                       compatible = "microchip,pac1934";
+                       reg = <0x17>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       channel@1 {
+                               reg = <0x1>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDDIOM";
+                       };
+
+                       channel@2 {
+                               reg = <0x2>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDDCORE";
+                       };
+
+                       channel@3 {
+                               reg = <0x3>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDD3V3_MPU";
+                       };
+
+                       channel@4 {
+                               reg = <0x4>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDD3V3";
+                       };
+               };
+
                gpio_exp: mcp23008@20 {
                        compatible = "microchip,mcp23008";
                        reg = <0x20>;