2013-12-15 21:23:05 +00:00
|
|
|
Qualcomm adreno/snapdragon GPU
|
|
|
|
|
|
|
|
Required properties:
|
2018-12-04 15:17:01 +00:00
|
|
|
- compatible: "qcom,adreno-XYZ.W", "qcom,adreno" or
|
|
|
|
"amd,imageon-XYZ.W", "amd,imageon"
|
2017-01-30 16:02:27 +00:00
|
|
|
for example: "qcom,adreno-306.0", "qcom,adreno"
|
|
|
|
Note that you need to list the less specific "qcom,adreno" (since this
|
|
|
|
is what the device is matched on), in addition to the more specific
|
|
|
|
with the chip-id.
|
2018-12-04 15:17:01 +00:00
|
|
|
If "amd,imageon" is used, there should be no top level msm device.
|
2013-12-15 21:23:05 +00:00
|
|
|
- reg: Physical base address and length of the controller's registers.
|
|
|
|
- interrupts: The interrupt signal from the gpu.
|
2018-12-18 18:32:40 +00:00
|
|
|
- clocks: device clocks (if applicable)
|
2013-12-15 21:23:05 +00:00
|
|
|
See ../clocks/clock-bindings.txt for details.
|
2018-12-18 18:32:40 +00:00
|
|
|
- clock-names: the following clocks are required by a3xx, a4xx and a5xx
|
|
|
|
cores:
|
2017-01-30 16:30:58 +00:00
|
|
|
* "core"
|
|
|
|
* "iface"
|
|
|
|
* "mem_iface"
|
2018-12-18 18:32:40 +00:00
|
|
|
For GMU attached devices the GPU clocks are not used and are not required. The
|
|
|
|
following devices should not list clocks:
|
|
|
|
- qcom,adreno-630.2
|
|
|
|
- iommus: optional phandle to an adreno iommu instance
|
|
|
|
- operating-points-v2: optional phandle to the OPP operating points
|
|
|
|
- qcom,gmu: For GMU attached devices a phandle to the GMU device that will
|
|
|
|
control the power for the GPU. Applicable targets:
|
|
|
|
- qcom,adreno-630.2
|
2013-12-15 21:23:05 +00:00
|
|
|
|
2018-12-18 18:32:40 +00:00
|
|
|
Example 3xx/4xx/a5xx:
|
2013-12-15 21:23:05 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
...
|
|
|
|
|
|
|
|
gpu: qcom,kgsl-3d0@4300000 {
|
2017-01-30 16:02:27 +00:00
|
|
|
compatible = "qcom,adreno-320.2", "qcom,adreno";
|
2013-12-15 21:23:05 +00:00
|
|
|
reg = <0x04300000 0x20000>;
|
|
|
|
reg-names = "kgsl_3d0_reg_memory";
|
|
|
|
interrupts = <GIC_SPI 80 0>;
|
|
|
|
clock-names =
|
2017-01-30 16:30:58 +00:00
|
|
|
"core",
|
|
|
|
"iface",
|
|
|
|
"mem_iface";
|
2013-12-15 21:23:05 +00:00
|
|
|
clocks =
|
|
|
|
<&mmcc GFX3D_CLK>,
|
|
|
|
<&mmcc GFX3D_AHB_CLK>,
|
|
|
|
<&mmcc MMSS_IMEM_AHB_CLK>;
|
|
|
|
};
|
|
|
|
};
|
2018-12-18 18:32:40 +00:00
|
|
|
|
|
|
|
Example a6xx (with GMU):
|
|
|
|
|
|
|
|
/ {
|
|
|
|
...
|
|
|
|
|
|
|
|
gpu@5000000 {
|
|
|
|
compatible = "qcom,adreno-630.2", "qcom,adreno";
|
|
|
|
#stream-id-cells = <16>;
|
|
|
|
|
|
|
|
reg = <0x5000000 0x40000>, <0x509e000 0x10>;
|
|
|
|
reg-names = "kgsl_3d0_reg_memory", "cx_mem";
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Look ma, no clocks! The GPU clocks and power are
|
|
|
|
* controlled entirely by the GMU
|
|
|
|
*/
|
|
|
|
|
|
|
|
interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
|
|
|
|
iommus = <&adreno_smmu 0>;
|
|
|
|
|
|
|
|
operating-points-v2 = <&gpu_opp_table>;
|
|
|
|
|
|
|
|
qcom,gmu = <&gmu>;
|
|
|
|
};
|
|
|
|
};
|