Skip to content

Commit 598a06a

Browse files
committed
arm64: dts: qcom: sc8280xp: Enable GPU related nodes
Add memory reservation for the zap-shader and enable the Adreno SMMU, GPU clock controller, GMU and the GPU nodes for the SC8280XP CRD and the Lenovo ThinkPad X13s. Tested-by: Steev Klimaszewski <steev@kali.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Tested-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230614142204.2675653-3-quic_bjorande@quicinc.com
1 parent eec51ab commit 598a06a

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/sc8280xp-crd.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@
210210
};
211211

212212
reserved-memory {
213+
gpu_mem: gpu-mem@8bf00000 {
214+
reg = <0 0x8bf00000 0 0x2000>;
215+
no-map;
216+
};
217+
213218
linux,cma {
214219
compatible = "shared-dma-pool";
215220
size = <0x0 0x8000000>;
@@ -390,6 +395,15 @@
390395
status = "okay";
391396
};
392397

398+
&gpu {
399+
status = "okay";
400+
401+
zap-shader {
402+
memory-region = <&gpu_mem>;
403+
firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn";
404+
};
405+
};
406+
393407
&mdss0 {
394408
status = "okay";
395409
};

arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@
264264
};
265265

266266
reserved-memory {
267+
gpu_mem: gpu-mem@8bf00000 {
268+
reg = <0 0x8bf00000 0 0x2000>;
269+
no-map;
270+
};
271+
267272
linux,cma {
268273
compatible = "shared-dma-pool";
269274
size = <0x0 0x8000000>;
@@ -518,6 +523,15 @@
518523
status = "okay";
519524
};
520525

526+
&gpu {
527+
status = "okay";
528+
529+
zap-shader {
530+
memory-region = <&gpu_mem>;
531+
firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn";
532+
};
533+
};
534+
521535
&mdss0 {
522536
status = "okay";
523537
};

0 commit comments

Comments
 (0)