* [PATCH v1] dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation
@ 2026-02-11 9:47 hehuan1
2026-02-11 22:10 ` Rob Herring
0 siblings, 1 reply; 4+ messages in thread
From: hehuan1 @ 2026-02-11 9:47 UTC (permalink / raw)
To: ulf.hansson, robh, krzk+dt, conor+dt, jszhang, linux-mmc,
devicetree, linux-kernel
Cc: ningyu, linmin, pinkesh.vaghela, xuxiang, Huan He, Pritesh Patel
From: Huan He <hehuan1@eswincomputing.com>
The binding defines tuple-style reset-names items for some
compatibles, which implicitly enforces a fixed array length
via JSON Schema.
Defining global maxItems for resets and reset-names causes these
constraints to be intersected via allOf, resulting in an effective
minItems equal to the global maxItems. This leads to dtbs_check
failures reporting reset arrays as too short, even when the DTS
provides the correct number of entries.
Remove the global maxItems constraints and let the per-compatible
schema branches define the required reset array sizes explicitly.
Fixes: 30009a21f257 ("dt-bindings: mmc: sdhci-of-dwcmshc: Add Eswin EIC7700")
Signed-off-by: Pritesh Patel <pritesh.patel@einfochips.com>
Signed-off-by: Huan He <hehuan1@eswincomputing.com>
---
.../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml | 6 ------
1 file changed, 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
index 7e7c55dc2440..8af55a53b569 100644
--- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
+++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
@@ -49,12 +49,6 @@ properties:
power-domains:
maxItems: 1
- resets:
- maxItems: 5
-
- reset-names:
- maxItems: 5
-
rockchip,txclk-tapnum:
description: Specify the number of delay for tx sampling.
$ref: /schemas/types.yaml#/definitions/uint8
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v1] dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation
2026-02-11 9:47 [PATCH v1] dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation hehuan1
@ 2026-02-11 22:10 ` Rob Herring
2026-02-12 7:37 ` Huan He
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2026-02-11 22:10 UTC (permalink / raw)
To: hehuan1
Cc: ulf.hansson, krzk+dt, conor+dt, jszhang, linux-mmc, devicetree,
linux-kernel, ningyu, linmin, pinkesh.vaghela, xuxiang,
Pritesh Patel
On Wed, Feb 11, 2026 at 05:47:36PM +0800, hehuan1@eswincomputing.com wrote:
> From: Huan He <hehuan1@eswincomputing.com>
>
> The binding defines tuple-style reset-names items for some
> compatibles, which implicitly enforces a fixed array length
> via JSON Schema.
>
> Defining global maxItems for resets and reset-names causes these
> constraints to be intersected via allOf, resulting in an effective
> minItems equal to the global maxItems. This leads to dtbs_check
> failures reporting reset arrays as too short, even when the DTS
> provides the correct number of entries.
>
> Remove the global maxItems constraints and let the per-compatible
> schema branches define the required reset array sizes explicitly.
>
> Fixes: 30009a21f257 ("dt-bindings: mmc: sdhci-of-dwcmshc: Add Eswin EIC7700")
> Signed-off-by: Pritesh Patel <pritesh.patel@einfochips.com>
> Signed-off-by: Huan He <hehuan1@eswincomputing.com>
> ---
> .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> index 7e7c55dc2440..8af55a53b569 100644
> --- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> +++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> @@ -49,12 +49,6 @@ properties:
> power-domains:
> maxItems: 1
>
> - resets:
> - maxItems: 5
> -
> - reset-names:
> - maxItems: 5
No, add 'minItems' that covers the whole range needed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [PATCH v1] dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation
2026-02-11 22:10 ` Rob Herring
@ 2026-02-12 7:37 ` Huan He
2026-02-12 17:23 ` Rob Herring
0 siblings, 1 reply; 4+ messages in thread
From: Huan He @ 2026-02-12 7:37 UTC (permalink / raw)
To: Rob Herring
Cc: ulf.hansson, krzk+dt, conor+dt, jszhang, linux-mmc, devicetree,
linux-kernel, ningyu, linmin, pinkesh.vaghela, xuxiang,
Pritesh Patel
> > The binding defines tuple-style reset-names items for some
> > compatibles, which implicitly enforces a fixed array length
> > via JSON Schema.
> >
> > Defining global maxItems for resets and reset-names causes these
> > constraints to be intersected via allOf, resulting in an effective
> > minItems equal to the global maxItems. This leads to dtbs_check
> > failures reporting reset arrays as too short, even when the DTS
> > provides the correct number of entries.
> >
> > Remove the global maxItems constraints and let the per-compatible
> > schema branches define the required reset array sizes explicitly.
> >
> > Fixes: 30009a21f257 ("dt-bindings: mmc: sdhci-of-dwcmshc: Add Eswin EIC7700")
> > Signed-off-by: Pritesh Patel <pritesh.patel@einfochips.com>
> > Signed-off-by: Huan He <hehuan1@eswincomputing.com>
> > ---
> > .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml | 6 ------
> > 1 file changed, 6 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> > index 7e7c55dc2440..8af55a53b569 100644
> > --- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> > +++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> > @@ -49,12 +49,6 @@ properties:
> > power-domains:
> > maxItems: 1
> >
> > - resets:
> > - maxItems: 5
> > -
> > - reset-names:
> > - maxItems: 5
>
> No, add 'minItems' that covers the whole range needed.
Thank you very much for taking the time to review the patch and for your
valuable feedback.
I have checked other vendors in the kernel that use the resets property.
The minimum number in actual use is 4 (Eswin uses 4, others use 5).
Is it reasonable to add "minItems: 1"?
Best regards,
Huan He
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [PATCH v1] dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation
2026-02-12 7:37 ` Huan He
@ 2026-02-12 17:23 ` Rob Herring
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2026-02-12 17:23 UTC (permalink / raw)
To: Huan He
Cc: ulf.hansson, krzk+dt, conor+dt, jszhang, linux-mmc, devicetree,
linux-kernel, ningyu, linmin, pinkesh.vaghela, xuxiang,
Pritesh Patel
On Thu, Feb 12, 2026 at 1:37 AM Huan He <hehuan1@eswincomputing.com> wrote:
>
> > > The binding defines tuple-style reset-names items for some
> > > compatibles, which implicitly enforces a fixed array length
> > > via JSON Schema.
> > >
> > > Defining global maxItems for resets and reset-names causes these
> > > constraints to be intersected via allOf, resulting in an effective
> > > minItems equal to the global maxItems. This leads to dtbs_check
> > > failures reporting reset arrays as too short, even when the DTS
> > > provides the correct number of entries.
> > >
> > > Remove the global maxItems constraints and let the per-compatible
> > > schema branches define the required reset array sizes explicitly.
> > >
> > > Fixes: 30009a21f257 ("dt-bindings: mmc: sdhci-of-dwcmshc: Add Eswin EIC7700")
> > > Signed-off-by: Pritesh Patel <pritesh.patel@einfochips.com>
> > > Signed-off-by: Huan He <hehuan1@eswincomputing.com>
> > > ---
> > > .../devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml | 6 ------
> > > 1 file changed, 6 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> > > index 7e7c55dc2440..8af55a53b569 100644
> > > --- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> > > +++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> > > @@ -49,12 +49,6 @@ properties:
> > > power-domains:
> > > maxItems: 1
> > >
> > > - resets:
> > > - maxItems: 5
> > > -
> > > - reset-names:
> > > - maxItems: 5
> >
> > No, add 'minItems' that covers the whole range needed.
>
> Thank you very much for taking the time to review the patch and for your
> valuable feedback.
>
> I have checked other vendors in the kernel that use the resets property.
> The minimum number in actual use is 4 (Eswin uses 4, others use 5).
>
> Is it reasonable to add "minItems: 1"?
No, if 4 is the min, then you use 'minItems: 4'.
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-12 17:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11 9:47 [PATCH v1] dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation hehuan1
2026-02-11 22:10 ` Rob Herring
2026-02-12 7:37 ` Huan He
2026-02-12 17:23 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox