]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: clock: qcom,gcc: sort out power-domains support
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 29 May 2024 14:47:00 +0000 (17:47 +0300)
committerBjorn Andersson <andersson@kernel.org>
Fri, 31 May 2024 23:07:30 +0000 (18:07 -0500)
On some of Qualcomm platforms the Global Clock Controller (GCC) doesn't
provide power domains. Move requirement for the '#power-domain-cells'
out of the common qcom,gcc.yaml into individual schema files. For the
platforms that do not provide power-domains, explicitly forbid having
the '#power-domain-cells' property.

Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240529-qcom-gdscs-v2-2-69c63d0ae1e7@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
46 files changed:
Documentation/devicetree/bindings/clock/qcom,gcc-apq8064.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-apq8084.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-ipq4019.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-ipq6018.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-mdm9607.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8660.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8909.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8916.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8953.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8974.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8976.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8994.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8996.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8998.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-qcm2290.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-qcs404.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sc7280.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sc8280xp.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sdm660.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sdx65.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm6115.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm6125.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm6350.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm8150.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm8350.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm8450.yaml
Documentation/devicetree/bindings/clock/qcom,gcc.yaml
Documentation/devicetree/bindings/clock/qcom,ipq5018-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,ipq9574-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,qdu1000-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sa8775p-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sdx75-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sm4450-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sm6375-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sm7150-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sm8550-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,sm8650-gcc.yaml
Documentation/devicetree/bindings/clock/qcom,x1e80100-gcc.yaml

index 19211176ee0bf3fe68d2d37339be8f65d2c3715c..27df7e3e5bf36a3499ed565eef8026d94f7a9d6c 100644 (file)
@@ -69,6 +69,8 @@ properties:
     const: 1
     deprecated: true
 
+  '#power-domain-cells': false
+
 required:
   - compatible
 
@@ -81,7 +83,6 @@ examples:
       reg = <0x00900000 0x4000>;
       #clock-cells = <1>;
       #reset-cells = <1>;
-      #power-domain-cells = <1>;
 
       thermal-sensor {
         compatible = "qcom,msm8960-tsens";
index d84608269080229dae946b0106a0844f1305c4ac..0a0a26d9beab1824c4440fd8e9bebe0303e6d6de 100644 (file)
@@ -51,6 +51,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 unevaluatedProperties: false
 
index fb3957d485f9aef62ed8eeeaa4518cf39d40fea9..012048921f92e43a78a2606fe63594a36932a947 100644 (file)
@@ -34,6 +34,8 @@ properties:
       - const: xo
       - const: sleep_clk
 
+  '#power-domain-cells': false
+
 required:
   - compatible
 
@@ -45,7 +47,6 @@ examples:
       compatible = "qcom,gcc-ipq4019";
       reg = <0x1800000 0x60000>;
       #clock-cells = <1>;
-      #power-domain-cells = <1>;
       #reset-cells = <1>;
       clocks = <&xo>, <&sleep_clk>;
       clock-names = "xo", "sleep_clk";
index af5d883cfdc86b93454ba80f3f4607888a52ebd8..4d2614d4f368647e411c4fba935c71d2a0f40dd4 100644 (file)
@@ -36,6 +36,8 @@ properties:
       - const: xo
       - const: sleep_clk
 
+  '#power-domain-cells': false
+
 required:
   - compatible
   - clocks
@@ -51,7 +53,6 @@ examples:
       clocks = <&xo>, <&sleep_clk>;
       clock-names = "xo", "sleep_clk";
       #clock-cells = <1>;
-      #power-domain-cells = <1>;
       #reset-cells = <1>;
     };
 ...
index 93f3084b97c125a136f3008ce3baab4a32bbc11b..a71557395c014d82323c62bf5f13e05e7ac15aa2 100644 (file)
@@ -46,6 +46,8 @@ properties:
     allOf:
       - $ref: /schemas/thermal/qcom-tsens.yaml#
 
+  '#power-domain-cells': false
+
 required:
   - compatible
   - clocks
@@ -65,7 +67,6 @@ examples:
       clock-names = "pxo", "cxo", "pll4";
       #clock-cells = <1>;
       #reset-cells = <1>;
-      #power-domain-cells = <1>;
 
       tsens: thermal-sensor {
         compatible = "qcom,ipq8064-tsens";
index 2d44ddc45aabb22e5a3166d1504e0a1e96037c1b..38b9e42839004158deed1f8eacba4ddf660edfb9 100644 (file)
@@ -39,6 +39,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 unevaluatedProperties: false
 
index 1264f3d55761663c9359d6a4a8f8e3b44f453c39..d7da30b0e7ee6564eb6493c79a25598d0f93d18a 100644 (file)
@@ -27,6 +27,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 unevaluatedProperties: false
 
index c9e9855486213f1ecbc89308f855f98d1398bf8f..e03b6d0acdb6e042dc5852b463cdb045c303f52e 100644 (file)
@@ -34,6 +34,8 @@ properties:
       - const: pxo
       - const: cxo
 
+  '#power-domain-cells': false
+
 required:
   - compatible
 
@@ -47,7 +49,6 @@ examples:
       reg = <0x900000 0x4000>;
       #clock-cells = <1>;
       #reset-cells = <1>;
-      #power-domain-cells = <1>;
       clocks = <&pxo_board>, <&cxo_board>;
       clock-names = "pxo", "cxo";
     };
index b91462587df50ee1e8d53c35319ecaf29dacc3e3..ce1f5a60bd8c9dfe60a791881868337d3e1723df 100644 (file)
@@ -42,6 +42,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index ad84c0f7680be123a7e9e165a0e8198a70f9ccd5..258b6b93deca772172ead546cc390c1ac67d08f2 100644 (file)
@@ -48,6 +48,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index fe9fd4cb185f11bd8a5fb2e23855fbb25d2c9c8c..fe1f5f3ed992453a347062a556b1ddb2a011db6f 100644 (file)
@@ -42,6 +42,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 1927aecc86bc4f90527208e50841ea0a44e97768..929fafc84c195500d8007b785153ef92580f21de 100644 (file)
@@ -41,6 +41,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 unevaluatedProperties: false
 
index 62d6f1fe1228a60c161dde34853313e3115a8f38..cd49704dcb95a99a91eab2018465fccc571d77ee 100644 (file)
@@ -49,6 +49,7 @@ required:
   - clocks
   - clock-names
   - vdd_gfx-supply
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 8f0f20c1442ad3134135c32017dcb58d7ff7a0fe..6b9c1d198b14d04c8999c0f6abb4ac36dae0e5d4 100644 (file)
@@ -35,6 +35,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 97523cc1ecfbf1eb16d62a4534c92ac793ce79da..013fd074a8d56f384561a885569253ea134a9c9d 100644 (file)
@@ -50,6 +50,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 58f7fb22c5c4d9ca3003cd1dd3559b4fe090ab8f..abae658c0ed959bf05c752967da76446d8562de4 100644 (file)
@@ -38,6 +38,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index c9bec4656f6ebf8ae7536ad6e21a5deb1869ac3d..38c4c8c61b3af6478960c79128421930fa51c9c1 100644 (file)
@@ -33,6 +33,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 7bc6c57e4d11d4929c12e687cd24ba73b522873e..94755465c1fb42a472e0cc80221b4fe7318b70e1 100644 (file)
@@ -40,6 +40,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 7aae21a766908f69e50555ab1fd17ade4df6d8a5..1847bbeaa9d1852379bb9ff8168121e70ef50ea7 100644 (file)
@@ -40,6 +40,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index c4ca08d9ad5afe5ba3dcdd8d7893992b4096d6a6..4e4f68b9f6d2802774030d652a26ce14e053aa4d 100644 (file)
@@ -51,6 +51,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index a1085ef4fd05ad30d66a28855e82daf8a843485c..b4784ecaf58d2f1c360c2e94cef681b26c308b2c 100644 (file)
@@ -40,6 +40,7 @@ required:
   - clocks
   - clock-names
   - power-domains
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 5681e535feded0e5b561bd05b28a0b4cd5cd846a..5cfde8a4de4e9a1275d53a0bc7aa0f01f47f304e 100644 (file)
@@ -65,6 +65,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 52e7412aace51332e85682307d8432494d368c4b..724ce0491118a0c5aadfe0922efcb227d29ddb6b 100644 (file)
@@ -40,6 +40,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 unevaluatedProperties: false
 
index 0595da0e8a424d4d3e2c531e7c82f5195fb235ca..ef0a20456e8a5a8a9a9dcb6af29766d99a283656 100644 (file)
@@ -35,6 +35,7 @@ properties:
 
 required:
   - compatible
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 428e954d7638495e2cf771ac3c780f8cb5ec080f..30819f3d85c621ac8326b706d76cd888fb907d2d 100644 (file)
@@ -34,6 +34,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 523e18d7f1506ce758d884516568819a70a067bc..9154492286685f9b9ec7a6cb1ab1577888809adb 100644 (file)
@@ -39,6 +39,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index a5ad0a3da3979c4f41d2fcc3a9f4e92bc17ae3e2..ecb69c707f09b858a3e0c5936d34581077fe478c 100644 (file)
@@ -33,6 +33,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 8e37623788bddfc9faa8d5fb78a3839ea19f9754..a5a29dc75ae11b99681708a6cee6bca9c32bba4c 100644 (file)
@@ -33,6 +33,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index d1b26ab48eaff915ee25b7eee2ab2f8d5ec1218c..2280b859b2ad6392e7d4912bf76731b665aa58e4 100644 (file)
@@ -35,6 +35,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 58ccb7df847cc329d52f5e86d2612db9ac9ae7e7..1dcf97c0c064ed56cb249846a0d6f7b032cb3d2f 100644 (file)
@@ -34,6 +34,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 5d77c092be5b062ed2b0f0b4739bd371ec8de961..979ff0a8bf6868068c11dd15db764c6708489d86 100644 (file)
@@ -36,6 +36,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index b4fdde71ef18db1d0284d118bfcc027ab16d1ce8..594e87f5ba092af66ca029fdb399db48fe14875d 100644 (file)
@@ -55,6 +55,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 75259f468d54043f712ad03bcaf6153bfcb09fa1..d848361beeb32b498b061703a37da940a438e98c 100644 (file)
@@ -49,6 +49,7 @@ required:
   - compatible
   - clocks
   - clock-names
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 788825105f24d51ed87ea301b88f9922ff01e7fa..513d6fd892494db889d3924b21775229304447df 100644 (file)
@@ -35,7 +35,6 @@ required:
   - reg
   - '#clock-cells'
   - '#reset-cells'
