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

dt-bindings: usb: qcom,dwc3: refine interrupt requirements

Not all platforms have all of the four wakeup interrupts currently
described by the bindings.

Specifically, MSM8953/6/8 and SDM660 do not use the DP/DM interrupts,
while the SS PHY interrupt is optional on SDM660 and SC7280.

Note that no devicetree in mainline specify any wakeup interrupts for

- qcom,ipq4019-dwc3
- qcom,ipq6018-dwc3
- qcom,ipq8064-dwc3
- qcom,ipq8074-dwc3
- qcom,msm8994-dwc3
- qcom,qcs404-dwc3

but let's keep the schema warnings about that for now.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220713131340.29401-3-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
dd566fae a5c75923

+55 -5
+55 -5
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
··· 94 94 - const: apps-usb 95 95 96 96 interrupts: 97 + minItems: 1 97 98 maxItems: 4 98 99 99 100 interrupt-names: 101 + minItems: 1 100 102 maxItems: 4 101 103 102 104 qcom,select-utmi-as-pipe-clk: ··· 335 333 - qcom,ipq6018-dwc3 336 334 - qcom,ipq8064-dwc3 337 335 - qcom,ipq8074-dwc3 338 - - qcom,msm8953-dwc3 339 336 - qcom,msm8994-dwc3 340 - - qcom,msm8996-dwc3 341 - - qcom,msm8998-dwc3 342 337 - qcom,qcs404-dwc3 343 338 - qcom,sc7180-dwc3 344 - - qcom,sc7280-dwc3 345 - - qcom,sdm660-dwc3 346 339 - qcom,sdm845-dwc3 347 340 - qcom,sdx55-dwc3 348 341 - qcom,sdx65-dwc3 ··· 365 368 - const: ss_phy_irq 366 369 - const: dm_hs_phy_irq 367 370 - const: dp_hs_phy_irq 371 + 372 + - if: 373 + properties: 374 + compatible: 375 + contains: 376 + enum: 377 + - qcom,msm8953-dwc3 378 + - qcom,msm8996-dwc3 379 + - qcom,msm8998-dwc3 380 + then: 381 + properties: 382 + interrupts: 383 + maxItems: 2 384 + interrupt-names: 385 + items: 386 + - const: hs_phy_irq 387 + - const: ss_phy_irq 388 + 389 + - if: 390 + properties: 391 + compatible: 392 + contains: 393 + enum: 394 + - qcom,sdm660-dwc3 395 + then: 396 + properties: 397 + interrupts: 398 + minItems: 1 399 + maxItems: 2 400 + interrupt-names: 401 + minItems: 1 402 + items: 403 + - const: hs_phy_irq 404 + - const: ss_phy_irq 405 + 406 + - if: 407 + properties: 408 + compatible: 409 + contains: 410 + enum: 411 + - qcom,sc7280-dwc3 412 + then: 413 + properties: 414 + interrupts: 415 + minItems: 3 416 + maxItems: 4 417 + interrupt-names: 418 + minItems: 3 419 + items: 420 + - const: hs_phy_irq 421 + - const: dp_hs_phy_irq 422 + - const: dm_hs_phy_irq 423 + - const: ss_phy_irq 368 424 369 425 - if: 370 426 properties: