Commit fe079442 authored by Brian Masney's avatar Brian Masney Committed by Bjorn Andersson

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: default avatarBrian Masney <masneyb@onstation.org>
[iskren.chernev@gmail.com: change after v1]
Signed-off-by: default avatarIskren Chernev <iskren.chernev@gmail.com>
Link: https://lore.kernel.org/r/20210201105657.1642825-1-iskren.chernev@gmail.comSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent e14775aa
......@@ -1399,6 +1399,49 @@ cnoc: interconnect@fc480000 {
<&rpmcc RPM_SMD_CNOC_A_CLK>;
};
gpu: adreno@fdb00000 {
status = "disabled";
compatible = "qcom,adreno-330.1",
"qcom,adreno";
reg = <0xfdb00000 0x10000>;
reg-names = "kgsl_3d0_reg_memory";
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "kgsl_3d0_irq";
clock-names = "core",
"iface",
"mem_iface";
clocks = <&mmcc OXILI_GFX3D_CLK>,
<&mmcc OXILICX_AHB_CLK>,
<&mmcc OXILICX_AXI_CLK>;
sram = <&gmu_sram>;
power-domains = <&mmcc OXILICX_GDSC>;
operating-points-v2 = <&gpu_opp_table>;
interconnects = <&mmssnoc MNOC_MAS_GRAPHICS_3D &bimc BIMC_SLV_EBI_CH0>,
<&ocmemnoc OCMEM_VNOC_MAS_GFX3D &ocmemnoc OCMEM_SLV_OCMEM>;
interconnect-names = "gfx-mem",
"ocmem";
// iommus = <&gpu_iommu 0>;
gpu_opp_table: opp_table {
compatible = "operating-points-v2";
opp-320000000 {
opp-hz = /bits/ 64 <320000000>;
};
opp-200000000 {
opp-hz = /bits/ 64 <200000000>;
};
opp-27000000 {
opp-hz = /bits/ 64 <27000000>;
};
};
};
mdss: mdss@fd900000 {
status = "disabled";
......
......@@ -14,5 +14,10 @@ sdhci@f9824900 {
clock-controller@fc400000 {
compatible = "qcom,gcc-msm8974pro";
};
adreno@fdb00000 {
compatible = "qcom,adreno-330.2",
"qcom,adreno";
};
};
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment