Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: msm8974: add gpu support

Add support for the a3xx GPU. opp_table is chosen to include lower
frequencies common to all different msm8974 variants.

Signed-off-by: Brian Masney <masneyb@onstation.org>
[iskren.chernev@gmail.com: change after v1]
Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Link: https://lore.kernel.org/r/20210201105657.1642825-1-iskren.chernev@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Brian Masney and committed by
Bjorn Andersson
fe079442 e14775aa

+48
+43
arch/arm/boot/dts/qcom-msm8974.dtsi
··· 1399 1399 <&rpmcc RPM_SMD_CNOC_A_CLK>; 1400 1400 }; 1401 1401 1402 + gpu: adreno@fdb00000 { 1403 + status = "disabled"; 1404 + 1405 + compatible = "qcom,adreno-330.1", 1406 + "qcom,adreno"; 1407 + reg = <0xfdb00000 0x10000>; 1408 + reg-names = "kgsl_3d0_reg_memory"; 1409 + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; 1410 + interrupt-names = "kgsl_3d0_irq"; 1411 + clock-names = "core", 1412 + "iface", 1413 + "mem_iface"; 1414 + clocks = <&mmcc OXILI_GFX3D_CLK>, 1415 + <&mmcc OXILICX_AHB_CLK>, 1416 + <&mmcc OXILICX_AXI_CLK>; 1417 + sram = <&gmu_sram>; 1418 + power-domains = <&mmcc OXILICX_GDSC>; 1419 + operating-points-v2 = <&gpu_opp_table>; 1420 + 1421 + interconnects = <&mmssnoc MNOC_MAS_GRAPHICS_3D &bimc BIMC_SLV_EBI_CH0>, 1422 + <&ocmemnoc OCMEM_VNOC_MAS_GFX3D &ocmemnoc OCMEM_SLV_OCMEM>; 1423 + interconnect-names = "gfx-mem", 1424 + "ocmem"; 1425 + 1426 + // iommus = <&gpu_iommu 0>; 1427 + 1428 + gpu_opp_table: opp_table { 1429 + compatible = "operating-points-v2"; 1430 + 1431 + opp-320000000 { 1432 + opp-hz = /bits/ 64 <320000000>; 1433 + }; 1434 + 1435 + opp-200000000 { 1436 + opp-hz = /bits/ 64 <200000000>; 1437 + }; 1438 + 1439 + opp-27000000 { 1440 + opp-hz = /bits/ 64 <27000000>; 1441 + }; 1442 + }; 1443 + }; 1444 + 1402 1445 mdss: mdss@fd900000 { 1403 1446 status = "disabled"; 1404 1447
+5
arch/arm/boot/dts/qcom-msm8974pro.dtsi
··· 14 14 clock-controller@fc400000 { 15 15 compatible = "qcom,gcc-msm8974pro"; 16 16 }; 17 + 18 + adreno@fdb00000 { 19 + compatible = "qcom,adreno-330.2", 20 + "qcom,adreno"; 21 + }; 17 22 }; 18 23 };