Message ID | 20231127-topic-a7xx_dt-v2-0-2a437588e563@linaro.org |
---|---|
Headers | show |
Series | SM8450 / SM8550 Adreno | expand |
On 04/12/2023 13:55, Konrad Dybcio wrote: > Enable the GPU and provide a path for the ZAP blob. > > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts > index eef811def39b..9fe51d308675 100644 > --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts > +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts > @@ -596,6 +596,14 @@ &gcc { > <&usb_dp_qmpphy QMP_USB43DP_USB3_PIPE_CLK>; > }; > > +&gpu { > + status = "okay"; > + > + zap-shader { > + firmware-name = "qcom/sm8550/a740_zap.mbn"; > + }; > +}; > + > &lpass_tlmm { > spkr_1_sd_n_active: spkr-1-sd-n-active-state { > pins = "gpio17"; > Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
On 04/12/2023 13:55, Konrad Dybcio wrote: > Add the required nodes to support the A740 GPU. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8550.dtsi | 166 +++++++++++++++++++++++++++++++++++ > 1 file changed, 166 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi > index 7bafb3d88d69..8f59085c804d 100644 > --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi > @@ -1984,6 +1984,128 @@ tcsr: clock-controller@1fc0000 { > #reset-cells = <1>; > }; > > + gpu: gpu@3d00000 { > + compatible = "qcom,adreno-43050a01", "qcom,adreno"; > + reg = <0x0 0x03d00000 0x0 0x40000>, > + <0x0 0x03d9e000 0x0 0x1000>, > + <0x0 0x03d61000 0x0 0x800>; > + reg-names = "kgsl_3d0_reg_memory", > + "cx_mem", > + "cx_dbgc"; > + > + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; > + > + iommus = <&adreno_smmu 0 0x0>, > + <&adreno_smmu 1 0x0>; > + > + operating-points-v2 = <&gpu_opp_table>; > + > + qcom,gmu = <&gmu>; > + > + status = "disabled"; > + > + zap-shader { > + memory-region = <&gpu_micro_code_mem>; > + }; > + > + /* Speedbin needs more work on A740+, keep only lower freqs */ > + gpu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-680000000 { > + opp-hz = /bits/ 64 <680000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; > + }; > + > + opp-615000000 { > + opp-hz = /bits/ 64 <615000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L0>; > + }; > + > + opp-550000000 { > + opp-hz = /bits/ 64 <550000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS>; > + }; > + > + opp-475000000 { > + opp-hz = /bits/ 64 <475000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_L1>; > + }; > + > + opp-401000000 { > + opp-hz = /bits/ 64 <401000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; > + }; > + > + opp-348000000 { > + opp-hz = /bits/ 64 <348000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_D0>; > + }; > + > + opp-295000000 { > + opp-hz = /bits/ 64 <295000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_D1>; > + }; > + > + opp-220000000 { > + opp-hz = /bits/ 64 <220000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_D2>; > + }; > + }; > + }; > + > + gmu: gmu@3d6a000 { > + compatible = "qcom,adreno-gmu-740.1", "qcom,adreno-gmu"; > + reg = <0x0 0x03d6a000 0x0 0x35000>, > + <0x0 0x03d50000 0x0 0x10000>, > + <0x0 0x0b280000 0x0 0x10000>; > + reg-names = "gmu", "rscc", "gmu_pdc"; > + > + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "hfi", "gmu"; > + > + clocks = <&gpucc GPU_CC_AHB_CLK>, > + <&gpucc GPU_CC_CX_GMU_CLK>, > + <&gpucc GPU_CC_CXO_CLK>, > + <&gcc GCC_DDRSS_GPU_AXI_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gpucc GPU_CC_HUB_CX_INT_CLK>, > + <&gpucc GPU_CC_DEMET_CLK>; > + clock-names = "ahb", > + "gmu", > + "cxo", > + "axi", > + "memnoc", > + "hub", > + "demet"; > + > + power-domains = <&gpucc GPU_CC_CX_GDSC>, > + <&gpucc GPU_CC_GX_GDSC>; > + power-domain-names = "cx", > + "gx"; > + > + iommus = <&adreno_smmu 5 0x0>; > + > + qcom,qmp = <&aoss_qmp>; > + > + operating-points-v2 = <&gmu_opp_table>; > + > + gmu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-500000000 { > + opp-hz = /bits/ 64 <500000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS>; > + }; > + > + opp-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; > + }; > + }; > + }; > + > gpucc: clock-controller@3d90000 { > compatible = "qcom,sm8550-gpucc"; > reg = <0 0x03d90000 0 0xa000>; > @@ -1995,6 +2117,50 @@ gpucc: clock-controller@3d90000 { > #power-domain-cells = <1>; > }; > > + adreno_smmu: iommu@3da0000 { > + compatible = "qcom,sm8550-smmu-500", "qcom,adreno-smmu", > + "qcom,smmu-500", "arm,mmu-500"; > + reg = <0x0 0x03da0000 0x0 0x40000>; > + #iommu-cells = <2>; > + #global-interrupts = <1>; > + interrupts = <GIC_SPI 673 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 677 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 678 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 679 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 680 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 681 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 682 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 683 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 684 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 685 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 686 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 687 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 476 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 574 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 575 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 576 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 577 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 659 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 661 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 665 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 666 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 668 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 669 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 699 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, > + <&gpucc GPU_CC_AHB_CLK>; > + clock-names = "hlos", > + "bus", > + "iface", > + "ahb"; > + power-domains = <&gpucc GPU_CC_CX_GDSC>; > + dma-coherent; > + }; > + > remoteproc_mpss: remoteproc@4080000 { > compatible = "qcom,sm8550-mpss-pas"; > reg = <0x0 0x04080000 0x0 0x4040>; > Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
On Mon, 04 Dec 2023 13:55:19 +0100, Konrad Dybcio wrote: > Following the merging of related bindings, driver and mesa changes, enable > the GPU on both of these platforms. > > P1 for Will/iommu, rest for qcom > > Applied SMMU bindings change to will (for-joerg/arm-smmu/bindings), thanks! [1/6] dt-bindings: arm-smmu: Document SM8[45]50 GPU SMMU https://git.kernel.org/will/c/4fff78dc2490 Cheers,
On Mon, 04 Dec 2023 13:55:19 +0100, Konrad Dybcio wrote: > Following the merging of related bindings, driver and mesa changes, enable > the GPU on both of these platforms. > > P1 for Will/iommu, rest for qcom > > Applied, thanks! [2/6] arm64: dts: qcom: sm8450: Add GPU nodes commit: 9810647a043678638f3b98ab48ee030bc00c8270 [3/6] arm64: dts: qcom: sm8550: Add GPU nodes commit: ef19923ae103b527e6762a63024dc7f0b1055546 [4/6] arm64: dts: qcom: sm8550-qrd: Enable the A740 GPU commit: c9f785d7d546c3f38c2e0308fa91e27ae7ec3fda [5/6] arm64: dts: qcom: sm8550-mtp: Enable the A740 GPU commit: e877f075a52c485742cfd170f5557fc49972979e [6/6] arm64: dts: qcom: sm8450-hdk: Enable the A730 GPU commit: 0f6f5a220543d1239dc7fc04c9f8f8885fa05637 Best regards,
Following the merging of related bindings, driver and mesa changes, enable the GPU on both of these platforms. P1 for Will/iommu, rest for qcom Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- Changes in v2: - Sort nodes better in 8550dtsi - Fix the 8550 GPU chip ID - Pick up tags - Link to v1: https://lore.kernel.org/r/20231127-topic-a7xx_dt-v1-0-a228b8122ebf@linaro.org --- Konrad Dybcio (6): dt-bindings: arm-smmu: Document SM8[45]50 GPU SMMU arm64: dts: qcom: sm8450: Add GPU nodes arm64: dts: qcom: sm8550: Add GPU nodes arm64: dts: qcom: sm8550-qrd: Enable the A740 GPU arm64: dts: qcom: sm8550-mtp: Enable the A740 GPU arm64: dts: qcom: sm8450-hdk: Enable the A730 GPU .../devicetree/bindings/iommu/arm,smmu.yaml | 48 ++++- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 8 + arch/arm64/boot/dts/qcom/sm8450.dtsi | 202 +++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 8 + arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 8 + arch/arm64/boot/dts/qcom/sm8550.dtsi | 166 +++++++++++++++++ 6 files changed, 438 insertions(+), 2 deletions(-) --- base-commit: 629a3b49f3f957e975253c54846090b8d5ed2e9b change-id: 20231127-topic-a7xx_dt-feee4142edda Best regards,