[PATCH v2 1/5] dt-bindings: phy: qcom,qmp-usb3-dp: Extend X1E description for USB4
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Jul 28 03:18:47 PDT 2026
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Missing `maxItems: 4` constraint for `clock-names` in the fallback `not:` conditional block.
--
--- Patch [1]: [PATCH v2 1/5] dt-bindings: phy: qcom,qmp-usb3-dp: Extend X1E description for USB4 ---
commit 95918238514fdc86a985725a4371c68f557aeda3
Author: Konrad Dybcio <konrad.dybcio at oss.qualcomm.com>
dt-bindings: phy: qcom,qmp-usb3-dp: Extend X1E description for USB4
This commit extends the X1E USB43DP PHY binding to allow a fifth clock
(P2RR2P) required for USB4 mode. It updates the top-level clock-names
constraint and adds conditional blocks for specific compatible strings.
> diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml
> --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml
[ ... ]
> @@ -187,21 +182,59 @@ allOf:
[ ... ]
> + - if:
> + not:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,x1e80100-qmp-usb3-dp-phy
> + - qcom,sc7180-qmp-usb3-dp-phy
> + - qcom,sdm845-qmp-usb3-dp-phy
> + then:
> properties:
> clocks:
> maxItems: 4
> clock-names:
> - maxItems: 4
> + items:
> + - const: aux
> + - const: ref
> + - const: com_aux
> + - const: usb3_pipe
[Severity: Low]
Does this omission of maxItems: 4 for clock-names allow an unconstrained
fifth clock name to silently pass validation?
Since the top-level clock-names property was updated to maxItems: 5, replacing
maxItems: 4 with an items array in this fallback block without retaining
maxItems: 4 means the schema inherits the 5-item limit.
A device tree with 4 clocks but 5 clock-names for a non-X1E/SC7180/SDM845
variant would pass validation.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260728-topic-usb4phy-v2-0-5d9dd5149ec7@oss.qualcomm.com?part=1
More information about the linux-phy
mailing list