All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Wim de With" <wf@dewith.io>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	robh@kernel.org, lee@kernel.org, conor+dt@kernel.org,
	linux-leds@vger.kernel.org
Subject: Re: [PATCH v4 1/2] dt-bindings: backlight: Add Orient Chip OCP8178
Date: Wed, 26 Aug 2026 07:40:18 +0000	[thread overview]
Message-ID: <20260826074018.5D0421F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260826-ocp8178-backlight-v4-1-47d7acce882e@dewith.io>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Using `additionalProperties: false` with an `allOf` `$ref` breaks property inheritance.
--

commit 76f37f9a56bf914fefbc5653351c8e4714ee18e8
Author: Wim de With <wf@dewith.io>

dt-bindings: backlight: Add Orient Chip OCP8178

Add device tree bindings for the Orient Chip OCP8178 LED backlight
driver.

> diff --git a/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml b/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml
> new file mode 100644
> index 0000000000000..1cd95aac0d168
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml

[ ... ]

> +allOf:
> +  - $ref: common.yaml#
> +
> +properties:
> +  compatible:
> +    const: ocs,ocp8178

[ ... ]

> +required:
> +  - compatible
> +  - ctrl-gpios
> +
> +additionalProperties: false

[Severity: Medium]
Since this schema includes an allOf reference to common.yaml#, does using
additionalProperties: false break property inheritance? This will reject
standard backlight properties not explicitly listed in the local schema
during device tree validation.

Should this use unevaluatedProperties: false instead?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260826-ocp8178-backlight-v4-0-47d7acce882e@dewith.io?part=1

  reply	other threads:[~2026-08-26  7:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-26  7:23 [PATCH v4 0/2] backlight: Add support for Orient Chip OCP8178 Wim de With
2026-08-26  7:23 ` [PATCH v4 1/2] dt-bindings: backlight: Add " Wim de With
2026-08-26  7:40   ` sashiko-bot [this message]
2026-08-26  7:23 ` [PATCH v4 2/2] backlight: Add support for " Wim de With
2026-08-26  7:44   ` 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=20260826074018.5D0421F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wf@dewith.io \
    /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.