From: sashiko-bot@kernel.org
To: "Charan Pedumuru" <charan.pedumuru@gmail.com>
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: Fri, 08 May 2026 22:22:24 +0000 [thread overview]
Message-ID: <20260508222225.1E854C2BCB4@smtp.kernel.org> (raw)
In-Reply-To: <20260508-st-mmc-v3-2-81c329ed28e8@gmail.com>
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?
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?
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?
[ ... ]
> + 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?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260508-st-mmc-v3-0-81c329ed28e8@gmail.com?part=2
next prev parent reply other threads:[~2026-05-08 22:22 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 [this message]
2026-05-10 7:11 ` Charan Pedumuru
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=20260508222225.1E854C2BCB4@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=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 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.