Skip to contentSkip to conversation

dt-bindings: phy: qcom: Relax required supplies

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Nov 12 – Nov 13

Subsystems (3)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH v3 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.

This relaxes the requirements for the IPQ5210 as well as if it is compatible with IPQ6018, then it shouldn't have more required properties either.

---
v3:
- Rebase on phy-next

v2:
- Fix trailing whitespace
- Add blurb to commit msg (for sashiko)

---
 .../bindings/phy/qcom,qusb2-phy.yaml          | 30 ++++++++++++++++---
 1 file changed, 26 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +26 -4
index cfc5a1d16b7f..de0041dd2846 100644
@@ -174,11 +174,35 @@ required:
   - "#phy-cells"
   - clocks
   - clock-names
-  - 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:
+        - vdda-pll-supply
+        - vdda-phy-dpdm-supply
+
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - qcom,ipq6018-qusb2-phy
+                - qcom,ipq8074-qusb2-phy
+                - qcom,msm8996-qusb2-phy
+    then:
+      required:
+        - vdd-supply
+
   - if:
       not:
         properties:
@@ -208,8 +232,6 @@ allOf:
       properties:
         power-domains: false
         required-opps: false
-      required:
-        - vdd-supply
 
 additionalProperties: false
 
Signature · 1 line
2.53.0
maintainer Applied
#1 lore raw
Quoted 8 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.

This relaxes the requirements for the IPQ5210 as well as if it is compatible with IPQ6018, then it shouldn't have more required properties either.

[...]

Applied, thanks!

[1/1] dt-bindings: phy: qcom: Relax required supplies

      commit: e77b61b463909da3e21a337295954f48f4ca80ec

Best regards,

Signature · 1 line
~Vinod