summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Sain <mihai.sain@microchip.com>2024-09-23 09:49:31 +0300
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>2024-10-13 18:52:14 +0300
commit91d75e7f7fa116539acadecf6869b6587e8e12ce (patch)
treecaec007b4e4c30db3e057ad6f88c03f90eb87c1d
parent7093360cd847161e8c6ff84cb9a13caf0f457d6c (diff)
ARM: dts: microchip: sama7g5ek: Add power monitor support
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-5-mihai.sain@microchip.com Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
-rw-r--r--arch/arm/boot/dts/microchip/at91-sama7g5ek.dts31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
index ed75d491a246..5fd77abd4201 100644
--- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
@@ -244,6 +244,37 @@
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";
+ };
+
+ channel@2 {
+ reg = <0x2>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDDIODDR";
+ };
+
+ channel@3 {
+ reg = <0x3>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDDCORE";
+ };
+
+ channel@4 {
+ reg = <0x4>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDDCPU";
+ };
+ };
+
mcp16502@5b {
compatible = "microchip,mcp16502";
reg = <0x5b>;