Commit 94d5ffab authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Bjorn Andersson
Browse files

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: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarKonrad Dybcio <konradybcio@kernel.org>
Link: https://lore.kernel.org/r/20240907-rb3g2-fixes-v1-2-eb9da98e9f80@linaro.org


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 6317aad0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -499,6 +499,14 @@ vreg_bob_3p296: bob {
	};
};

&gpu {
	status = "okay";
};

&gpu_zap_shader {
	firmware-name = "qcom/qcm6490/a660_zap.mbn";
};

&mdss {
	status = "okay";
};
+8 −0
Original line number Diff line number Diff line
@@ -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";
+4 −0
Original line number Diff line number Diff line
@@ -56,6 +56,10 @@ &CLUSTER_PD {
	domain-idle-states = <&CLUSTER_SLEEP_0>;
};

&gpu {
	status = "okay";
};

&lpass_aon {
	status = "okay";
};
+2 −0
Original line number Diff line number Diff line
@@ -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>;
			};