Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jonas Rebmann" <jre@pengutronix.de>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: leds: Add default-intensity property
Date: Fri, 05 Jun 2026 07:38:16 +0000	[thread overview]
Message-ID: <20260605073816.E916D1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260605-multicolor-default-v2-1-ed07271df6b0@pengutronix.de>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Driver-specific name hardcoded in the generic `common.yaml` schema description.
--

commit 9beb7b4f88908b2864bd519c143e1a370071aec1
Author: Jonas Rebmann <jre@pengutronix.de>

dt-bindings: leds: Add default-intensity property

This commit documents the default-intensity property to set a default color
on multicolor LEDs. It also updates the pwm-multicolor binding and its
example to support this new initialization property.

> diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
> index f4e44b33f56d1..a34de0a34b422 100644
> --- a/Documentation/devicetree/bindings/leds/common.yaml
> +++ b/Documentation/devicetree/bindings/leds/common.yaml

[ ... ]

> @@ -73,6 +73,17 @@ properties:
>        - keep
>      default: off
>  
> +  default-intensity:
> +    description:
> +      The initial intensity of the LED color component. Used only during
> +      initialization. Defaults to 0. As the intensity of each sub-LED is
> +      multiplied with the overall brightness, without this property on a
> +      sub-LED, the leds-pwm-multicolor-LED is effectively initialized at
> +      minimum brightness regardless of its linux,default-trigger and
> +      default-brightness properties.

[Severity: Low]
This isn't a bug, but the description for default-intensity explicitly
mentions the specific driver name leds-pwm-multicolor-LED.

Since common.yaml is intended to be a hardware-agnostic specification
for all LED bindings, could this wording be updated to refer generically
to the multicolor LED or simply the LED to avoid leaking an
implementation detail into the generic schema?

> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    default: 0
> +

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260605-multicolor-default-v2-0-ed07271df6b0@pengutronix.de?part=1

  reply	other threads:[~2026-06-05  7:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05  7:27 [PATCH v2 0/2] leds: pwm-multicolor: Fix default-trigger by allowing default-intensity Jonas Rebmann
2026-06-05  7:27 ` [PATCH v2 1/2] dt-bindings: leds: Add default-intensity property Jonas Rebmann
2026-06-05  7:38   ` sashiko-bot [this message]
2026-06-05  8:45     ` Jonas Rebmann
2026-06-05 10:29       ` Conor Dooley
2026-06-05 10:52         ` Conor Dooley
2026-06-05  7:27 ` [PATCH v2 2/2] leds: pwm-multicolor: Introduce " Jonas Rebmann
2026-06-17 14:47   ` (subset) " Lee Jones

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=20260605073816.E916D1F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jre@pengutronix.de \
    --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