arm64: dts: qcom: sc8280xp: Enable GPU related nodes
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 14 Jun 2023 14:22:04 +0000 (07:22 -0700)
committerBjorn Andersson <andersson@kernel.org>
Wed, 14 Jun 2023 15:58:37 +0000 (08:58 -0700)
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
arch/arm64/boot/dts/qcom/sc8280xp-crd.dts
arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts

index cd7e009..b566e40 100644 (file)
        };
 
        reserved-memory {
+               gpu_mem: gpu-mem@8bf00000 {
+                       reg = <0 0x8bf00000 0 0x2000>;
+                       no-map;
+               };
+
                linux,cma {
                        compatible = "shared-dma-pool";
                        size = <0x0 0x8000000>;
        status = "okay";
 };
 
+&gpu {
+       status = "okay";
+
+       zap-shader {
+               memory-region = <&gpu_mem>;
+               firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn";
+       };
+};
+
 &mdss0 {
        status = "okay";
 };
index 5ae057a..7cc3028 100644 (file)
        };
 
        reserved-memory {
+               gpu_mem: gpu-mem@8bf00000 {
+                       reg = <0 0x8bf00000 0 0x2000>;
+                       no-map;
+               };
+
                linux,cma {
                        compatible = "shared-dma-pool";
                        size = <0x0 0x8000000>;
        status = "okay";
 };
 
+&gpu {
+       status = "okay";
+
+       zap-shader {
+               memory-region = <&gpu_mem>;
+               firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn";
+       };
+};
+
 &mdss0 {
        status = "okay";
 };