GMU attached to certain Adreno GPUs
Schema identifier ($id): "http://devicetree.org/schemas/display/msm/gmu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Clark <robdclark@gmail.com>"
These bindings describe the Graphics Management Unit (GMU) that is attached to members of the Adreno A6xx GPU family. The GMU provides on-device power management and support to improve power efficiency and reduce the load on the CPU.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
String pattern (
pattern):"^qcom,adreno-gmu-[6-8][0-9][0-9]\\.[0-9]$"Item 2
Exact value (
const):"qcom,adreno-gmu"
Rule 2
Array item rules (
items)Item 1
String pattern (
pattern):"^qcom,adreno-gmu-x[1-9][0-9][0-9]\\.[0-9]$"Item 2
Exact value (
const):"qcom,adreno-gmu"
Rule 3
Exact value (
const):"qcom,adreno-gmu-wrapper"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
reg-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clocks — not listed as required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 7
clock-names — not listed as required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 7
interrupts — not listed as required here #
Array item rules (items) #
Item 1
GMU HFI interrupt
Item 2
GMU interrupt
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hfi"
Item 2
Exact value (
const):"gmu"
power-domains — required here #
Array item rules (items) #
Item 1
CX power domain
Item 2
GX power domain
power-domain-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cx"
Item 2
Exact value (
const):"gx"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
qcom,qmp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Reference to the AOSS side-channel message RAM
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
opp-table — not listed as required here #
Value type (type): "object"
Required in this object (required): "compatible", "reg", "reg-names", "power-domains", "power-domain-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,adreno-gmu-618.0","qcom,adreno-gmu-630.2"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
Item 2
GMU PDC registers
Item 3
GMU PDC sequence registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"gmu_pdc"Item 3
Exact value (
const):"gmu_pdc_seq"
clocks— not listed as required hereArray item rules (
items)Item 1
GMU clock
Item 2
GPU CX clock
Item 3
GPU AXI clock
Item 4
GPU MEMNOC clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"cxo"Item 3
Exact value (
const):"axi"Item 4
Exact value (
const):"memnoc"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
Item 2
Resource controller registers
Item 3
GMU PDC registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"rscc"Item 3
Exact value (
const):"gmu_pdc"
clocks— not listed as required hereArray item rules (
items)Item 1
GMU clock
Item 2
GPU CX clock
Item 3
GPU AXI clock
Item 4
GPU MEMNOC clock
Item 5
GPU AHB clock
Item 6
GPU HUB CX clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"cxo"Item 3
Exact value (
const):"axi"Item 4
Exact value (
const):"memnoc"Item 5
Exact value (
const):"ahb"Item 6
Exact value (
const):"hub"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,adreno-gmu-635.0","qcom,adreno-gmu-660.1","qcom,adreno-gmu-663.0"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
Item 2
Resource controller registers
Item 3
GMU PDC registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"rscc"Item 3
Exact value (
const):"gmu_pdc"
clocks— not listed as required hereArray item rules (
items)Item 1
GMU clock
Item 2
GPU CX clock
Item 3
GPU AXI clock
Item 4
GPU MEMNOC clock
Item 5
GPU AHB clock
Item 6
GPU HUB CX clock
Item 7
GPU SMMU vote clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"cxo"Item 3
Exact value (
const):"axi"Item 4
Exact value (
const):"memnoc"Item 5
Exact value (
const):"ahb"Item 6
Exact value (
const):"hub"Item 7
Exact value (
const):"smmu_vote"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
Item 2
GMU PDC registers
Item 3
GMU PDC sequence registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"gmu_pdc"Item 3
Exact value (
const):"gmu_pdc_seq"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
Item 2
Resource controller registers
Item 3
GMU PDC registers
Item 4
GMU PDC sequence registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"rscc"Item 3
Exact value (
const):"gmu_pdc"Item 4
Exact value (
const):"gmu_pdc_seq"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,adreno-gmu-640.1","qcom,adreno-gmu-650.2"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
GPU AHB clock
Item 2
GMU clock
Item 3
GPU CX clock
Item 4
GPU AXI clock
Item 5
GPU MEMNOC clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ahb"Item 2
Exact value (
const):"gmu"Item 3
Exact value (
const):"cxo"Item 4
Exact value (
const):"axi"Item 5
Exact value (
const):"memnoc"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,adreno-gmu-730.1","qcom,adreno-gmu-740.1","qcom,adreno-gmu-750.1","qcom,adreno-gmu-x185.1"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
Item 2
Resource controller registers
Item 3
GMU PDC registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"Item 2
Exact value (
const):"rscc"Item 3
Exact value (
const):"gmu_pdc"
clocks— not listed as required hereArray item rules (
items)Item 1
GPU AHB clock
Item 2
GMU clock
Item 3
GPU CX clock
Item 4
GPU AXI clock
Item 5
GPU MEMNOC clock
Item 6
GMU HUB clock
Item 7
GPUSS DEMET clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ahb"Item 2
Exact value (
const):"gmu"Item 3
Exact value (
const):"cxo"Item 4
Exact value (
const):"axi"Item 5
Exact value (
const):"memnoc"Item 6
Exact value (
const):"hub"Item 7
Exact value (
const):"demet"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,adreno-gmu-840.1"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"
clocks— not listed as required hereArray item rules (
items)Item 1
GPU AHB clock
Item 2
GMU clock
Item 3
GPU CX clock
Item 4
GPU MEMNOC clock
Item 5
GMU HUB clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ahb"Item 2
Exact value (
const):"gmu"Item 3
Exact value (
const):"cxo"Item 4
Exact value (
const):"memnoc"Item 5
Exact value (
const):"hub"
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,adreno-gmu-x285.1"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Core GMU registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"
clocks— not listed as required hereArray item rules (
items)Item 1
GPU AHB clock
Item 2
GMU clock
Item 3
GPU CX clock
Item 4
GPU MEMNOC clock
Item 5
GMU HUB clock
Item 6
GMU RSCC HUB clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ahb"Item 2
Exact value (
const):"gmu"Item 3
Exact value (
const):"cxo"Item 4
Exact value (
const):"memnoc"Item 5
Exact value (
const):"hub"Item 6
Exact value (
const):"rscc"
Rule 10 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,adreno-gmu-wrapper"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
GMU wrapper register space
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gmu"When the condition does not match (
else) #Required in this object (
required):"clocks","clock-names","interrupts","interrupt-names","iommus","operating-points-v2"
Examples (examples) #
#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gmu: gmu@506a000 {
compatible = "qcom,adreno-gmu-630.2", "qcom,adreno-gmu";
reg = <0x506a000 0x30000>,
<0xb280000 0x10000>,
<0xb480000 0x10000>;
reg-names = "gmu", "gmu_pdc", "gmu_pdc_seq";
clocks = <&gpucc GPU_CC_CX_GMU_CLK>,
<&gpucc GPU_CC_CXO_CLK>,
<&gcc GCC_DDRSS_GPU_AXI_CLK>,
<&gcc GCC_GPU_MEMNOC_GFX_CLK>;
clock-names = "gmu", "cxo", "axi", "memnoc";
interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "hfi", "gmu";
power-domains = <&gpucc GPU_CX_GDSC>,
<&gpucc GPU_GX_GDSC>;
power-domain-names = "cx", "gx";
iommus = <&adreno_smmu 5>;
operating-points-v2 = <&gmu_opp_table>;
};
gmu_wrapper: gmu@596a000 {
compatible = "qcom,adreno-gmu-wrapper";
reg = <0x0596a000 0x30000>;
reg-names = "gmu";
power-domains = <&gpucc GPU_CX_GDSC>,
<&gpucc GPU_GX_GDSC>;
power-domain-names = "cx", "gx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 2: Copyright 2019-2020, The Linux Foundation, All Rights Reserved