]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm6150: move standard clocks to SoC dtsi
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sat, 16 Aug 2025 14:00:20 +0000 (17:00 +0300)
committerBjorn Andersson <andersson@kernel.org>
Sun, 24 Aug 2025 01:48:33 +0000 (20:48 -0500)
Follow the example of all other platforms and reference standard clocks
(XO, sleep) from the SoC DT even if they are defined in the board DT
file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250816-qcs615-move-clocks-v1-1-bc5665d6e1c3@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs615-ride.dts
arch/arm64/boot/dts/qcom/sm6150.dtsi

index 59582d3dc4c49828ef4a0d22a1cbaba715c7ce8c..e663343df75d59481786192cde647017a83c4191 100644 (file)
        };
 };
 
-&gcc {
-       clocks = <&rpmhcc RPMH_CXO_CLK>,
-                <&rpmhcc RPMH_CXO_CLK_A>,
-                <&sleep_clk>;
-};
-
 &pcie {
        perst-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
        wake-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
 
-&rpmhcc {
-       clocks = <&xo_board_clk>;
-};
-
 &tlmm {
        bt_en_state: bt-en-state {
                pins = "gpio85";
 
        status = "okay";
 };
-
-&watchdog {
-       clocks = <&sleep_clk>;
-};
index b66bc13c0b5e337bf9a95b4da4af33b691c14fb5..69e013a17c9f9556f2cc504afefeb6b5f62e3325 100644 (file)
                gcc: clock-controller@100000 {
                        compatible = "qcom,qcs615-gcc";
                        reg = <0 0x00100000 0 0x1f0000>;
+                       clocks = <&rpmhcc RPMH_CXO_CLK>,
+                                <&rpmhcc RPMH_CXO_CLK_A>,
+                                <&sleep_clk>;
 
                        #clock-cells = <1>;
                        #reset-cells = <1>;
                        compatible = "qcom,apss-wdt-qcs615", "qcom,kpss-wdt";
                        reg = <0x0 0x17c10000 0x0 0x1000>;
                        interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&sleep_clk>;
                };
 
                timer@17c20000 {
 
                        rpmhcc: clock-controller {
                                compatible = "qcom,qcs615-rpmh-clk";
+                               clocks = <&xo_board_clk>;
                                clock-names = "xo";
 
                                #clock-cells = <1>;