ARM Mali Valhall GPU

Schema identifier ($id): "http://devicetree.org/schemas/gpu/arm,mali-valhall-csf.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Liviu Dudau <liviu.dudau@arm.com>", "Boris Brezillon <boris.brezillon@collabora.com>"

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

Allowed values (enum): "mediatek,mt8196-mali", "nxp,imx95-mali", "rockchip,rk3588-mali"

Item 2

Exact value (const): "arm,mali-valhall-csf"

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): 3

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

Allowed values (enum): "coregroup", "stacks"

Item 3

Exact value (const): "stacks"

nvmem-cells — not listed as required here #

Array item rules (items) #

Item 1

bitmask of functional shader cores

nvmem-cell-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "shader-present"

mali-supply — not listed as required here #

true — No constraints added by this property rule.

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"

power-domains — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

power-domain-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

sram-supply — not listed as required here #

true — No constraints added by this property rule.

#cooling-cells — not listed as required here #

Exact value (const): 2

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.

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

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 here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3588-mali"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

nvmem-cells — not listed as required here

false — Not permitted by this property rule.

nvmem-cell-names — not listed as required here

false — Not permitted by this property rule.

power-domains — not listed as required here

Maximum number of items (maxItems): 1

power-domain-names — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "mali-supply"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt8196-mali"

When the condition matches (then) #

Properties and child nodes (properties)

mali-supply — not listed as required here

false — Not permitted by this property rule.

sram-supply — not listed as required here

false — Not permitted by this property rule.

operating-points-v2 — not listed as required here

false — Not permitted by this property rule.

power-domains — required here

Maximum number of items (maxItems): 1

power-domain-names — not listed as required here

false — Not permitted by this property rule.

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "stacks"

Required in this object (required): "nvmem-cells", "nvmem-cell-names", "power-domains"

Examples (examples) #

#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3588-power.h>

gpu: gpu@fb000000 {
    compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf";
    reg = <0xfb000000 0x200000>;
    interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH 0>;
    interrupt-names = "job", "mmu", "gpu";
    clock-names = "core", "coregroup", "stacks";
    clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>,
             <&cru CLK_GPU_STACKS>;
    power-domains = <&power RK3588_PD_GPU>;
    operating-points-v2 = <&gpu_opp_table>;
    mali-supply = <&vdd_gpu_s0>;
    sram-supply = <&vdd_gpu_mem_s0>;

    gpu_opp_table: opp-table {
        compatible = "operating-points-v2";
        opp-300000000 {
            opp-hz = /bits/ 64 <300000000>;
            opp-microvolt = <675000 675000 850000>;
        };
        opp-400000000 {
            opp-hz = /bits/ 64 <400000000>;
            opp-microvolt = <675000 675000 850000>;
        };
    };
};
gpu@48000000 {
    compatible = "mediatek,mt8196-mali", "arm,mali-valhall-csf";
    reg = <0x48000000 0x480000>;
    clocks = <&gpufreq 0>, <&gpufreq 1>;
    clock-names = "core", "stacks";
    interrupts = <GIC_SPI 606 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 605 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH 0>;
    interrupt-names = "job", "mmu", "gpu";
    nvmem-cells = <&shader_present>;
    nvmem-cell-names = "shader-present";
    power-domains = <&gpufreq>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 22: G310

Line 24: Mali Valhall GPU model/revision is fully discoverable

Edit this page