Re: [PATCH v2 1/5] dt-bindings: hwmon: (pmbus/max20830): add enable-gpios property and complete examples
From: Guenter Roeck
Date: Mon Jul 06 2026 - 12:10:21 EST
On Mon, Jul 06, 2026 at 10:08:41AM +0800, Alexis Czezar Torreno wrote:
> Adding an entry for the MAX20830 EN (enable) pin. This pin exist but
> was not included before. Also edited examples entry to be more complete.
>
> Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@xxxxxxxxxx>
I still do not see the point of these properties. The driver can extract
the power good information from its registers, and it can set the enable
value from there as well. It does not need either.
In practice the power good output is likely to be connected to an LED or
to the enable pin of another power controller. Neither would need
devicetree properties.
Again, please provide a use case. The mere presence of these pins (which
exist on pretty much all PMBus chips) does not warrant devicetree
properties for them.
Thanks,
Guenter
> ---
> .../devicetree/bindings/hwmon/pmbus/adi,max20830.yaml | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml
> index 1625dd59417f1b3ca689a9c86ca266da913d1217..f3ba6351aa5d657590d92a538910fd6b787e7a3a 100644
> --- a/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml
> @@ -39,6 +39,11 @@ properties:
> description:
> Optional 2.5V to 5.5V LDO input supply.
>
> + enable-gpios:
> + description:
> + GPIO connected to the EN (enable) pin.
> + maxItems: 1
> +
> pwr-good-gpios:
> description:
> GPIO connected to the power-good status output pin.
> @@ -53,6 +58,8 @@ unevaluatedProperties: false
>
> examples:
> - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> i2c {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -61,6 +68,10 @@ examples:
> compatible = "adi,max20830";
> reg = <0x30>;
> vddh-supply = <&vddh>;
> + avdd-supply = <&avdd>;
> + ldoin-supply = <&ldoin>;
> + enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
> + pwr-good-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
> };
> };
> ...