Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: usb: qcom,snps-dwc3: Add missing clocks and interrupts constraints

The top-level part defines variable number of clocks and interrupts, and
each "if:then:" block narrows them. It however narrows only the
maxItems leaving minItems undefined, which then takes different values
depending on dtschema being used.

Recommended style is to avoid ambiguity in such case, thus if top-level
part has broad constraints, then each "if:then:" must specify both upper
and lower limits.

Add missing constraints, mostly minItems but also maxItems for one
variant.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260323-dt-bindings-snps-qcom-dwc3-cleanup-v2-2-3bcd37c0a5b5@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Krzysztof Kozlowski and committed by
Greg Kroah-Hartman
2c047119 2a6bfe9e

+8
+8
Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
··· 174 174 then: 175 175 properties: 176 176 clocks: 177 + minItems: 3 177 178 maxItems: 3 178 179 clock-names: 179 180 items: ··· 222 221 then: 223 222 properties: 224 223 clocks: 224 + minItems: 5 225 225 maxItems: 5 226 226 clock-names: 227 227 items: ··· 265 263 then: 266 264 properties: 267 265 clocks: 266 + minItems: 4 268 267 maxItems: 4 269 268 clock-names: 270 269 items: ··· 285 282 then: 286 283 properties: 287 284 clocks: 285 + minItems: 4 288 286 maxItems: 4 289 287 clock-names: 290 288 items: ··· 306 302 then: 307 303 properties: 308 304 clocks: 305 + minItems: 9 309 306 maxItems: 9 310 307 clock-names: 311 308 items: ··· 368 363 properties: 369 364 clocks: 370 365 minItems: 6 366 + maxItems: 6 371 367 clock-names: 372 368 items: 373 369 - const: cfg_noc ··· 410 404 then: 411 405 properties: 412 406 clocks: 407 + minItems: 7 413 408 maxItems: 7 414 409 clock-names: 415 410 items: ··· 479 472 then: 480 473 properties: 481 474 interrupts: 475 + minItems: 4 482 476 maxItems: 4 483 477 interrupt-names: 484 478 items: