From: sashiko-bot@kernel.org
To: "Vitaliy Sochnev" <sochnev.v.74@gmail.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/4] dt-bindings: arm: airoha: Allow one thermal sensor cell for AN7583
Date: Sun, 13 Sep 2026 13:03:56 +0000 [thread overview]
Message-ID: <20260913130357.689C71F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260913145226.34643-4-sochnev.v.74@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `#thermal-sensor-cells` property uses an `enum` constraint instead of a `const` constraint.
--
commit a2ea4a9a05333c50b5a23468b0906bdb46e74f5f
Author: Vitaliy Sochnev <sochnev.v.74@gmail.com>
dt-bindings: arm: airoha: Allow one thermal sensor cell for AN7583
This commit modifies the AN7583 chip SCU device tree binding to allow
the #thermal-sensor-cells property to accept either 0 or 1. It updates
the validation constraints to use an enum instead of a strict constant.
> diff --git a/Documentation/devicetree/bindings/arm/airoha,en7581-chip-scu.yaml b/Documentation/devicetree/bindings/arm/airoha,en7581-chip-scu.yaml
> index cc564dc7b414d..da159b7572f37 100644
> --- a/Documentation/devicetree/bindings/arm/airoha,en7581-chip-scu.yaml
> +++ b/Documentation/devicetree/bindings/arm/airoha,en7581-chip-scu.yaml
> @@ -26,7 +26,10 @@ properties:
> maxItems: 1
>
> '#thermal-sensor-cells':
> - const: 0
> + description:
> + 0 refers to the bandgap sensor. 1 selects the sensor with one cell,
> + 0 bandgap, 1 GbE, 2 CPU.
> + enum: [0, 1]
[Severity: Medium]
Does using an enum for this cell-count property violate the subsystem
architectural rules?
The Device Tree binding subsystem guidelines explicitly mandate that
every cell-count property must have a strict const constraint matching
the hardware.
Using an enum here allows variable cell counts for the same compatible
string, which causes schema validation to accept ambiguous hardware
configurations rather than enforcing a single hardware-matching constant
size.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260913145226.34643-1-sochnev.v.74@gmail.com?part=3
next prev parent reply other threads:[~2026-09-13 13:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-13 14:52 [PATCH 0/4] thermal/drivers/airoha: Fix AN7583 mux mapping and expose all sensors Vitaliy Sochnev
2026-09-13 14:52 ` [PATCH 1/4] thermal/drivers/airoha: Fix AN7583 ADC mux field mapping Vitaliy Sochnev
2026-09-13 14:52 ` [PATCH 2/4] thermal/drivers/airoha: Serialise access to the shared ADC Vitaliy Sochnev
2026-09-13 14:52 ` [PATCH 3/4] dt-bindings: arm: airoha: Allow one thermal sensor cell for AN7583 Vitaliy Sochnev
2026-09-13 13:03 ` sashiko-bot [this message]
2026-09-13 14:52 ` [PATCH 4/4] thermal/drivers/airoha: Register a thermal zone per AN7583 sensor Vitaliy Sochnev
2026-09-13 13:07 ` 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=20260913130357.689C71F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sochnev.v.74@gmail.com \
/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