From: sashiko-bot@kernel.org
To: "Loic Poulain" <loic.poulain@oss.qualcomm.com>
Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
lee@kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v7 2/4] dt-bindings: leds: nxp,pca963x: add multicolor LED support
Date: Fri, 24 Jul 2026 07:56:25 +0000 [thread overview]
Message-ID: <20260724075625.A65E11F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260724-monza-leds-v7-2-0125a3bfea98@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The `multi-led` node incorrectly requires a unit address and a `reg` property, falsely claiming a physical PWM channel for a logical grouping and causing legacy drivers to misbehave.
- [Low] The commit message description is not capitalized, violating the LED subsystem naming conventions.
--
--- Patch [2]: [PATCH v7 2/4] dt-bindings: leds: nxp,pca963x: add multicolor LED support ---
commit 2f0b1f07fd505c331c2a3ed9b93793cfdf27bd7f
Author: Loic Poulain <loic.poulain@oss.qualcomm.com>
dt-bindings: leds: nxp,pca963x: add multicolor LED support
This commit adds support for grouping individual PCA963x channels into a
multicolor LED. It introduces a multi-led node pattern to model hardware
where multiple PWM channels drive a single physical RGB LED.
> dt-bindings: leds: nxp,pca963x: add multicolor LED support
[Severity: Low]
This isn't a bug, but the description after the subsystem prefix should
be capitalized according to LED subsystem naming conventions. Should "add"
be changed to "Add"?
> diff --git a/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml b/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml
> --- a/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml
> +++ b/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml
> @@ -74,6 +74,40 @@ patternProperties:
[ ... ]
> + "^multi-led@[0-9a-f]$":
> + type: object
> + $ref: leds-class-multicolor.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + reg:
> + maximum: 15
[ ... ]
> + required:
> + - reg
> + - "#address-cells"
> + - "#size-cells"
[Severity: High]
Does requiring a reg property here incorrectly assign a physical PWM channel
address to a logical grouping?
Since the multi-led node acts as a logical container for the physical LEDs,
having it claim a physical address can lead to overlapping duplicate address
conceptualization, such as both the parent multi-led node and its first child
claiming reg = <0>.
Will the existing leds-pca963x driver, which lacks multicolor support, silently
misinterpret this multi-led node as a standard single-channel monochrome LED
mapped to channel 0 and ignore the subnodes instead of safely erroring out?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260724-monza-leds-v7-0-0125a3bfea98@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-07-24 7:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 7:48 [PATCH v7 0/4] leds: pca963x: Add multicolor support and enable Monza RGB LEDs Loic Poulain
2026-07-24 7:48 ` [PATCH v7 1/4] dt-bindings: leds: nxp,pca963x: fix reg maximum for pca9635 Loic Poulain
2026-07-24 7:54 ` sashiko-bot
2026-07-24 7:48 ` [PATCH v7 2/4] dt-bindings: leds: nxp,pca963x: add multicolor LED support Loic Poulain
2026-07-24 7:56 ` sashiko-bot [this message]
2026-07-24 7:48 ` [PATCH v7 3/4] leds: pca963x: add multicolor LED class support Loic Poulain
2026-07-24 8:02 ` sashiko-bot
2026-07-24 7:48 ` [PATCH v7 4/4] arm64: dts: monaco-arduino-monza: microcontroller LEDs Loic Poulain
2026-07-24 7:55 ` 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=20260724075625.A65E11F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox