]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation
authorHuan He <hehuan1@eswincomputing.com>
Thu, 26 Feb 2026 09:26:14 +0000 (17:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Mar 2026 16:32:38 +0000 (17:32 +0100)
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.

Fixes: 30009a21f257 ("dt-bindings: mmc: sdhci-of-dwcmshc: Add Eswin EIC7700")
Co-developed-by: Pritesh Patel <pritesh.patel@einfochips.com>
Signed-off-by: Pritesh Patel <pritesh.patel@einfochips.com>
Signed-off-by: Huan He <hehuan1@eswincomputing.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml

index 7e7c55dc24403433b99bd414bdf20e05f5d8353b..5cebe5eb1efb871c5f36e3095261666707df736a 100644 (file)
@@ -50,9 +50,11 @@ properties:
     maxItems: 1
 
   resets:
+    minItems: 4
     maxItems: 5
 
   reset-names:
+    minItems: 4
     maxItems: 5
 
   rockchip,txclk-tapnum:
@@ -146,6 +148,7 @@ allOf:
     else:
       properties:
         resets:
+          minItems: 5
           maxItems: 5
         reset-names:
           items: