ARM Mali Midgard GPU
Schema identifier ($id): "http://devicetree.org/schemas/gpu/arm,mali-midgard.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^gpu@[a-f0-9]+$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t604"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t628"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t720"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"amlogic,meson-gxm-mali","realtek,rtd1295-mali"Item 2
Exact value (
const):"arm,mali-t820"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t624"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3288-mali","samsung,exynos5433-mali"Item 2
Exact value (
const):"arm,mali-t760"
Rule 7
Array item rules (
items)Item 1
Item 2
Exact value (
const):"samsung,exynos5433-mali"Item 3
Exact value (
const):"arm,mali-t760"
Rule 8
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t830"
Rule 9
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t860"
Rule 10
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,mali-t880"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Job interrupt
Item 2
MMU interrupt
Item 3
GPU interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"job"
Item 2
Exact value (
const):"mmu"
Item 3
Exact value (
const):"gpu"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"bus"
mali-supply — not listed as required here #
true — No constraints added by this property rule.
opp-table — not listed as required here #
Value type (type): "object"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
#cooling-cells — not listed as required here #
Exact value (const): 2
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
dynamic-power-coefficient — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
A u32 value that represents the running time dynamic power coefficient in units of uW/MHz/V^2. The coefficient can either be calculated from power measurements or derived by analysis. The dynamic power consumption of the GPU is proportional to the square of the Voltage (V) and the clock frequency (f). The coefficient is used to calculate the dynamic power as below - Pdyn = dynamic-power-coefficient * V^2 * f where voltage is in V, frequency is in MHz.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks"
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)Exact value (
const):"allwinner,sun50i-h6-mali"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"amlogic,meson-gxm-mali"When the condition matches (
then) #Properties and child nodes (
properties)
resets— required hereMinimum number of items (
minItems):2
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpu@ffa30000 {
compatible = "rockchip,rk3288-mali", "arm,mali-t760";
reg = <0xffa30000 0x10000>;
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "job", "mmu", "gpu";
clocks = <&cru 0>;
mali-supply = <&vdd_gpu>;
operating-points-v2 = <&gpu_opp_table>;
power-domains = <&power 0>;
#cooling-cells = <2>;
};
gpu_opp_table: opp-table {
compatible = "operating-points-v2";
opp-533000000 {
opp-hz = /bits/ 64 <533000000>;
opp-microvolt = <1250000>;
};
opp-450000000 {
opp-hz = /bits/ 64 <450000000>;
opp-microvolt = <1150000>;
};
opp-400000000 {
opp-hz = /bits/ 64 <400000000>;
opp-microvolt = <1125000>;
};
opp-350000000 {
opp-hz = /bits/ 64 <350000000>;
opp-microvolt = <1075000>;
};
opp-266000000 {
opp-hz = /bits/ 64 <266000000>;
opp-microvolt = <1025000>;
};
opp-160000000 {
opp-hz = /bits/ 64 <160000000>;
opp-microvolt = <925000>;
};
opp-100000000 {
opp-hz = /bits/ 64 <100000000>;
opp-microvolt = <912500>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only