arm64: dts: qcom: sm8150: Use defines for power domain indices
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 15 Nov 2022 13:09:36 +0000 (14:09 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Dec 2022 17:05:30 +0000 (11:05 -0600)
Use the defines from qcom-rpmpd.h instead of bare numbers for
readability.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221115130936.6830-2-konrad.dybcio@linaro.org
arch/arm64/boot/dts/qcom/sm8150.dtsi

index fc89fe4..a0c57fb 100644 (file)
                        clocks = <&rpmhcc RPMH_CXO_CLK>;
                        clock-names = "xo";
 
-                       power-domains = <&rpmhpd 3>,
-                                       <&rpmhpd 2>;
+                       power-domains = <&rpmhpd SM8150_LCX>,
+                                       <&rpmhpd SM8150_LMX>;
                        power-domain-names = "lcx", "lmx";
 
                        memory-region = <&slpi_mem>;
                        clocks = <&rpmhcc RPMH_CXO_CLK>;
                        clock-names = "xo";
 
-                       power-domains = <&rpmhpd 7>,
-                                       <&rpmhpd 0>;
+                       power-domains = <&rpmhpd SM8150_CX>,
+                                       <&rpmhpd SM8150_MSS>;
                        power-domain-names = "cx", "mss";
 
                        memory-region = <&mpss_mem>;
                        clocks = <&rpmhcc RPMH_CXO_CLK>;
                        clock-names = "xo";
 
-                       power-domains = <&rpmhpd 7>;
+                       power-domains = <&rpmhpd SM8150_CX>;
 
                        memory-region = <&cdsp_mem>;
 
                        clocks = <&rpmhcc RPMH_CXO_CLK>;
                        clock-names = "xo";
 
-                       power-domains = <&rpmhpd 7>;
+                       power-domains = <&rpmhpd SM8150_CX>;
 
                        memory-region = <&adsp_mem>;