arm64: dts: qcom: ipq8074: pass XO and sleep clocks to GCC
authorRobert Marko <robimarko@gmail.com>
Sun, 30 Oct 2022 17:57:03 +0000 (18:57 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 8 Nov 2022 01:26:36 +0000 (19:26 -0600)
Pass XO and sleep clocks to the GCC controller so it does not have to
find them by matching globaly by name.

If not passed directly, driver maintains backwards compatibility by then
falling back to global lookup.

Since we are here, set cell numbers in decimal instead of hex.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221030175703.1103224-3-robimarko@gmail.com
arch/arm64/boot/dts/qcom/ipq8074.dtsi

index d3d9e7e..f7cb1d0 100644 (file)
                gcc: gcc@1800000 {
                        compatible = "qcom,gcc-ipq8074";
                        reg = <0x01800000 0x80000>;
-                       #clock-cells = <0x1>;
+                       clocks = <&xo>, <&sleep_clk>;
+                       clock-names = "xo", "sleep_clk";
+                       #clock-cells = <1>;
                        #power-domain-cells = <1>;
-                       #reset-cells = <0x1>;
+                       #reset-cells = <1>;
                };
 
                tcsr_mutex: hwlock@1905000 {