Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Richard Genoud (Synaptics)" <richard.genoud@bootlin.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] dt-bindings: mmc: snps,dwcmshc-sdhci: add snps,no-phy property
Date: Fri, 04 Dec 2026 10:51:44 +0000	[thread overview]
Message-ID: <sashiko-outbox-249633@kernel.org> (raw)
In-Reply-To: <20261204104245.1188981-1-richard.genoud@bootlin.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: mmc: snps,no-phy models SoC integration outside
  compatibles
--

commit b93e1a793d2f28c739edaa9f349cf33f60717225
Author: Richard Genoud (Synaptics) <richard.genoud@bootlin.com>

dt-bindings: mmc: snps,dwcmshc-sdhci: add snps,no-phy property

This commit adds a snps,no-phy boolean property to the Synopsys
DesignWare MSHC SDHCI binding to indicate that the Synopsys DesignWare
PHY is not connected to a controller instance.

> diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> index cd823a3ef2130..6b75870ea47a4 100644
> --- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> +++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> @@ -87,6 +87,12 @@ properties:
>      description: Specifies the drive impedance in Ohm.
>      enum: [33, 40, 50, 66, 100]
>
> +  snps,no-phy:
> +    type: boolean
> +    description:
> +      Indicates that the Synopsys DesignWare PHY is not connected to this
> +      controller instance.

[Severity: Medium]
Should DesignWare PHY presence be deduced from the compatible string
rather than modeled with a top-level snps,no-phy boolean property?

Whether the DesignWare PHY is connected is a fixed SoC integration detail,
which writing-bindings.rst says should be deduced from the compatible.
sdhci-of-dwcmshc.c already derives PHY presence from compatibles, including
per-instance differences on one SoC (canaan,k230-emmc vs canaan,k230-sdio).

Defining snps,no-phy as a negative boolean also implies a DesignWare PHY is
present by default when omitted.  That conflicts with existing compatibles
that do not use it (such as snps,dwcmshc-sdhci and rockchip,rk3568-dwcmshc),
whose in-tree DTS nodes do not set snps,no-phy.

Because snps,no-phy has no allOf constraint restricting it to specific
compatibles, the schema also permits contradictory nodes such as setting
snps,no-phy on eswin,eic7700-dwcmshc, which requires a phy reset and
eswin,drive-impedance-ohms.

If a specific SoC or compatible requires this property, could the commit
message identify it and explain why PHY absence cannot be inferred from the
compatible string?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204104245.1188981-1-richard.genoud@bootlin.com?part=1

      reply	other threads:[~2026-12-04 10:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 10:42 [PATCH] dt-bindings: mmc: snps,dwcmshc-sdhci: add snps,no-phy property Richard Genoud (Synaptics)
2026-12-04 10:51 ` sashiko-bot [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=sashiko-outbox-249633@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=richard.genoud@bootlin.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox