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

Configure Feed

Select the types of activity you want to include in your feed.

arm64: dts: qcom: sm6115: Add GPU nodes

Introduce nodes for the A610 GPU and its GMU wrapper along with the
speedbin fuse entry in QFPROM.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230620-topic-gpu_tablet_disp-v2-1-0538ea1beb0b@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Konrad Dybcio and committed by
Bjorn Andersson
11750af2 8882ae07

+103
+103
arch/arm64/boot/dts/qcom/sm6115.dtsi
··· 865 865 reg = <0x25b 0x1>; 866 866 bits = <1 4>; 867 867 }; 868 + 869 + gpu_speed_bin: gpu-speed-bin@6006 { 870 + reg = <0x6006 0x2>; 871 + bits = <5 8>; 872 + }; 868 873 }; 869 874 870 875 rng: rng@1b53000 { ··· 1319 1314 snps,hird-threshold = /bits/ 8 <0x10>; 1320 1315 snps,usb3_lpm_capable; 1321 1316 }; 1317 + }; 1318 + 1319 + gpu: gpu@5900000 { 1320 + compatible = "qcom,adreno-610.0", "qcom,adreno"; 1321 + reg = <0x0 0x05900000 0x0 0x40000>; 1322 + reg-names = "kgsl_3d0_reg_memory"; 1323 + 1324 + /* There's no (real) GMU, so we have to handle quite a bunch of clocks! */ 1325 + clocks = <&gpucc GPU_CC_GX_GFX3D_CLK>, 1326 + <&gpucc GPU_CC_AHB_CLK>, 1327 + <&gcc GCC_BIMC_GPU_AXI_CLK>, 1328 + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, 1329 + <&gpucc GPU_CC_CX_GMU_CLK>, 1330 + <&gpucc GPU_CC_CXO_CLK>; 1331 + clock-names = "core", 1332 + "iface", 1333 + "mem_iface", 1334 + "alt_mem_iface", 1335 + "gmu", 1336 + "xo"; 1337 + 1338 + interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; 1339 + 1340 + iommus = <&adreno_smmu 0 1>; 1341 + operating-points-v2 = <&gpu_opp_table>; 1342 + power-domains = <&rpmpd SM6115_VDDCX>; 1343 + qcom,gmu = <&gmu_wrapper>; 1344 + 1345 + nvmem-cells = <&gpu_speed_bin>; 1346 + nvmem-cell-names = "speed_bin"; 1347 + 1348 + status = "disabled"; 1349 + 1350 + zap-shader { 1351 + memory-region = <&pil_gpu_mem>; 1352 + }; 1353 + 1354 + gpu_opp_table: opp-table { 1355 + compatible = "operating-points-v2"; 1356 + 1357 + opp-320000000 { 1358 + opp-hz = /bits/ 64 <320000000>; 1359 + required-opps = <&rpmpd_opp_low_svs>; 1360 + opp-supported-hw = <0x1f>; 1361 + }; 1362 + 1363 + opp-465000000 { 1364 + opp-hz = /bits/ 64 <465000000>; 1365 + required-opps = <&rpmpd_opp_svs>; 1366 + opp-supported-hw = <0x1f>; 1367 + }; 1368 + 1369 + opp-600000000 { 1370 + opp-hz = /bits/ 64 <600000000>; 1371 + required-opps = <&rpmpd_opp_svs_plus>; 1372 + opp-supported-hw = <0x1f>; 1373 + }; 1374 + 1375 + opp-745000000 { 1376 + opp-hz = /bits/ 64 <745000000>; 1377 + required-opps = <&rpmpd_opp_nom>; 1378 + opp-supported-hw = <0xf>; 1379 + }; 1380 + 1381 + opp-820000000 { 1382 + opp-hz = /bits/ 64 <820000000>; 1383 + required-opps = <&rpmpd_opp_nom_plus>; 1384 + opp-supported-hw = <0x7>; 1385 + }; 1386 + 1387 + opp-900000000 { 1388 + opp-hz = /bits/ 64 <900000000>; 1389 + required-opps = <&rpmpd_opp_turbo>; 1390 + opp-supported-hw = <0x7>; 1391 + }; 1392 + 1393 + /* Speed bin 2 can reach 950 Mhz instead of 980 like the rest. */ 1394 + opp-950000000 { 1395 + opp-hz = /bits/ 64 <950000000>; 1396 + required-opps = <&rpmpd_opp_turbo_plus>; 1397 + opp-supported-hw = <0x4>; 1398 + }; 1399 + 1400 + opp-980000000 { 1401 + opp-hz = /bits/ 64 <980000000>; 1402 + required-opps = <&rpmpd_opp_turbo_plus>; 1403 + opp-supported-hw = <0x3>; 1404 + }; 1405 + }; 1406 + }; 1407 + 1408 + gmu_wrapper: gmu@596a000 { 1409 + compatible = "qcom,adreno-gmu-wrapper"; 1410 + reg = <0x0 0x0596a000 0x0 0x30000>; 1411 + reg-names = "gmu"; 1412 + power-domains = <&gpucc GPU_CX_GDSC>, 1413 + <&gpucc GPU_GX_GDSC>; 1414 + power-domain-names = "cx", "gx"; 1322 1415 }; 1323 1416 1324 1417 gpucc: clock-controller@5990000 {