From: sashiko-bot@kernel.org
To: "Nuno Sá via B4 Relay" <devnull+nuno.sa.analog.com@kernel.org>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v11 1/3] dt-bindings: hwmon: Document the LTC4283 Swap Controller
Date: Wed, 29 Apr 2026 19:24:10 +0000 [thread overview]
Message-ID: <20260429192411.87F8FC19425@smtp.kernel.org> (raw)
In-Reply-To: <20260429-ltc4283-support-v11-1-27ccde619dad@analog.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The `dependencies` block unnecessarily requires `adi,pgio4-func` to be explicitly present when external fault properties are enabled, artificially invalidating its default value.
- [Low] Missing `multipleOf` constraint for `adi,current-limit-sense-microvolt` to enforce step size.
--
commit 06a7fb3172f7064acd0275a6c3a0ec99c7ab6d79
Author: Nuno Sá <nuno.sa@analog.com>
dt-bindings: hwmon: Document the LTC4283 Swap Controller
This commit introduces the device tree bindings for the LTC4283 negative
voltage hot swap controller. It defines properties for sense resistor
value, current limits, fault handling, and GPIO functionality on the
PGIO and ADIO pins.
> diff --git a/Documentation/devicetree/bindings/hwmon/adi,ltc4283.yaml b/Documentation/devicetree/bindings/hwmon/adi,ltc4283.yaml
> new file mode 100644
> index 000000000000..05e2132ad4d8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/adi,ltc4283.yaml
[ ... ]
> + adi,current-limit-sense-microvolt:
> + description:
> + The current limit sense voltage of the chip is adjustable between
> + 15mV and 30mV in 1mV steps. This effectively limits the current
> + on the load.
> + minimum: 15000
> + maximum: 30000
> + default: 15000
Since the description notes that the value is adjustable in 1mV steps and
the unit here is microvolts, should this property include a multipleOf: 1000
constraint to enforce the step size during schema validation?
[ ... ]
> +dependencies:
> + adi,gpio-on-adio1:
> + - gpio-controller
> + - '#gpio-cells'
> + adi,gpio-on-adio2:
> + - gpio-controller
> + - '#gpio-cells'
> + adi,gpio-on-adio3:
> + - gpio-controller
> + - '#gpio-cells'
> + adi,gpio-on-adio4:
> + - gpio-controller
> + - '#gpio-cells'
> + adi,external-fault-retry-enable:
> + - adi,pgio4-func
> + adi,external-fault-fet-off-enable:
> + - adi,pgio4-func
Does this dependency unnecessarily require adi,pgio4-func to be explicitly
defined in the device tree?
Since adi,pgio4-func has a default value of "inverted_external_fault" defined
earlier in the schema, a device tree omitting it should still conceptually
support the external fault features. Enforcing its presence here might force
users to redundantly define adi,pgio4-func to pass schema validation.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260429-ltc4283-support-v11-0-27ccde619dad@analog.com?part=1
next prev parent reply other threads:[~2026-04-29 19:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 14:28 [PATCH v11 0/3] hwmon: Add support for the LTC4283 Hot Swap Controller Nuno Sá via B4 Relay
2026-04-29 14:28 ` [PATCH v11 1/3] dt-bindings: hwmon: Document the LTC4283 " Nuno Sá via B4 Relay
2026-04-29 19:24 ` sashiko-bot [this message]
2026-04-29 14:28 ` [PATCH v11 2/3] hwmon: ltc4283: Add support for " Nuno Sá via B4 Relay
2026-04-29 20:07 ` sashiko-bot
2026-04-29 14:28 ` [PATCH v11 3/3] gpio: gpio-ltc4283: " Nuno Sá via B4 Relay
2026-04-29 20:33 ` 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=20260429192411.87F8FC19425@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=devnull+nuno.sa.analog.com@kernel.org \
--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