Devicetree
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mmc: snps,dwcmshc-sdhci: add snps,no-phy property
@ 2026-12-04 10:42 Richard Genoud (Synaptics)
  2026-12-04 10:51 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Genoud (Synaptics) @ 2026-12-04 10:42 UTC (permalink / raw)
  To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jisheng Zhang
  Cc: Terry Zhou, Thomas Petazzoni, linux-mmc, devicetree,
	Richard Genoud (Synaptics)

Some SoC integrations do not connect the Synopsys DesignWare PHY to the
SDHCI controller. Document the snps,no-phy property to describe such
configurations.

Signed-off-by: Richard Genoud (Synaptics) <richard.genoud@bootlin.com>
---
 .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
index 9e663e24defd..9cbe4da6f757 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.
+
   hpe,gxp-sysreg:
     $ref: /schemas/types.yaml#/definitions/phandle-array
     items:
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: mmc: snps,dwcmshc-sdhci: add snps,no-phy property
  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
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-04 10:51 UTC (permalink / raw)
  To: Richard Genoud (Synaptics); +Cc: devicetree, robh, conor+dt

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04 10:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox