From: Charan Pedumuru <charan.pedumuru@gmail.com>
To: sashiko@lists.linux.dev
Cc: robh@kernel.org, devicetree@vger.kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Subject: Re: [PATCH v3 2/2] dt-bindings: mmc: st,sdhci: convert to DT schema
Date: Sun, 10 May 2026 12:41:25 +0530 [thread overview]
Message-ID: <6235faf8-fbdd-468a-ae2d-a4a3f7ee50fa@gmail.com> (raw)
In-Reply-To: <20260508222225.1E854C2BCB4@smtp.kernel.org>
On 09-05-2026 03:52, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] Missing `minItems: 1` for `clock-names` and `reg-names` restricts them to exactly two items, breaking schema validation for existing device trees.
> --
>
> commit 66ec88f9e00b102af921864d0e0bf8b1b9e7f38d
> Author: Charan Pedumuru <charan.pedumuru@gmail.com>
> dt-bindings: mmc: st,sdhci: convert to DT schema
>
> This commit converts the STMicroelectronics sdhci-st MMC/SD controller
> binding to DT schema. It updates the clock and register properties to
> support backward compatibility for single-item entries.
>
>> - In the legacy text binding, 'icn' was optional. Keep the clock list
>> flexible to preserve compatibility, although all existing in-tree DTS
>> files already provide both clocks.
>> - Document the optional "top-mmc-delay" register region and corresponding
>> reg-name in the YAML binding, as existing in-tree DTS files already use
>> both "mmc" and "top-mmc-delay" entries.
>
> Are these descriptions accurate regarding all existing in-tree DTS files?
Yes
>
> In arch/arm/boot/dts/st/stih407-family.dtsi, the mmc1 node defines only a
> single register name (reg-names = "mmc"). Other device trees such as
> arch/powerpc/boot/dts/fsp2.dts also define a single clock and register.
>
>> diff --git a/Documentation/devicetree/bindings/mmc/st,sdhci.yaml b/Documentation/devicetree/bindings/mmc/st,sdhci.yaml
>> new file mode 100644
>> index 0000000000000..10e0e1ee6d5cd
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mmc/st,sdhci.yaml
>
> [ ... ]
>
>> + reg:
>> + minItems: 1
>> + items:
>> + - description: MMC controller registers
>> + - description: MMC delay/auxiliary registers
>> +
>> + reg-names:
>> + items:
>> + - const: mmc
>> + - const: top-mmc-delay
>
> Because items lists without an explicit minItems default to the length of
> the list, does this strictly require two items for reg-names?
Yes, but I can add minItems as 1 to accept the nodes that define only 1 reg-names. but the existing DTS uses both.
>
> Will this cause make dtbs_check to fail for existing nodes like mmc1 that
> only provide "mmc"? Should minItems: 1 be added here to allow single entries?
Yes, I will add minItmes to allow singe entries.
>
> [ ... ]
>
>> + clocks:
>> + minItems: 1
>> + items:
>> + - description: Clock for the MMC controller
>> + - description: Interconnect (ICN) clock
>> +
>> + clock-names:
>> + items:
>> + - const: mmc
>> + - const: icn
>
> Similarly, does clock-names require minItems: 1 to match the flexibility
> added to the clocks property and prevent schema validation errors on
> single-clock configurations?
I can add minItmes as 1 if the node only requires 1 clock, but the current DTS uses both of them.
>
--
Best Regards,
Charan.
prev parent reply other threads:[~2026-05-10 7:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-08 17:23 [PATCH v3 0/2] dt-bindings: mmc: st,sdhci: convert STMicroelectronics SDHCI-ST MMC/SD Controller controller binding to YAML Charan Pedumuru
2026-05-08 17:23 ` [PATCH v3 1/2] arm: dts: st: align node patterns with established convention Charan Pedumuru
2026-05-08 22:15 ` sashiko-bot
2026-05-08 17:23 ` [PATCH v3 2/2] dt-bindings: mmc: st,sdhci: convert to DT schema Charan Pedumuru
2026-05-08 22:22 ` sashiko-bot
2026-05-10 7:11 ` Charan Pedumuru [this message]
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=6235faf8-fbdd-468a-ae2d-a4a3f7ee50fa@gmail.com \
--to=charan.pedumuru@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