-  - '#power-domain-cells'
 
 additionalProperties: true
 
index ef84a0c95f7ee1a6cdf444213550d4e7dda711f7..489d0fc5607c0a6bfb952c69adfd2123b8bdf93c 100644 (file)
@@ -33,6 +33,8 @@ properties:
       - description: UNIPHY RX clock source
       - description: UNIPHY TX clk source
 
+  '#power-domain-cells': false
+
 required:
   - compatible
   - clocks
@@ -58,6 +60,5 @@ examples:
                <&uniphy_tx_clk>;
       #clock-cells = <1>;
       #reset-cells = <1>;
-      #power-domain-cells = <1>;
     };
 ...
index 718fe0625424e055e9bfc848ecbbc51b875ab18b..adc30d84fa8f0b7e5835b293fb178db89e84c55a 100644 (file)
@@ -30,6 +30,8 @@ properties:
       - description: PCIE 2lane x1 PHY pipe clock source (For second lane)
       - description: USB PCIE wrapper pipe clock source
 
+  '#power-domain-cells': false
+
 required:
   - compatible
   - clocks
@@ -47,7 +49,6 @@ examples:
                <&pcie_2lane_phy_pipe_clk_x1>,
                <&usb_pcie_wrapper_pipe_clk>;
       #clock-cells = <1>;
-      #power-domain-cells = <1>;
       #reset-cells = <1>;
     };
 ...
index 944a0ea79cd6b5243d11190d2c1629372f03b789..ec349e27948027115759e15bcba6d22fcb89c425 100644 (file)
@@ -33,6 +33,8 @@ properties:
       - description: PCIE30 PHY3 pipe clock source
       - description: USB3 PHY pipe clock source
 
+  '#power-domain-cells': false
+
 required:
   - compatible
   - clocks
@@ -57,6 +59,5 @@ examples:
                <&usb3phy_0_cc_pipe_clk>;
       #clock-cells = <1>;
       #reset-cells = <1>;
-      #power-domain-cells = <1>;
     };
 ...
index d712b1a87e25f4aefe84ea5cd11c1ab23815408f..86befef0265061b849f6633ccf82b0f438b324b2 100644 (file)
@@ -31,6 +31,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 0f641c235b138b0b628f55e7fa214403274365c7..addbd323fa6d7650f57866650bda655f3077bd8d 100644 (file)
@@ -46,6 +46,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 98921fa236b18e54aa6f0a8655dac896e0939e40..567182aba30060ed018d512a4b0ae0aca0ee4ed2 100644 (file)
@@ -41,6 +41,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 5953c8d9243677b440e977b7b3c59df7738f2e17..0ac92d7871e12b70115a3830ce9545f0fc6b287a 100644 (file)
@@ -32,6 +32,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 295d4bb1a9664eeb3c127ad48fe5dd133cb91020..147b75a21508f1e6431c816b4f1d0827dc612a0b 100644 (file)
@@ -31,6 +31,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 unevaluatedProperties: false
 
index 0eb76d9d51c4d5b9c6ff06a00744d20854adbc63..4d7bbbf4ce8affb29f3bc3c825162c644f701f35 100644 (file)
@@ -30,6 +30,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 0c706de31cf11c35fef4edb597bb8d0622ff948d..d83b64dcce4faa91b0fabb2e7ed3e595e59ac2ed 100644 (file)
@@ -34,6 +34,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index b54761cc8674b332d92cf993ec417c86866dadb4..976f29cce809c4a42393b202090813e2e39cf010 100644 (file)
@@ -35,6 +35,7 @@ properties:
 required:
   - compatible
   - clocks
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#
index 14a796dbf8bc6254f81c416b4e39f23ef7f4dfe8..5951a60ab0815e4f8d7b67f4c17b5e504d65092b 100644 (file)
@@ -41,6 +41,7 @@ required:
   - compatible
   - clocks
   - power-domains
+  - '#power-domain-cells'
 
 allOf:
   - $ref: qcom,gcc.yaml#