Skip to content

Commit 9c98072

Browse files
hehuaneswincomputinggregkh
authored andcommitted
dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation
[ Upstream commit 5f7ac24 ] 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: 30009a2 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d8f3d78 commit 9c98072

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ properties:
5050
maxItems: 1
5151

5252
resets:
53+
minItems: 4
5354
maxItems: 5
5455

5556
reset-names:
57+
minItems: 4
5658
maxItems: 5
5759

5860
rockchip,txclk-tapnum:
@@ -146,6 +148,7 @@ allOf:
146148
else:
147149
properties:
148150
resets:
151+
minItems: 5
149152
maxItems: 5
150153
reset-names:
151154
items:

0 commit comments

Comments
 (0)