All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] arm64: dts: qcom: msm8996: Disable ADSP and add power domains
@ 2021-05-06 21:18 Yassine Oudjana
  0 siblings, 0 replies; only message in thread
From: Yassine Oudjana @ 2021-05-06 21:18 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Ohad Ben-Cohen,
	Mathieu Poirier, linux-arm-msm, linux-remoteproc, devicetree
  Cc: Yassine Oudjana, Manivannan Sadhasivam, Konrad Dybcio,
	linux-kernel, ~postmarketos/upstreaming

Disable ADSP by default and enable it in devices that use it.
Also add CX power domain.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
---
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 4 ++++
 arch/arm64/boot/dts/qcom/msm8996.dtsi        | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index defcbd15edf9..409a5dec2615 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -162,6 +162,10 @@ bluetooth {
 	};
 };
 
+&adsp_pil {
+	status = "okay";
+};
+
 &blsp2_i2c0 {
 	/* On High speed expansion */
 	label = "HS-I2C2";
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi
index ce430ba9c118..7e647843f7c7 100644
--- a/arch/arm64/boot/dts/qcom/msm8996.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi
@@ -6,6 +6,7 @@
 #include <dt-bindings/clock/qcom,gcc-msm8996.h>
 #include <dt-bindings/clock/qcom,mmcc-msm8996.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
+#include <dt-bindings/power/qcom-rpmpd.h>
 #include <dt-bindings/soc/qcom,apr.h>
 
 / {
@@ -2067,6 +2068,11 @@ adsp_pil: remoteproc@9300000 {
 			qcom,smem-states = <&smp2p_adsp_out 0>;
 			qcom,smem-state-names = "stop";
 
+			power-domains = <&rpmpd MSM8996_VDDCX>;
+			power-domain-names = "cx";
+
+			status = "disabled";
+
 			smd-edge {
 				interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
 
-- 
2.31.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-06 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 21:18 [PATCH 3/3] arm64: dts: qcom: msm8996: Disable ADSP and add power domains Yassine Oudjana

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.