History

dt-bindings: Drop more redundant 'maxItems/minItems' in if/then schemas

Another round from new cases in 5.19-rc of removing redundant minItems/maxItems when 'items' list is specified. This time it is in if/then schemas as the meta-schema was failing to check this case. If a property has an 'items' list, then a 'minItems' or 'maxItems' with the same size as the list is redundant and can be dropped. Note that is DT schema specific behavior and not standard json-schema behavior. The tooling will fixup the final schema adding any unspecified minItems/maxItems.

Rob Herring committed 4 years ago

Commit 927c63e1 parent c3c09e33 files · +0 −5Browse files

Unified · Split

3 files
  1. Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml +0 −3
  2. Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml +0 −1
  3. Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml +0 −1
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml+0−3
@@ -150,7 +150,6 @@ allOf: · 149 unmodified lines
150150 description: 5 memory controller channels and 1 for stream-id registers
151151
152152 reg-names:
153− maxItems: 6
154153 items:
155154 - const: sid
156155 - const: broadcast
@@ -170,7 +169,6 @@ allOf: · 13 unmodified lines
170169 description: 17 memory controller channels and 1 for stream-id registers
171170
172171 reg-names:
173− minItems: 18
174172 items:
175173 - const: sid
176174 - const: broadcast
@@ -202,7 +200,6 @@ allOf: · 25 unmodified lines
202200 description: 17 memory controller channels and 1 for stream-id registers
203201
204202 reg-names:
205− minItems: 18
206203 items:
207204 - const: sid
208205 - const: broadcast
Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml+0−1
@@ -145,7 +145,6 @@ allOf: · 144 unmodified lines
145145 items:
146146 - description: Xenon IP registers
147147 - description: Armada 3700 SoC PHY PAD Voltage Control register
148− minItems: 2
149148
150149 marvell,pad-type:
151150 $ref: /schemas/types.yaml#/definitions/string
Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml+0−1
@@ -64,7 +64,6 @@ if: · 63 unmodified lines
6464 then:
6565 properties:
6666 clocks:
67− minItems: 2
6867 items:
6968 - description: High-frequency oscillator input, divided internally
7069 - description: Low-frequency oscillator input

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t