diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2023-02-07 19:40:52 -0800 |
---|---|---|
committer | Johan Hovold <johan+linaro@kernel.org> | 2023-02-21 16:53:50 +0100 |
commit | 181dfb65d7f20e5822098f8a7cd41fddfcac9949 (patch) | |
tree | 67c3cc3c9a11228f56cbd6cc346c9b94b7ce0fcc | |
parent | c92362fb00947aa6fc69ee4b3aecca74e1b0230f (diff) |
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.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20230208034052.2047681-4-quic_bjorande@quicinc.com
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 26 | ||||
-rw-r--r-- | arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 26 |
2 files changed, 52 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 2692c00ec089..a14fe97ac15f 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -208,6 +208,11 @@ }; reserved-memory { + gpu_mem: gpu-mem@8bf00000 { + reg = <0 0x8bf00000 0 0x2000>; + no-map; + }; + linux,cma { compatible = "shared-dma-pool"; size = <0x0 0x8000000>; @@ -257,6 +262,10 @@ }; }; +&adreno_smmu { + status = "okay"; +}; + &apps_rsc { pmc8280-1-rpmh-regulators { compatible = "qcom,pm8350-rpmh-regulators"; @@ -374,6 +383,23 @@ status = "okay"; }; +&gmu { + status = "okay"; +}; + +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn"; + }; +}; + +&gpucc { + status = "okay"; +}; + &mdss0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 63819cde605f..07599362f941 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -258,6 +258,11 @@ }; reserved-memory { + gpu_mem: gpu-mem@8bf00000 { + reg = <0 0x8bf00000 0 0x2000>; + no-map; + }; + linux,cma { compatible = "shared-dma-pool"; size = <0x0 0x8000000>; @@ -353,6 +358,10 @@ }; }; +&adreno_smmu { + status = "okay"; +}; + &apps_rsc { pmc8280-1-rpmh-regulators { compatible = "qcom,pm8350-rpmh-regulators"; @@ -486,6 +495,23 @@ status = "okay"; }; +&gmu { + status = "okay"; +}; + +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn"; + }; +}; + +&gpucc { + status = "okay"; +}; + &mdss0 { status = "okay"; }; |