dt-bindings: PCI: qcom: Correct clocks for SM8150
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 8 Dec 2023 10:51:54 +0000 (11:51 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Fri, 15 Dec 2023 23:48:18 +0000 (23:48 +0000)
PCI node in Qualcomm SM8150 should have exactly 8 clocks, including the
ref clock.

Suggested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/linux-pci/20231208105155.36097-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pci/qcom,pcie.yaml

index ce841ea1578ca0bfd296af781abe747e537cf4d4..9dfb341e4f776f0d7f0ab43165ebbf731ddd84d3 100644 (file)
@@ -555,6 +555,32 @@ allOf:
           contains:
             enum:
               - qcom,pcie-sm8150
+    then:
+      properties:
+        clocks:
+          minItems: 8
+          maxItems: 8
+        clock-names:
+          items:
+            - const: pipe # PIPE clock
+            - const: aux # Auxiliary clock
+            - const: cfg # Configuration clock
+            - const: bus_master # Master AXI clock
+            - const: bus_slave # Slave AXI clock
+            - const: slave_q2a # Slave Q2A clock
+            - const: tbu # PCIe TBU clock
+            - const: ref # REFERENCE clock
+        resets:
+          maxItems: 1
+        reset-names:
+          items:
+            - const: pci # PCIe core reset
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
               - qcom,pcie-sm8250
     then:
       oneOf: