1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
5 $id: "http://devicetree.org/schemas/display/msm/gpu.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: Devicetree bindings for the Adreno or Snapdragon GPUs
11 - Rob Clark <robdclark@gmail.com>
17 The driver is parsing the compat string for Adreno to
18 figure out the gpu-id and patch level.
20 - pattern: '^qcom,adreno-[3-6][0-9][0-9]\.[0-9]$'
23 The driver is parsing the compat string for Imageon to
24 figure out the gpu-id and patch level.
26 - pattern: '^amd,imageon-200\.[0-1]$'
40 - const: kgsl_3d0_reg_memory
64 $ref: /schemas/types.yaml#/definitions/phandle-array
70 phandles to one or more reserved on-chip SRAM regions.
71 phandle to the On Chip Memory (OCMEM) that's present on some a3xx and
72 a4xx Snapdragon SoCs. See
73 Documentation/devicetree/bindings/sram/qcom,ocmem.yaml
75 operating-points-v2: true
85 For a5xx and a6xx devices this node contains a memory-region that
86 points to reserved memory to store the zap shader that can be used to
87 help bring the GPU out of secure mode.
90 $ref: /schemas/types.yaml#/definitions/phandle
94 Default name of the firmware to load to the remote processor.
103 description: efuse registers
107 $ref: /schemas/types.yaml#/definitions/phandle
109 For GMU attached devices a phandle to the GMU device that will
110 control the power for the GPU.
118 additionalProperties: false
125 pattern: '^qcom,adreno-[3-5][0-9][0-9]\.[0-9]$'
137 description: GPU Core clock
139 description: GPU Interface clock
141 description: GPU Memory clock
143 description: GPU Memory Interface clock
144 - const: alt_mem_iface
145 description: GPU Alternative Memory Interface clock
147 description: GPU 3D engine clock
149 description: GPU RBBM Timer for Adreno 5xx series
160 pattern: '^qcom,adreno-6[0-9][0-9]\.[0-9]$'
162 then: # Since Adreno 6xx series clocks should be defined in GMU
172 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
173 #include <dt-bindings/clock/qcom,rpmcc.h>
174 #include <dt-bindings/interrupt-controller/irq.h>
175 #include <dt-bindings/interrupt-controller/arm-gic.h>
178 compatible = "qcom,adreno-330.2", "qcom,adreno";
180 reg = <0xfdb00000 0x10000>;
181 reg-names = "kgsl_3d0_reg_memory";
183 clock-names = "core", "iface", "mem_iface";
184 clocks = <&mmcc OXILI_GFX3D_CLK>,
185 <&mmcc OXILICX_AHB_CLK>,
186 <&mmcc OXILICX_AXI_CLK>;
188 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
189 interrupt-names = "kgsl_3d0_irq";
192 power-domains = <&mmcc OXILICX_GDSC>;
193 operating-points-v2 = <&gpu_opp_table>;
194 iommus = <&gpu_iommu 0>;
195 #cooling-cells = <2>;
199 compatible = "qcom,msm8974-ocmem";
201 reg = <0xfdd00000 0x2000>,
202 <0xfec00000 0x180000>;
203 reg-names = "ctrl", "mem";
205 clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>,
206 <&mmcc OCMEMCX_OCMEMNOC_CLK>;
207 clock-names = "core", "iface";
209 #address-cells = <1>;
211 ranges = <0 0xfec00000 0x100000>;
213 gpu_sram: gpu-sram@0 {
214 reg = <0x0 0x100000>;
219 // Example a6xx (with GMU):
221 #include <dt-bindings/clock/qcom,gpucc-sdm845.h>
222 #include <dt-bindings/clock/qcom,gcc-sdm845.h>
223 #include <dt-bindings/power/qcom-rpmpd.h>
224 #include <dt-bindings/interrupt-controller/irq.h>
225 #include <dt-bindings/interrupt-controller/arm-gic.h>
226 #include <dt-bindings/interconnect/qcom,sdm845.h>
229 #address-cells = <2>;
232 zap_shader_region: gpu@8f200000 {
233 compatible = "shared-dma-pool";
234 reg = <0x0 0x90b00000 0x0 0xa00000>;
240 compatible = "qcom,adreno-630.2", "qcom,adreno";
242 reg = <0x5000000 0x40000>, <0x509e000 0x10>;
243 reg-names = "kgsl_3d0_reg_memory", "cx_mem";
245 #cooling-cells = <2>;
247 interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
249 iommus = <&adreno_smmu 0>;
251 operating-points-v2 = <&gpu_opp_table>;
253 interconnects = <&rsc_hlos MASTER_GFX3D &rsc_hlos SLAVE_EBI1>;
254 interconnect-names = "gfx-mem";
258 gpu_opp_table: opp-table {
259 compatible = "operating-points-v2";
262 opp-hz = /bits/ 64 <430000000>;
263 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
264 opp-peak-kBps = <5412000>;
268 opp-hz = /bits/ 64 <355000000>;
269 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
270 opp-peak-kBps = <3072000>;
274 opp-hz = /bits/ 64 <267000000>;
275 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
276 opp-peak-kBps = <3072000>;
280 opp-hz = /bits/ 64 <180000000>;
281 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
282 opp-peak-kBps = <1804000>;
287 memory-region = <&zap_shader_region>;
288 firmware-name = "/*(DEBLOBBED)*/";