public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Alexis Czezar Torreno" <alexisczezar.torreno@analog.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: hwmon: pmbus: add max20830
Date: Tue, 14 Apr 2026 04:38:40 +0000	[thread overview]
Message-ID: <20260414043841.1ED2AC19425@smtp.kernel.org> (raw)
In-Reply-To: <20260414-dev_max20830-v1-1-210d3f82c571@analog.com>

Sashiko AI review found 3 potential issue(s):
- [Medium] Incomplete Regulator Schema
- [Medium] Missing Hardware Capability (Interrupts)
- [Low] Devicetree Best Practices Violation (Node Name)
--

commit 20a4d8dcd2f3344ac22d7d2e974bae1ef57874ed
Author: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>

dt-bindings: hwmon: pmbus: add max20830

This commit adds device tree documentation for the MAX20830 step-down DC-DC
switching regulator with PMBus interface. It allows monitoring of voltage,
current, and temperature.

> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml
> new file mode 100644
> index 0000000000000..b20f3be176615
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml
[ ... ]
> +properties:
> +  compatible:
> +    const: adi,max20830
> +
> +  reg:
> +    maxItems: 1
> +

Since this is a PMBus device that typically signals hardware faults to the
host via the standard SMBALERT# pin, should the schema define the optional
interrupts property?

> +  vddh-supply:
> +    description:
> +      Phandle to the regulator that provides the VDDH power supply.
[ ... ]
> +required:
> +  - compatible
> +  - reg
> +  - vddh-supply
> +
> +additionalProperties: false

The commit message explicitly states the MAX20830 is a step-down DC-DC
switching regulator with an adjustable output, but the schema omits any
reference to the core regulator schema or a regulators child node.

Because additionalProperties is set to false, does this prevent board
designers from describing the hardware's standard output constraints,
such as regulator-min-microvolt or regulator-max-microvolt, without
causing a schema validation error?

> +
> +examples:
> +  - |
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        hwmon@30 {

This isn't a bug, but the device node name in the example uses a Linux
subsystem name. Should it use a generic functional name representing the
hardware, such as regulator@30 or power-sensor@30?

> +            compatible = "adi,max20830";
> +            reg = <0x30>;
> +            vddh-supply = <&vddh>;
> +        };
> +    };
> +...

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260414-dev_max20830-v1-0-210d3f82c571@analog.com?part=1

  reply	other threads:[~2026-04-14  4:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-14  4:28 [PATCH 0/2] Add support for MAX20830 PMBUS Alexis Czezar Torreno
2026-04-14  4:28 ` [PATCH 1/2] dt-bindings: hwmon: pmbus: add max20830 Alexis Czezar Torreno
2026-04-14  4:38   ` sashiko-bot [this message]
2026-04-14  4:28 ` [PATCH 2/2] hwmon: (pmbus/max20830) add driver for max20830 Alexis Czezar Torreno
2026-04-14  4:56   ` sashiko-bot
2026-04-14 14:54     ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260414043841.1ED2AC19425@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexisczezar.torreno@analog.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=sashiko@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox