All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Andreas Kemnade" <andreas@kemnade.info>
Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org,
	devicetree@vger.kernel.org, imx@lists.linux.dev, robh@kernel.org,
	conor+dt@kernel.org, Frank.Li@kernel.org, lee@kernel.org
Subject: Re: [PATCH v3 1/4] dt-bindings: leds: backlight: Add Awinic AW99703 backlight
Date: Fri, 04 Dec 2026 21:57:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-250714@kernel.org> (raw)
In-Reply-To: <20261204-bl-aw99703-upstr-v3-1-b98b78720ac2@kemnade.info>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: awinic,aw99703: unevaluatedProperties: false
  without $ref
- [Low] dt-bindings: awinic,aw99703: channel-mask allows 0 and lacks bit
  mapping
--

commit 389bb9f0bd518f7433efdc6d02944088dd335402
Author: Andreas Kemnade <andreas@kemnade.info>

dt-bindings: leds: backlight: Add Awinic AW99703 backlight

This commit adds the Device Tree binding schema for the Awinic AW99703
3-channel backlight driver.

> diff --git a/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml
> new file mode 100644
> index 0000000000000..ae2820f7c6040
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml
> @@ -0,0 +1,94 @@

[ ... ]

> +  awinic,channel-mask:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: Mask of channels to use
> +    minimum: 0
> +    maximum: 7
> +    default: 7

[Severity: Low]
Can awinic,channel-mask reuse the standard led-sources property from
Documentation/devicetree/bindings/leds/common.yaml instead of introducing
a custom vendor bitmask?

If a bitmask is kept, minimum: 0 allows enabling zero channels (sibling
bindings like richtek,rt4831-backlight.yaml require minimum: 1).  The
description also omits the bit-to-channel mapping, leaving values such as
5 ambiguous.

[ ... ]

> +unevaluatedProperties: false

[Severity: Low]
Should this schema either reference common.yaml# via allOf or use
additionalProperties: false instead of unevaluatedProperties: false?

Per Documentation/devicetree/bindings/writing-schema.rst,
unevaluatedProperties: false is only for bindings that reference another
schema.  Without referencing common.yaml# (as awinic,aw99706.yaml does),
standard backlight properties like default-brightness fail dtbs_check.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-bl-aw99703-upstr-v3-0-b98b78720ac2@kemnade.info?part=1

  reply	other threads:[~2026-12-04 21:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 21:44 [PATCH v3 0/4] video: backlight: Backlight for Kobo Clara 2e Andreas Kemnade
2026-12-04 21:44 ` [PATCH v3 1/4] dt-bindings: leds: backlight: Add Awinic AW99703 backlight Andreas Kemnade
2026-12-04 21:57   ` sashiko-bot [this message]
2026-12-04 21:44 ` [PATCH v3 2/4] video: backlight: Add Awinic AW99703 Andreas Kemnade
2026-12-04 22:05   ` sashiko-bot
2026-12-04 21:44 ` [PATCH v3 3/4] ARM: dts: imx: Add backlight for Kobo Clara 2e Andreas Kemnade
2026-12-04 21:44 ` [PATCH v3 4/4] arm: mach-imx: enable shared gpios Andreas Kemnade
2026-12-04 21:55   ` sashiko-bot
2026-12-04 22:05 ` [PATCH v3 0/4] video: backlight: Backlight for Kobo Clara 2e 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=sashiko-outbox-250714@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=imx@lists.linux.dev \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.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.