From: sashiko-bot@kernel.org
To: "Joey Lu" <a0987203069@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org,
krzk+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: display: verisilicon,dc: generalize for DCUltra Lite variant
Date: Tue, 12 May 2026 00:41:38 +0000 [thread overview]
Message-ID: <20260512004139.20865C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511075142.54752-2-a0987203069@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Relaxing base schema constraints without preserving them for existing hardware breaks validation for `thead,th1520-dc8200`.
--
commit 381b44c205709ac6503cee93b907e15828645951
Author: Joey Lu <a0987203069@gmail.com>
dt-bindings: display: verisilicon,dc: generalize for DCUltra Lite variant
Extend the verisilicon,dc base schema to accommodate the Nuvoton MA35D1
DCUltra Lite variant by relaxing several constraints including clocks,
resets, ports, and additionalProperties. Add a dedicated sub-schema for
the Nuvoton variant.
> diff --git a/Documentation/devicetree/bindings/display/verisilicon,dc.yaml b/Documentation/devicetree/bindings/display/verisilicon,dc.yaml
> index 9dc35ab973f20..00884529f8c1c 100644
> --- a/Documentation/devicetree/bindings/display/verisilicon,dc.yaml
> +++ b/Documentation/devicetree/bindings/display/verisilicon,dc.yaml
[ ... ]
> properties:
> $nodename:
> pattern: "^display@[0-9a-f]+$"
>
> compatible:
> - items:
> - - enum:
> - - thead,th1520-dc8200
> - - const: verisilicon,dc # DC IPs have discoverable ID/revision registers
> + # Enumerated in full so the schema validator can verify any compatible
> + # string against this list, including those from child schemas.
> + contains:
> + enum:
> + - verisilicon,dc
> + - thead,th1520-dc8200
> + - nuvoton,ma35d1-dcu
>
> reg:
> maxItems: 1
> @@ -26,32 +45,24 @@ properties:
> maxItems: 1
>
> clocks:
> - items:
> - - description: DC Core clock
> - - description: DMA AXI bus clock
> - - description: Configuration AHB bus clock
> - - description: Pixel clock of output 0
> - - description: Pixel clock of output 1
> + minItems: 2
> + maxItems: 5
[ ... ]
> @@ -75,9 +86,8 @@ required:
> - interrupts
> - clocks
> - clock-names
> - - ports
>
> -additionalProperties: false
> +additionalProperties: true
Does relaxing these constraints break schema validation for the existing
thead,th1520-dc8200 hardware?
Since thead,th1520-dc8200 relies directly on this base schema and does not
appear to have its own sub-schema, it seems malformed device tree nodes for
this existing hardware could now silently pass validation.
For example, missing the verisilicon,dc fallback string, omitting the ports
node, or containing undocumented properties would no longer be caught by the
validator.
Should the legacy constraints for thead,th1520-dc8200 be preserved via an
allOf if-then conditional block in this file, or by moving the existing
hardware to its own dedicated sub-schema?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511075142.54752-1-a0987203069@gmail.com?part=1
next prev parent reply other threads:[~2026-05-12 0:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 7:51 [PATCH 0/2] drm/verisilicon: add Nuvoton MA35D1 DCUltra Lite support Joey Lu
2026-05-11 7:51 ` [PATCH 1/2] dt-bindings: display: verisilicon,dc: generalize for DCUltra Lite variant Joey Lu
2026-05-11 9:49 ` Rob Herring (Arm)
2026-05-11 9:59 ` Icenowy Zheng
2026-05-12 8:02 ` Joey Lu
2026-05-12 0:41 ` sashiko-bot [this message]
2026-05-11 7:51 ` [PATCH 2/2] drm/verisilicon: add support for Nuvoton MA35D1 DCUltra Lite display controller Joey Lu
2026-05-11 9:47 ` Icenowy Zheng
2026-05-12 7:45 ` Joey Lu
2026-05-12 8:11 ` Icenowy Zheng
2026-05-12 9:06 ` Joey Lu
2026-05-12 10:01 ` Icenowy Zheng
2026-05-12 10:59 ` Joey Lu
2026-05-12 13:12 ` Icenowy Zheng
2026-05-12 1:12 ` sashiko-bot
2026-05-12 8:24 ` Thomas Zimmermann
2026-05-12 9:10 ` Joey Lu
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=20260512004139.20865C2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=a0987203069@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@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