]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: microchip: sama7g54_curiosity: Add power monitor support
authorMihai Sain <mihai.sain@microchip.com>
Mon, 23 Sep 2024 06:49:30 +0000 (09:49 +0300)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 13 Oct 2024 15:52:14 +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-4-mihai.sain@microchip.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts

index 645e49fdb7fe796f649d7e1d26ab03d92ac92eb3..2dec2218f32ce72b5b145e2cf12a2db1b706c72e 100644 (file)
                i2c-digital-filter-width-ns = <35>;
                status = "okay";
 
+               power-monitor@1f {
+                       compatible = "microchip,pac1934";
+                       reg = <0x1f>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       channel@1 {
+                               reg = <0x1>;
+                               shunt-resistor-micro-ohms = <47000>;
+                               label = "VDD3V3";
+                       };
+
+                       channel@2 {
+                               reg = <0x2>;
+                               shunt-resistor-micro-ohms = <47000>;
+                               label = "VDDIODDR";
+                       };
+
+                       channel@3 {
+                               reg = <0x3>;
+                               shunt-resistor-micro-ohms = <47000>;
+                               label = "VDDCORE";
+                       };
+
+                       channel@4 {
+                               reg = <0x4>;
+                               shunt-resistor-micro-ohms = <47000>;
+                               label = "VDDCPU";
+                       };
+               };
+
                eeprom@51 {
                        compatible = "atmel,24c02";
                        reg = <0x51>;