[PATCH] riscv: dts: microchip: add pac1934 power-monitor to icicle
Conor Dooley
conor at kernel.org
Wed May 1 08:37:47 PDT 2024
On Wed, May 01, 2024 at 04:36:31PM +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley at microchip.com>
>
> 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 at microchip.com>
> ---
> CC: Conor Dooley <conor.dooley at microchip.com>
> CC: Daire McNamara <daire.mcnamara at microchip.com>
> CC: Rob Herring <robh at kernel.org>
> CC: Krzysztof Kozlowski <krzysztof.kozlowski+dt at linaro.org>
> CC: linux-riscv at lists.infradead.org
> CC: devicetree at vger.kernel.org
> CC: linux-kernel at vger.kernel.org
I thought I send this out last week, but I could not find the patch on
either lore or patchwork when I went to apply it today, so I must not
have...
> ---
> .../boot/dts/microchip/mpfs-icicle-kit.dts | 32 +++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts
> index 222a39d90f85..f80df225f72b 100644
> --- a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts
> +++ b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts
> @@ -100,6 +100,38 @@ &i2c0 {
>
> &i2c1 {
> status = "okay";
> +
> + power-monitor at 10 {
> + compatible = "microchip,pac1934";
> + reg = <0x10>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + channel at 1 {
> + reg = <0x1>;
> + shunt-resistor-micro-ohms = <10000>;
> + label = "VDDREG";
> + };
> +
> + channel at 2 {
> + reg = <0x2>;
> + shunt-resistor-micro-ohms = <10000>;
> + label = "VDDA25";
> + };
> +
> + channel at 3 {
> + reg = <0x3>;
> + shunt-resistor-micro-ohms = <10000>;
> + label = "VDD25";
> + };
> +
> + channel at 4 {
> + reg = <0x4>;
> + shunt-resistor-micro-ohms = <10000>;
> + label = "VDDA_REG";
> + };
> + };
> };
>
> &i2c2 {
> --
> 2.43.0
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240501/0edefc44/attachment.sig>
More information about the linux-riscv
mailing list