Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Pradhan, Sanman" <sanman.pradhan@hpe.com>
Cc: linux-hwmon@vger.kernel.org, conor+dt@kernel.org,
	robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: hwmon: pmbus: Add Analog Devices MAX16545/MAX16550 and Volterra VT7505
Date: Wed, 22 Jul 2026 16:23:48 +0000	[thread overview]
Message-ID: <20260722162348.EA7A81F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260722150324.164799-2-sanman.pradhan@hpe.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `adi,ocp-severe-filter` property exposes raw register bit values instead of standard physical units.
--

--- Patch [1]: [PATCH 1/2] dt-bindings: hwmon: pmbus: Add Analog Devices MAX16545/MAX16550 and Volterra VT7505 ---
commit e93633b9753ab840614d58e40b8f32b35288cabc
Author: Sanman Pradhan <psanman@juniper.net>

dt-bindings: hwmon: pmbus: Add Analog Devices MAX16545/MAX16550 and Volterra VT7505

This commit adds device tree binding documentation for the Analog Devices
MAX16545, MAX16550, and the Volterra VT7505 PMBus controllers. These
controllers provide voltage, current, power, and temperature monitoring.

> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/adi,vt7505.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/adi,vt7505.yaml
> new file mode 100644
> index 0000000000000..286c88eb7be8f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/adi,vt7505.yaml

[ ... ]

> +  adi,ocp-severe-filter:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description:
> +      Deglitch time applied to the severe overcurrent-protection comparator,
> +      programmed into the MFR_CONFIG[15:14] field. The MAX16550 and VT7505
> +      expose this field; it decodes as 0 = 0 us, 1 = 1 us, 2 = 2 us and
> +      3 = 10 us. On the MAX16545 the severe overcurrent delay is fixed and
> +      these bits are reserved.
> +    enum: [0, 1, 2, 3]

[Severity: Medium]
Should this property use physical units instead of raw register values?

Device tree properties typically describe hardware configurations abstractly
using standard units like microseconds. Exposing the raw register bit values
(0, 1, 2, 3) rather than the actual time durations (0, 1, 2, 10) creates a
non-standard ABI that leaks internal hardware encoding.

Once merged, this raw-value ABI must be supported indefinitely. Would it be
better to define the accepted values as 0, 1, 2, and 10 to match the physical
time delays?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260722150324.164799-1-sanman.pradhan@hpe.com?part=1

  reply	other threads:[~2026-07-22 16:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-22 15:03 [PATCH 0/2] hwmon: (pmbus) Add Analog Devices MAX16545/MAX16550 and Volterra VT7505 driver Pradhan, Sanman
2026-07-22 15:03 ` [PATCH 1/2] dt-bindings: hwmon: pmbus: Add Analog Devices MAX16545/MAX16550 and Volterra VT7505 Pradhan, Sanman
2026-07-22 16:23   ` sashiko-bot [this message]
2026-07-22 16:34   ` Conor Dooley
2026-07-22 15:03 ` [PATCH 2/2] hwmon: (pmbus/vt7505) Add driver for " Pradhan, Sanman
2026-07-22 16:31   ` sashiko-bot

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=20260722162348.EA7A81F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sanman.pradhan@hpe.com \
    --cc=sashiko-reviews@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