From: sashiko-bot@kernel.org
To: "Neil Armstrong" <neil.armstrong@linaro.org>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: iio: add: document the MAX34417 Four-Channel High Dynamic Range Power Accumulator
Date: Wed, 23 Sep 2026 19:18:09 +0000 [thread overview]
Message-ID: <20260923191810.34AF81F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923-topic-sm8x50-iio-max34417-adc-v1-1-41d4ba1bfc41@linaro.org>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Low] dt-bindings: iio: use of vendor-specific rsense property instead of standard
- [Low] dt-bindings: iio: unnecessary gpio.h header include in example
- [Low] dt-bindings: iio: contradictory default and required constraints
--
commit 83b0b12b383dfd05c3631355160ac1fe40dc6802
Author: Neil Armstrong <neil.armstrong@linaro.org>
dt-bindings: iio: add: document the MAX34417 Four-Channel High Dynamic Range Power Accumulator
This commit documents the MAX34417 power accumulator device tree bindings.
The device uses an I2C interface to monitor power consumption in portable
systems.
> diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max34417.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max34417.yaml
> new file mode 100644
> index 0000000000000..6f2339a927710
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/maxim,max34417.yaml
[ ... ]
> + properties:
> + reg:
> + items:
> + - minimum: 0
> + maximum: 3
> +
> + label: true
> +
> + maxim,rsense-val-micro-ohms:
> + description:
> + Adjust the Rsense value to the resistor value
> + enum: [1000, 2000, 4000, 5000, 10000, 15000, 20000, 25000, 40000, 50000, 100000]
[Severity: Low]
Does this binding need the vendor-specific maxim,rsense-val-micro-ohms
property for the shunt resistor? The standard shunt-resistor-micro-ohms
property is well-established across multiple kernel subsystems for this
exact purpose and might be a better fit.
Additionally, is the hardcoded enum constraint necessary? It artificially
limits the possible resistor values, whereas physical shunt resistors can be
of any resistance.
> + default: 1000
> +
> + required:
> + - reg
> + - maxim,rsense-val-micro-ohms
[Severity: Low]
Can the default fallback ever be utilized for maxim,rsense-val-micro-ohms?
The property is defined with a default of 1000, but is simultaneously listed
in the required array for the subnode. Because it is required, schema
validation will fail if the property is missing in a device tree, making the
default logically dead.
[ ... ]
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
[Severity: Low]
Is the dt-bindings/gpio/gpio.h include needed for the examples block?
Neither the device tree node nor its child nodes appear to declare or use
any GPIO properties or constants, so this might just be a copy-paste
artifact.
> +
> + i2c {
> + #address-cells = <1>;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923-topic-sm8x50-iio-max34417-adc-v1-0-41d4ba1bfc41@linaro.org?part=1
next prev parent reply other threads:[~2026-09-23 19:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 19:10 [PATCH 0/2] iio: adc: add support for the MAX34417 Four-Channel High Dynamic Range Power Accumulator Neil Armstrong
2026-09-23 19:10 ` [PATCH 1/2] dt-bindings: iio: add: document " Neil Armstrong
2026-09-23 19:18 ` sashiko-bot [this message]
2026-09-24 7:14 ` Neil Armstrong
2026-09-23 19:10 ` [PATCH 2/2] iio: adc: add driver for " Neil Armstrong
2026-09-23 19:19 ` sashiko-bot
2026-09-24 7:16 ` Neil Armstrong
2026-09-24 7:54 ` Joshua Crofts
2026-09-24 14:20 ` Andy Shevchenko
2026-09-24 15:12 ` Joshua Crofts
2026-09-24 15:23 ` Neil Armstrong
2026-09-24 15:25 ` Neil Armstrong
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=20260923191810.34AF81F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.