]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: microchip: sama5d2_icp: Add power monitor support
authorMihai Sain <mihai.sain@microchip.com>
Mon, 23 Sep 2024 06:49:29 +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-3-mihai.sain@microchip.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts

index 5e2bb517a4809ee3d22d2682a77cc1b69c7c2309..8f617cb29d369658683e36abc4dad866380cfbfc 100644 (file)
                i2c-digital-filter-width-ns = <35>;
                status = "okay";
 
+               power-monitor@10 {
+                       compatible = "microchip,pac1934";
+                       reg = <0x10>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       channel@1 {
+                               reg = <0x1>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDD3V3_1";
+                       };
+
+                       channel@2 {
+                               reg = <0x2>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDD3V3_2";
+                       };
+
+                       channel@3 {
+                               reg = <0x3>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDDCORE";
+                       };
+
+                       channel@4 {
+                               reg = <0x4>;
+                               shunt-resistor-micro-ohms = <10000>;
+                               label = "VDDIODDR";
+                       };
+               };
+
                mcp16502@5b {
                        compatible = "microchip,mcp16502";
                        reg = <0x5b>;