]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Restrict resets per each device
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 17 Oct 2025 04:59:20 +0000 (06:59 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 20 Nov 2025 16:50:39 +0000 (22:20 +0530)
Bindings should be complete, thus complete the constraints for the
resets by adding missing compatibles for devices with two resets and
"else:" clause narrowing them for all other devices.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20251017045919.34599-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml

index 119b4ff36dbd66fe59d91c377449d27d2f69e080..9f5f9af6f6cd8373358ad7ec8303a62f006c1f95 100644 (file)
@@ -215,15 +215,23 @@ allOf:
             enum:
               - qcom,sm8550-qmp-gen4x2-pcie-phy
               - qcom,sm8650-qmp-gen4x2-pcie-phy
+              - qcom,x1e80100-qmp-gen3x2-pcie-phy
               - qcom,x1e80100-qmp-gen4x2-pcie-phy
               - qcom,x1e80100-qmp-gen4x4-pcie-phy
               - qcom,x1e80100-qmp-gen4x8-pcie-phy
+              - qcom,x1p42100-qmp-gen4x4-pcie-phy
     then:
       properties:
         resets:
           minItems: 2
         reset-names:
           minItems: 2
+    else:
+      properties:
+        resets:
+          maxItems: 1
+        reset-names:
+          maxItems: 1
 
   - if:
       properties: