Commit 7f761609 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sdm845: Disable Adreno, modem and Venus by default

Components that rely on proprietary (not to mention signed!) firmware should
not be enabled by default, as lack of the aforementioned firmware could cause
various issues, from random errors to straight-up failing to boot.

Re-enable these remote processors on boards that didn't previously explicitly
disable them.
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Tested-By: default avatarSteev Klimaszewski <steev@kali.org>
[bjorn: Added missing changes to db845c and lenovo-yoga-c630 to the patch]
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211002001358.45920-3-konrad.dybcio@somainline.org
parent d87e9a4d
...@@ -616,6 +616,14 @@ touchscreen@10 { ...@@ -616,6 +616,14 @@ touchscreen@10 {
}; };
}; };
&gmu {
status = "okay";
};
&gpu {
status = "okay";
};
&ipa { &ipa {
status = "okay"; status = "okay";
modem-init; modem-init;
...@@ -643,6 +651,8 @@ &adreno_smmu { ...@@ -643,6 +651,8 @@ &adreno_smmu {
}; };
&mss_pil { &mss_pil {
status = "okay";
iommus = <&apps_smmu 0x781 0x0>, iommus = <&apps_smmu 0x781 0x0>,
<&apps_smmu 0x724 0x3>; <&apps_smmu 0x724 0x3>;
}; };
...@@ -1317,6 +1327,8 @@ config { ...@@ -1317,6 +1327,8 @@ config {
}; };
&venus { &venus {
status = "okay";
video-firmware { video-firmware {
iommus = <&apps_smmu 0x10b2 0x0>; iommus = <&apps_smmu 0x10b2 0x0>;
}; };
......
...@@ -420,7 +420,12 @@ &gcc { ...@@ -420,7 +420,12 @@ &gcc {
<GCC_LPASS_SWAY_CLK>; <GCC_LPASS_SWAY_CLK>;
}; };
&gmu {
status = "okay";
};
&gpu { &gpu {
status = "okay";
zap-shader { zap-shader {
memory-region = <&gpu_mem>; memory-region = <&gpu_mem>;
firmware-name = "qcom/sdm845/a630_zap.mbn"; firmware-name = "qcom/sdm845/a630_zap.mbn";
...@@ -999,6 +1004,10 @@ &ufs_mem_phy { ...@@ -999,6 +1004,10 @@ &ufs_mem_phy {
vdda-pll-supply = <&vreg_l26a_1p2>; vdda-pll-supply = <&vreg_l26a_1p2>;
}; };
&venus {
status = "okay";
};
&wcd9340{ &wcd9340{
pinctrl-0 = <&wcd_intr_default>; pinctrl-0 = <&wcd_intr_default>;
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -439,7 +439,13 @@ &gcc { ...@@ -439,7 +439,13 @@ &gcc {
<GCC_LPASS_SWAY_CLK>; <GCC_LPASS_SWAY_CLK>;
}; };
&gmu {
status = "okay";
};
&gpu { &gpu {
status = "okay";
zap-shader { zap-shader {
memory-region = <&gpu_mem>; memory-region = <&gpu_mem>;
firmware-name = "qcom/sdm845/a630_zap.mbn"; firmware-name = "qcom/sdm845/a630_zap.mbn";
...@@ -566,6 +572,10 @@ &usb_2_qmpphy { ...@@ -566,6 +572,10 @@ &usb_2_qmpphy {
vdda-pll-supply = <&vdda_usb2_ss_core>; vdda-pll-supply = <&vdda_usb2_ss_core>;
}; };
&venus {
status = "okay";
};
&wifi { &wifi {
status = "okay"; status = "okay";
vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
......
...@@ -368,7 +368,13 @@ &gcc { ...@@ -368,7 +368,13 @@ &gcc {
<GCC_LPASS_SWAY_CLK>; <GCC_LPASS_SWAY_CLK>;
}; };
&gmu {
status = "okay";
};
&gpu { &gpu {
status = "okay";
zap-shader { zap-shader {
memory-region = <&gpu_mem>; memory-region = <&gpu_mem>;
firmware-name = "qcom/sdm845/oneplus6/a630_zap.mbn"; firmware-name = "qcom/sdm845/oneplus6/a630_zap.mbn";
...@@ -647,6 +653,10 @@ mux { ...@@ -647,6 +653,10 @@ mux {
}; };
}; };
&venus {
status = "okay";
};
&wifi { &wifi {
status = "okay"; status = "okay";
vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
......
...@@ -257,7 +257,13 @@ &gcc { ...@@ -257,7 +257,13 @@ &gcc {
<GCC_LPASS_SWAY_CLK>; <GCC_LPASS_SWAY_CLK>;
}; };
&gmu {
status = "okay";
};
&gpu { &gpu {
status = "okay";
zap-shader { zap-shader {
memory-region = <&gpu_mem>; memory-region = <&gpu_mem>;
firmware-name = "qcom/sdm845/a630_zap.mbn"; firmware-name = "qcom/sdm845/a630_zap.mbn";
...@@ -514,6 +520,10 @@ &usb_1_qmpphy { ...@@ -514,6 +520,10 @@ &usb_1_qmpphy {
vdda-pll-supply = <&vreg_l1a_0p875>; vdda-pll-supply = <&vreg_l1a_0p875>;
}; };
&venus {
status = "okay";
};
&wcd9340{ &wcd9340{
pinctrl-0 = <&wcd_intr_default>; pinctrl-0 = <&wcd_intr_default>;
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -2995,6 +2995,8 @@ mss_pil: remoteproc@4080000 { ...@@ -2995,6 +2995,8 @@ mss_pil: remoteproc@4080000 {
<&rpmhpd SDM845_MSS>; <&rpmhpd SDM845_MSS>;
power-domain-names = "cx", "mx", "mss"; power-domain-names = "cx", "mx", "mss";
status = "disabled";
mba { mba {
memory-region = <&mba_region>; memory-region = <&mba_region>;
}; };
...@@ -3889,6 +3891,8 @@ venus: video-codec@aa00000 { ...@@ -3889,6 +3891,8 @@ venus: video-codec@aa00000 {
<&gladiator_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_VENUS_CFG 0>; <&gladiator_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_VENUS_CFG 0>;
interconnect-names = "video-mem", "cpu-cfg"; interconnect-names = "video-mem", "cpu-cfg";
status = "disabled";
video-core0 { video-core0 {
compatible = "venus-decoder"; compatible = "venus-decoder";
}; };
...@@ -4423,6 +4427,8 @@ gpu: gpu@5000000 { ...@@ -4423,6 +4427,8 @@ gpu: gpu@5000000 {
interconnects = <&mem_noc MASTER_GFX3D 0 &mem_noc SLAVE_EBI1 0>; interconnects = <&mem_noc MASTER_GFX3D 0 &mem_noc SLAVE_EBI1 0>;
interconnect-names = "gfx-mem"; interconnect-names = "gfx-mem";
status = "disabled";
gpu_opp_table: opp-table { gpu_opp_table: opp-table {
compatible = "operating-points-v2"; compatible = "operating-points-v2";
...@@ -4518,6 +4524,8 @@ gmu: gmu@506a000 { ...@@ -4518,6 +4524,8 @@ gmu: gmu@506a000 {
operating-points-v2 = <&gmu_opp_table>; operating-points-v2 = <&gmu_opp_table>;
status = "disabled";
gmu_opp_table: opp-table { gmu_opp_table: opp-table {
compatible = "operating-points-v2"; compatible = "operating-points-v2";
......
...@@ -311,7 +311,12 @@ &gcc { ...@@ -311,7 +311,12 @@ &gcc {
<GCC_LPASS_SWAY_CLK>; <GCC_LPASS_SWAY_CLK>;
}; };
&gmu {
status = "okay";
};
&gpu { &gpu {
status = "okay";
zap-shader { zap-shader {
memory-region = <&gpu_mem>; memory-region = <&gpu_mem>;
firmware-name = "qcom/LENOVO/81JL/qcdxkmsuc850.mbn"; firmware-name = "qcom/LENOVO/81JL/qcdxkmsuc850.mbn";
...@@ -433,6 +438,7 @@ &mdss_mdp { ...@@ -433,6 +438,7 @@ &mdss_mdp {
}; };
&mss_pil { &mss_pil {
status = "okay";
firmware-name = "qcom/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/LENOVO/81JL/qcdsp2850.mbn"; firmware-name = "qcom/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/LENOVO/81JL/qcdsp2850.mbn";
}; };
...@@ -694,6 +700,10 @@ &usb_2_qmpphy { ...@@ -694,6 +700,10 @@ &usb_2_qmpphy {
vdda-pll-supply = <&vdda_usb2_ss_core>; vdda-pll-supply = <&vdda_usb2_ss_core>;
}; };
&venus {
status = "okay";
};
&wcd9340{ &wcd9340{
pinctrl-0 = <&wcd_intr_default>; pinctrl-0 = <&wcd_intr_default>;
pinctrl-names = "default"; pinctrl-names = "default";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment