arm64: dts: qcom: sc7280: don't enable GPU on unsupported devices

On SC7280 and derivative platforms GPU by default requires a signed
binary, a660_zap.mbn. Disable GPU by default and enable it only when
the binary is actually available (QCM6490-IDP, RB3gen2). ChromeOS
devices do not use TrustZone, so GPU can be enabled by default in
sc7280-chrome-common.dtsi. FairPhone5 and SHIFTphone8 DTS already
enable GPU (even though it wasn't required beforehand).

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konradybcio@kernel.org>
Link: https://lore.kernel.org/r/20240907-rb3g2-fixes-v1-2-eb9da98e9f80@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Dmitry Baryshkov 2024-09-07 15:51:25 +03:00 committed by Bjorn Andersson
parent 6317aad0e1
commit 94d5ffab9d
4 changed files with 22 additions and 0 deletions

View File

@ -499,6 +499,14 @@ vreg_bob_3p296: bob {
};
};
&gpu {
status = "okay";
};
&gpu_zap_shader {
firmware-name = "qcom/qcm6490/a660_zap.mbn";
};
&mdss {
status = "okay";
};

View File

@ -557,6 +557,14 @@ &gpi_dma1 {
status = "okay";
};
&gpu {
status = "okay";
};
&gpu_zap_shader {
firmware-name = "qcom/qcs6490/a660_zap.mbn";
};
&i2c0 {
clock-frequency = <400000>;
status = "okay";

View File

@ -56,6 +56,10 @@ &CLUSTER_PD {
domain-idle-states = <&CLUSTER_SLEEP_0>;
};
&gpu {
status = "okay";
};
&lpass_aon {
status = "okay";
};

View File

@ -2823,6 +2823,8 @@ gpu: gpu@3d00000 {
nvmem-cells = <&gpu_speed_bin>;
nvmem-cell-names = "speed_bin";
status = "disabled";
gpu_zap_shader: zap-shader {
memory-region = <&gpu_zap_mem>;
};