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
65 $ref: /schemas/types.yaml#/definitions/phandle-array
71 phandles to one or more reserved on-chip SRAM regions.
72 phandle to the On Chip Memory (OCMEM) that's present on some a3xx and
73 a4xx Snapdragon SoCs. See
74 Documentation/devicetree/bindings/sram/qcom,ocmem.yaml
76 operating-points-v2: true
85 additionalProperties: false
87 For a5xx and a6xx devices this node contains a memory-region that
88 points to reserved memory to store the zap shader that can be used to
89 help bring the GPU out of secure mode.
92 $ref: /schemas/types.yaml#/definitions/phandle
96 Default name of the firmware to load to the remote processor.
105 description: efuse registers
109 $ref: /schemas/types.yaml#/definitions/phandle
111 For GMU attached devices a phandle to the GMU device that will
112 control the power for the GPU.
120 additionalProperties: false
127 pattern: '^qcom,adreno-[3-5][0-9][0-9]\.[0-9]$'
139 description: GPU Core clock
141 description: GPU Interface clock
143 description: GPU Memory clock
145 description: GPU Memory Interface clock
146 - const: alt_mem_iface
147 description: GPU Alternative Memory Interface clock
149 description: GPU 3D engine clock
151 description: GPU RBBM Timer for Adreno 5xx series
162 pattern: '^qcom,adreno-6[0-9][0-9]\.[0-9]$'
164 then: # Since Adreno 6xx series clocks should be defined in GMU
174 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
175 #include <dt-bindings/clock/qcom,rpmcc.h>
176 #include <dt-bindings/interrupt-controller/irq.h>
177 #include <dt-bindings/interrupt-controller/arm-gic.h>
180 compatible = "qcom,adreno-330.2", "qcom,adreno";
182 reg = <0xfdb00000 0x10000>;
183 reg-names = "kgsl_3d0_reg_memory";
185 clock-names = "core", "iface", "mem_iface";
186 clocks = <&mmcc OXILI_GFX3D_CLK>,
187 <&mmcc OXILICX_AHB_CLK>,
188 <&mmcc OXILICX_AXI_CLK>;
190 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
191 interrupt-names = "kgsl_3d0_irq";
194 power-domains = <&mmcc OXILICX_GDSC>;
195 operating-points-v2 = <&gpu_opp_table>;
196 iommus = <&gpu_iommu 0>;
197 #cooling-cells = <2>;
201 compatible = "qcom,msm8974-ocmem";
203 reg = <0xfdd00000 0x2000>,
204 <0xfec00000 0x180000>;
205 reg-names = "ctrl", "mem";
207 clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>,
208 <&mmcc OCMEMCX_OCMEMNOC_CLK>;
209 clock-names = "core", "iface";
211 #address-cells = <1>;
213 ranges = <0 0xfec00000 0x100000>;
215 gpu_sram: gpu-sram@0 {
216 reg = <0x0 0x100000>;
221 // Example a6xx (with GMU):
223 #include <dt-bindings/clock/qcom,gpucc-sdm845.h>
224 #include <dt-bindings/clock/qcom,gcc-sdm845.h>
225 #include <dt-bindings/power/qcom-rpmpd.h>
226 #include <dt-bindings/interrupt-controller/irq.h>
227 #include <dt-bindings/interrupt-controller/arm-gic.h>
228 #include <dt-bindings/interconnect/qcom,sdm845.h>
231 #address-cells = <2>;
234 zap_shader_region: gpu@8f200000 {
235 compatible = "shared-dma-pool";
236 reg = <0x0 0x90b00000 0x0 0xa00000>;
242 compatible = "qcom,adreno-630.2", "qcom,adreno";
244 reg = <0x5000000 0x40000>, <0x509e000 0x10>;
245 reg-names = "kgsl_3d0_reg_memory", "cx_mem";
247 #cooling-cells = <2>;
249 interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
251 iommus = <&adreno_smmu 0>;
253 operating-points-v2 = <&gpu_opp_table>;
255 interconnects = <&rsc_hlos MASTER_GFX3D &rsc_hlos SLAVE_EBI1>;
256 interconnect-names = "gfx-mem";
260 gpu_opp_table: opp-table {
261 compatible = "operating-points-v2";
264 opp-hz = /bits/ 64 <430000000>;
265 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
266 opp-peak-kBps = <5412000>;
270 opp-hz = /bits/ 64 <355000000>;
271 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
272 opp-peak-kBps = <3072000>;
276 opp-hz = /bits/ 64 <267000000>;
277 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
278 opp-peak-kBps = <3072000>;
282 opp-hz = /bits/ 64 <180000000>;
283 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
284 opp-peak-kBps = <1804000>;
289 memory-region = <&zap_shader_region>;
290 firmware-name = "/*(DEBLOBBED)*/";