riscv: dts: microchip: add pac1934 power-monitor to icicle
authorConor Dooley <conor.dooley@microchip.com>
Wed, 1 May 2024 15:36:31 +0000 (16:36 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 7 May 2024 16:14:06 +0000 (17:14 +0100)
The binding for this landed in v6.9, add the description. In the
off-chance that there were people carrying local patches for this based
on the driver shipped on the Microchip website (or vendor kernel) both
the binding and sysfs filenames changed during upstreaming.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts

index 222a39d..f80df22 100644 (file)
 
 &i2c1 {
        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 = "VDDREG";
+               };
+
+               channel@2 {
+                       reg = <0x2>;
+                       shunt-resistor-micro-ohms = <10000>;
+                       label = "VDDA25";
+               };
+
+               channel@3 {
+                       reg = <0x3>;
+                       shunt-resistor-micro-ohms = <10000>;
+                       label = "VDD25";
+               };
+
+               channel@4 {
+                       reg = <0x4>;
+                       shunt-resistor-micro-ohms = <10000>;
+                       label = "VDDA_REG";
+               };
+       };
 };
 
 &i2c2 {