Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916: Use power domains for MSS/WCNSS remoteprocs
Browse files Browse the repository at this point in the history
[ Upstream commit 809f299 ]

So far we have been making proxy votes for the remote processors
through the regulator interface. Now that we have rpmpd it's better
to vote for performance states through the power domain interface.

This also allows us to move these supplies back to msm8916.dtsi
because the device tree binding for RPMPD is independent of the
underlying regulator/PMIC.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200916104135.25085-10-stephan@gerhold.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
stephan-gh authored and Sasha Levin committed Aug 13, 2022
1 parent 2b96ab2 commit a76ec99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/arm64/boot/dts/qcom/msm8916-pm8916.dtsi
Expand Up @@ -17,13 +17,10 @@
};

&mpss {
cx-supply = <&pm8916_s1>;
mx-supply = <&pm8916_l3>;
pll-supply = <&pm8916_l7>;
};

&pronto {
vddmx-supply = <&pm8916_l3>;
vddpx-supply = <&pm8916_l7>;

iris {
Expand Down
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916.dtsi
Expand Up @@ -8,6 +8,7 @@
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/interconnect/qcom,msm8916.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>
#include <dt-bindings/reset/qcom,gcc-msm8916.h>
#include <dt-bindings/thermal/thermal.h>

Expand Down Expand Up @@ -1263,6 +1264,10 @@
interrupt-names = "wdog", "fatal", "ready",
"handover", "stop-ack";

power-domains = <&rpmpd MSM8916_VDDCX>,
<&rpmpd MSM8916_VDDMX>;
power-domain-names = "cx", "mx";

clocks = <&gcc GCC_MSS_CFG_AHB_CLK>,
<&gcc GCC_MSS_Q6_BIMC_AXI_CLK>,
<&gcc GCC_BOOT_ROM_AHB_CLK>,
Expand Down Expand Up @@ -1666,6 +1671,10 @@
<&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";

power-domains = <&rpmpd MSM8916_VDDCX>,
<&rpmpd MSM8916_VDDMX>;
power-domain-names = "cx", "mx";

qcom,state = <&wcnss_smp2p_out 0>;
qcom,state-names = "stop";

Expand Down

0 comments on commit a76ec99

Please sign in to comment.