Skip to contentSkip to conversation

dt-bindings: phy: qcom: Relax required supplies

PATCH Superseded Rob Herring (Arm) 4 participants 5 messages Sep 21 – Oct 17

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: phy: qcom: Relax required supplies

For the QUSB2 PHY binding, keep the three regulator supplies required except for legacy IPQ6018 nodes that do not describe the board rails.

Assisted-by LLM
---
 .../devicetree/bindings/phy/qcom,qusb2-phy.yaml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +14 -3
index 001fd0ccc985..2516eab7f6d3 100644
@@ -165,12 +165,23 @@ required:
   - "#phy-cells"
   - clocks
   - clock-names
-  - vdd-supply
-  - vdda-pll-supply
-  - vdda-phy-dpdm-supply
   - resets
 
 allOf:
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum: 
+                - qcom,ipq6018-qusb2-phy
+                - qcom,ipq8074-qusb2-phy
+    then:
+      required:
+        - vdd-supply
+        - vdda-pll-supply
+        - vdda-phy-dpdm-supply
+
   - if:
       not:
         properties:
Signature · 1 line
2.53.0
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dt-bindings: unintended schema relaxation for qcom,ipq5210-qusb2-phy --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: unintended schema relaxation for qcom,ipq5210-qusb2-phy --

commit 69ee638f4004f6e325a963f3b804b3c1cac5c6fb
Author: Rob Herring (Arm) <[email protected]>

dt-bindings: phy: qcom: Relax required supplies

This commit relaxes the requirement for three regulator supplies in the QUSB2 PHY binding for legacy IPQ6018 nodes that do not describe board rails.

Quoted 4 lines
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +0 -0
index 001fd0ccc9852..2516eab7f6d32 100644

[ ... ]

Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml required: · line 178

Quoted 9 lines

allOf:

Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +8 -0
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum: 
+                - qcom,ipq6018-qusb2-phy
+                - qcom,ipq8074-qusb2-phy

[Severity: Medium]
Does this unintentionally relax the schema requirements for IPQ5210?

Since qcom,ipq5210-qusb2-phy falls back to qcom,ipq6018-qusb2-phy, an IPQ5210 device tree node's compatible array will contain qcom,ipq6018-qusb2-phy.

The 'contains: enum' logic matches this fallback, which seems like it might incorrectly apply this legacy IPQ6018 exemption to IPQ5210 nodes, allowing them to silently pass schema validation without the required regulator supplies.

Quoted 5 lines
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +5 -0
+    then:
+      required:
+        - vdd-supply
+        - vdda-pll-supply
+        - vdda-phy-dpdm-supply
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw
In reply to Rob Herring (Arm)
Quoted 19 lines · Rob Herring (Arm)

For the QUSB2 PHY binding, keep the three regulator supplies required except for legacy IPQ6018 nodes that do not describe the board rails.

Assisted-by LLM
---
 .../devicetree/bindings/phy/qcom,qusb2-phy.yaml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +0 -2
index 001fd0ccc985..2516eab7f6d3 100644
@@ -165,12 +165,23 @@ required:
   - "#phy-cells"
   - clocks
   - clock-names
-  - vdd-supply
-  - vdda-pll-supply

Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml required: · line 176

Quoted 10 lines
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +6 -1
-  - vdda-phy-dpdm-supply
   - resets
 
 allOf:
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum: 

ERROR: trailing whitespace
#35: FILE: Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml:176:
+ enum: $

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்
author maintainer
#2 lore raw
In reply to [email protected]
Quoted 27 lines · On Mon, Sep 21, 2026 at 11:34:22PM +0000, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: unintended schema relaxation for qcom,ipq5210-qusb2-phy --

commit 69ee638f4004f6e325a963f3b804b3c1cac5c6fb
Author: Rob Herring (Arm) <[email protected]>

dt-bindings: phy: qcom: Relax required supplies

This commit relaxes the requirement for three regulator supplies in the QUSB2 PHY binding for legacy IPQ6018 nodes that do not describe board rails.

Quoted 4 lines
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +0 -0
index 001fd0ccc9852..2516eab7f6d32 100644

[ ... ]

Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml required: · line 178

Quoted 9 lines

allOf:

Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +8 -0
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum: 
+                - qcom,ipq6018-qusb2-phy
+                - qcom,ipq8074-qusb2-phy
Quoted 2 lines

[Severity: Medium]
Does this unintentionally relax the schema requirements for IPQ5210?

Yes.

Quoted 13 lines

Since qcom,ipq5210-qusb2-phy falls back to qcom,ipq6018-qusb2-phy, an IPQ5210 device tree node's compatible array will contain qcom,ipq6018-qusb2-phy.

The 'contains: enum' logic matches this fallback, which seems like it might incorrectly apply this legacy IPQ6018 exemption to IPQ5210 nodes, allowing them to silently pass schema validation without the required regulator supplies.

Quoted 5 lines
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +5 -0
+    then:
+      required:
+        - vdd-supply
+        - vdda-pll-supply
+        - vdda-phy-dpdm-supply

If these are compatible with ipq5210, they can't really have more constraints than it.

Rob

Reviewed-by on v1 1/1
#4 lore raw
In reply to Rob Herring (Arm)
Quoted 9 lines · Rob Herring (Arm)

For the QUSB2 PHY binding, keep the three regulator supplies required except for legacy IPQ6018 nodes that do not describe the board rails.

Assisted-by LLM
---
 .../devicetree/bindings/phy/qcom,qusb2-phy.yaml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

I think this is fine. These devices do not expose controllable supplies, so the supplies are there, but all other IPQxxxx variants just use regulator-fixed stubs.

We can fix it by relaxing constraints or adding semi-fake regulator stubs.

With checkpatch warning fixed:

Best regards,
Krzysztof