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.
Unified · Split
| @@ -150,7 +150,6 @@ allOf: · 149 unmodified lines | ||
| 150 | 150 | description: 5 memory controller channels and 1 for stream-id registers |
| 151 | 151 | |
| 152 | 152 | reg-names: |
| 153 | − maxItems: 6 | |
| 154 | 153 | items: |
| 155 | 154 | - const: sid |
| 156 | 155 | - const: broadcast |
| @@ -170,7 +169,6 @@ allOf: · 13 unmodified lines | ||
| 170 | 169 | description: 17 memory controller channels and 1 for stream-id registers |
| 171 | 170 | |
| 172 | 171 | reg-names: |
| 173 | − minItems: 18 | |
| 174 | 172 | items: |
| 175 | 173 | - const: sid |
| 176 | 174 | - const: broadcast |
| @@ -202,7 +200,6 @@ allOf: · 25 unmodified lines | ||
| 202 | 200 | description: 17 memory controller channels and 1 for stream-id registers |
| 203 | 201 | |
| 204 | 202 | reg-names: |
| 205 | − minItems: 18 | |
| 206 | 203 | items: |
| 207 | 204 | - const: sid |
| 208 | 205 | - const: broadcast |
| @@ -145,7 +145,6 @@ allOf: · 144 unmodified lines | ||
| 145 | 145 | items: |
| 146 | 146 | - description: Xenon IP registers |
| 147 | 147 | - description: Armada 3700 SoC PHY PAD Voltage Control register |
| 148 | − minItems: 2 | |
| 149 | 148 | |
| 150 | 149 | marvell,pad-type: |
| 151 | 150 | $ref: /schemas/types.yaml#/definitions/string |
| @@ -64,7 +64,6 @@ if: · 63 unmodified lines | ||
| 64 | 64 | then: |
| 65 | 65 | properties: |
| 66 | 66 | clocks: |
| 67 | − minItems: 2 | |
| 68 | 67 | items: |
| 69 | 68 | - description: High-frequency oscillator input, divided internally |
| 70 | 69 | - description: Low-frequency oscillator input |