Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Gpu bindings

Single-page view · as markdown

NVIDIA Tegra NVDEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings / host1x

Schema identifier ($id): "http://devicetree.org/schemas/gpu/host1x/nvidia,tegra210-nvdec.yaml#"

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

NVDEC is the hardware video decoder present on NVIDIA Tegra210 and newer chips. It is located on the Host1x bus and typically programmed through Host1x channels.

Maintainers (maintainers): "Thierry Reding <treding@gmail.com>", "Mikko Perttunen <mperttunen@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^nvdec@[0-9a-f]*$"

compatible — required here #

Allowed values (enum): "nvidia,tegra210-nvdec", "nvidia,tegra186-nvdec", "nvidia,tegra194-nvdec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvdec"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvdec"

power-domains — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Array item rules (items) #

Item 1

DMA read memory client

Item 2

DMA read 2 memory client

Item 3

DMA write memory client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "read-1"

Item 3

Exact value (const): "write"

nvidia,host1x-class — not listed as required here #

Host1x class of the engine, used to specify the targeted engine when programming the engine through Host1x channels or when configuring engine-specific behavior in Host1x.

Default value (default): 240

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/tegra186-mc.h>
#include <dt-bindings/power/tegra186-powergate.h>
#include <dt-bindings/reset/tegra186-reset.h>

nvdec@15480000 {
        compatible = "nvidia,tegra186-nvdec";
        reg = <0x15480000 0x40000>;
        clocks = <&bpmp TEGRA186_CLK_NVDEC>;
        clock-names = "nvdec";
        resets = <&bpmp TEGRA186_RESET_NVDEC>;
        reset-names = "nvdec";

        power-domains = <&bpmp TEGRA186_POWER_DOMAIN_NVDEC>;
        interconnects = <&mc TEGRA186_MEMORY_CLIENT_NVDECSRD &emc>,
                        <&mc TEGRA186_MEMORY_CLIENT_NVDECSRD1 &emc>,
                        <&mc TEGRA186_MEMORY_CLIENT_NVDECSWR &emc>;
        interconnect-names = "dma-mem", "read-1", "write";
        iommus = <&smmu TEGRA186_SID_NVDEC>;
};

Source notes #

Annotations retained from the schema source

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

NVIDIA Tegra NVENC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings / host1x

Schema identifier ($id): "http://devicetree.org/schemas/gpu/host1x/nvidia,tegra210-nvenc.yaml#"

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

NVENC is the hardware video encoder present on NVIDIA Tegra210 and newer chips. It is located on the Host1x bus and typically programmed through Host1x channels.

Maintainers (maintainers): "Thierry Reding <treding@gmail.com>", "Mikko Perttunen <mperttunen@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^nvenc@[0-9a-f]*$"

compatible — required here #

Allowed values (enum): "nvidia,tegra210-nvenc", "nvidia,tegra186-nvenc", "nvidia,tegra194-nvenc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvenc"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvenc"

power-domains — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

interconnect-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

nvidia,host1x-class — not listed as required here #

Host1x class of the engine, used to specify the targeted engine when programming the engine through Host1x channels or when configuring engine-specific behavior in Host1x.

Default value (default): 33

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "nvidia,tegra210-nvenc", "nvidia,tegra186-nvenc"

When the condition matches (then) #

Properties and child nodes (properties)

interconnects — not listed as required here

Array item rules (items)

Item 1

DMA read memory client

Item 2

DMA write memory client

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "nvidia,tegra194-nvenc"

When the condition matches (then) #

Properties and child nodes (properties)

interconnects — not listed as required here

Array item rules (items)

Item 1

DMA read memory client

Item 2

DMA read 2 memory client

Item 3

DMA write memory client

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "read-1"

Item 3

Exact value (const): "write"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/memory/tegra186-mc.h>
#include <dt-bindings/power/tegra186-powergate.h>
#include <dt-bindings/reset/tegra186-reset.h>

nvenc@154c0000 {
        compatible = "nvidia,tegra186-nvenc";
        reg = <0x154c0000 0x40000>;
        clocks = <&bpmp TEGRA186_CLK_NVENC>;
        clock-names = "nvenc";
        resets = <&bpmp TEGRA186_RESET_NVENC>;
        reset-names = "nvenc";

        power-domains = <&bpmp TEGRA186_POWER_DOMAIN_MPE>;
        interconnects = <&mc TEGRA186_MEMORY_CLIENT_NVENCSRD &emc>,
                        <&mc TEGRA186_MEMORY_CLIENT_NVENCSWR &emc>;
        interconnect-names = "dma-mem", "write";
        iommus = <&smmu TEGRA186_SID_NVENC>;
};

Source notes #

Annotations retained from the schema source

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

NVIDIA Tegra NVJPG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings / host1x

Schema identifier ($id): "http://devicetree.org/schemas/gpu/host1x/nvidia,tegra210-nvjpg.yaml#"

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

NVJPG is the hardware JPEG decoder and encoder present on NVIDIA Tegra210 and newer chips. It is located on the Host1x bus and typically programmed through Host1x channels.

Maintainers (maintainers): "Thierry Reding <treding@gmail.com>", "Mikko Perttunen <mperttunen@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^nvjpg@[0-9a-f]*$"

compatible — required here #

Allowed values (enum): "nvidia,tegra210-nvjpg", "nvidia,tegra186-nvjpg", "nvidia,tegra194-nvjpg"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvjpg"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvjpg"

power-domains — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Array item rules (items) #

Item 1

DMA read memory client

Item 2

DMA write memory client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/memory/tegra186-mc.h>
#include <dt-bindings/power/tegra186-powergate.h>
#include <dt-bindings/reset/tegra186-reset.h>

nvjpg@15380000 {
        compatible = "nvidia,tegra186-nvjpg";
        reg = <0x15380000 0x40000>;
        clocks = <&bpmp TEGRA186_CLK_NVJPG>;
        clock-names = "nvjpg";
        resets = <&bpmp TEGRA186_RESET_NVJPG>;
        reset-names = "nvjpg";

        power-domains = <&bpmp TEGRA186_POWER_DOMAIN_NVJPG>;
        interconnects = <&mc TEGRA186_MEMORY_CLIENT_NVJPGSRD &emc>,
                        <&mc TEGRA186_MEMORY_CLIENT_NVJPGSWR &emc>;
        interconnect-names = "dma-mem", "write";
        iommus = <&smmu TEGRA186_SID_NVJPG>;
};

Source notes #

Annotations retained from the schema source

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

NVIDIA Tegra234 NVDEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings / host1x

Schema identifier ($id): "http://devicetree.org/schemas/gpu/host1x/nvidia,tegra234-nvdec.yaml#"

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

NVDEC is the hardware video decoder present on NVIDIA Tegra210 and newer chips. It is located on the Host1x bus and typically programmed through Host1x channels.

Maintainers (maintainers): "Thierry Reding <treding@gmail.com>", "Mikko Perttunen <mperttunen@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^nvdec@[0-9a-f]*$"

compatible — required here #

Allowed values (enum): "nvidia,tegra234-nvdec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvdec"

Item 2

Exact value (const): "fuse"

Item 3

Exact value (const): "tsec_pka"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvdec"

power-domains — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Array item rules (items) #

Item 1

DMA read memory client

Item 2

DMA write memory client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

nvidia,memory-controller — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to the memory controller for determining information for the NVDEC firmware secure carveout. This carveout is configured by the bootloader and not accessible to CPU.

nvidia,bl-manifest-offset — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to bootloader manifest from beginning of firmware that was configured by the bootloader.

nvidia,bl-code-offset — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to bootloader code section from beginning of firmware that was configured by the bootloader.

nvidia,bl-data-offset — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to bootloader data section from beginning of firmware that was configured by the bootloader.

nvidia,os-manifest-offset — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to operating system manifest from beginning of firmware that was configured by the bootloader.

nvidia,os-code-offset — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to operating system code section from beginning of firmware that was configured by the bootloader.

nvidia,os-data-offset — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to operating system data section from beginning of firmware that was configured by the bootloader.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "power-domains", "nvidia,memory-controller", "nvidia,bl-manifest-offset", "nvidia,bl-code-offset", "nvidia,bl-data-offset", "nvidia,os-manifest-offset", "nvidia,os-code-offset", "nvidia,os-data-offset"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra234-clock.h>
#include <dt-bindings/memory/tegra234-mc.h>
#include <dt-bindings/power/tegra234-powergate.h>
#include <dt-bindings/reset/tegra234-reset.h>

nvdec@15480000 {
        compatible = "nvidia,tegra234-nvdec";
        reg = <0x15480000 0x00040000>;
        clocks = <&bpmp TEGRA234_CLK_NVDEC>,
                 <&bpmp TEGRA234_CLK_FUSE>,
                 <&bpmp TEGRA234_CLK_TSEC_PKA>;
        clock-names = "nvdec", "fuse", "tsec_pka";
        resets = <&bpmp TEGRA234_RESET_NVDEC>;
        reset-names = "nvdec";
        power-domains = <&bpmp TEGRA234_POWER_DOMAIN_NVDEC>;
        interconnects = <&mc TEGRA234_MEMORY_CLIENT_NVDECSRD &emc>,
                        <&mc TEGRA234_MEMORY_CLIENT_NVDECSWR &emc>;
        interconnect-names = "dma-mem", "write";
        iommus = <&smmu_niso1 TEGRA234_SID_NVDEC>;
        dma-coherent;

        nvidia,memory-controller = <&mc>;

        /* Placeholder values, to be replaced with values from overlay */
        nvidia,bl-manifest-offset = <0>;
        nvidia,bl-data-offset = <0>;
        nvidia,bl-code-offset = <0>;
        nvidia,os-manifest-offset = <0>;
        nvidia,os-data-offset = <0>;
        nvidia,os-code-offset = <0>;
};

Source notes #

Annotations retained from the schema source

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

Apple SoC GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/apple,agx.yaml#"

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

Maintainers (maintainers): "Sasha Finkelstein <fnkl.kernel@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "apple,agx-g13g", "apple,agx-g13s", "apple,agx-g14g", "apple,agx-g14s"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "apple,agx-g13c", "apple,agx-g13d"

Item 2

Exact value (const): "apple,agx-g13s"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "apple,agx-g14c", "apple,agx-g14d"

Item 2

Exact value (const): "apple,agx-g14s"

reg — required here #

Array item rules (items) #

Item 1

GPU coprocessor control registers

Item 2

GPU block MMIO registers

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "asc"

Item 2

Exact value (const): "sgx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

mboxes — required here #

Maximum number of items (maxItems): 1

memory-region — required here #

Array item rules (items) #

Item 1

Region containing GPU MMU TTBs

Item 2

Region containing GPU MMU page tables

Item 3

Region containing a shared handoff structure for VM management coordination

Item 4

Calibration blob. Mostly power-related configuration

Item 5

Calibration blob. Mostly GPU-related configuration

Item 6

Shared global variables with GPU firmware

memory-region-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ttbs"

Item 2

Exact value (const): "pagetables"

Item 3

Exact value (const): "handoff"

Item 4

Exact value (const): "hw-cal-a"

Item 5

Exact value (const): "hw-cal-b"

Item 6

Exact value (const): "globals"

apple,firmware-abi — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 3

macOS version the current firmware is paired with, used to pick the version of firmware ABI to be used. Bootloader will overwrite this

Required in this object (required): "compatible", "reg", "mboxes", "memory-region", "apple,firmware-abi"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpu@6400000 {
    compatible = "apple,agx-g13g";
    reg = <0x6400000 0x40000>,
          <0x4000000 0x1000000>;
    reg-names = "asc", "sgx";
    mboxes = <&agx_mbox>;
    power-domains = <&ps_gfx>;
    memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>,
                    <&gpu_hw_cal_a>, <&gpu_hw_cal_b>, <&gpu_globals>;
    memory-region-names = "ttbs", "pagetables", "handoff",
                          "hw-cal-a", "hw-cal-b", "globals";

    apple,firmware-abi = <0 0 0>;
};

Source notes #

Annotations retained from the schema source

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

ARM Mali Bifrost GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/arm,mali-bifrost.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

Allowed values (enum): "allwinner,sun50i-h616-mali", "amlogic,meson-g12a-mali", "mediatek,mt8183-mali", "mediatek,mt8183b-mali", "mediatek,mt8186-mali", "mediatek,mt8365-mali", "realtek,rtd1619-mali", "renesas,r9a07g044-mali", "renesas,r9a07g054-mali", "renesas,r9a09g047-mali", "renesas,r9a09g056-mali", "renesas,r9a09g057-mali", "rockchip,px30-mali", "rockchip,rk3562-mali", "rockchip,rk3568-mali", "rockchip,rk3576-mali"

Item 2

Exact value (const): "arm,mali-bifrost"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8195-mali"

Item 2

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

Item 3

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

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun55i-a523-mali", "mediatek,mt8188-mali", "mediatek,mt8192-mali", "mediatek,mt8370-mali"

Item 2

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Job interrupt

Item 2

MMU interrupt

Item 3

GPU interrupt

Item 4

Event interrupt

interrupt-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "job"

Item 2

Exact value (const): "mmu"

Item 3

Exact value (const): "gpu"

Item 4

Exact value (const): "event"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

true — No constraints added by this property rule.

mali-supply — not listed as required here #

true — No constraints added by this property rule.

sram-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.

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

Maximum number of items (maxItems): 5

resets — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reset-names — 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.

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

Array item rules (items) #

Item 1

Exact value (const): "speed-bin"

nvmem-cells — not listed as required here #

Maximum number of items (maxItems): 1

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): "amlogic,meson-g12a-mali"

When the condition matches (then) #

Properties and child nodes (properties)

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): "resets"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a07g044-mali", "renesas,r9a07g054-mali", "renesas,r9a09g047-mali", "renesas,r9a09g056-mali", "renesas,r9a09g057-mali"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 4

interrupt-names — not listed as required here

Minimum number of items (minItems): 4

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "gpu"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "bus_ace"

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.

resets — required here

Minimum number of items (minItems): 3

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "rst"

Item 2

Exact value (const): "axi_rst"

Item 3

Exact value (const): "ace_rst"

Required in this object (required): "clock-names", "power-domains", "resets", "reset-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

power-domain-names — required here

Array item rules (items)

Item 1

Exact value (const): "core0"

Item 2

Exact value (const): "core1"

Item 3

Exact value (const): "core2"

Required in this object (required): "sram-supply", "power-domains", "power-domain-names"

When the condition does not match (else) #

Properties and child nodes (properties)

sram-supply — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt8183b-mali", "mediatek,mt8188-mali"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

power-domain-names — required here

Array item rules (items)

Item 1

Exact value (const): "core0"

Item 2

Exact value (const): "core1"

Item 3

Exact value (const): "core2"

Required in this object (required): "power-domains", "power-domain-names"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt8186-mali", "mediatek,mt8370-mali"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

power-domain-names — required here

Array item rules (items)

Item 1

Exact value (const): "core0"

Item 2

Exact value (const): "core1"

Required in this object (required): "power-domains", "power-domain-names"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Minimum number of items (minItems): 5

power-domain-names — required here

Array item rules (items)

Item 1

Exact value (const): "core0"

Item 2

Exact value (const): "core1"

Item 3

Exact value (const): "core2"

Item 4

Exact value (const): "core3"

Item 5

Exact value (const): "core4"

Required in this object (required): "power-domains", "power-domain-names"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "gpu"

Item 2

Exact value (const): "bus"

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): "clock-names"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

gpu@ffe40000 {
  compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";
  reg = <0xffe40000 0x10000>;
  interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "job", "mmu", "gpu";
  clocks = <&clk 1>;
  mali-supply = <&vdd_gpu>;
  operating-points-v2 = <&gpu_opp_table>;
  resets = <&reset 0>, <&reset 1>;
};

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

Line 36: Mali Bifrost GPU model/revision is fully discoverable

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

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

ARM Mali Midgard GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

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

Allowed values (enum): "samsung,exynos5250-mali"

Item 2

Exact value (const): "arm,mali-t604"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos5420-mali"

Item 2

Exact value (const): "arm,mali-t628"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun50i-h6-mali"

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

Allowed values (enum): "arm,juno-mali"

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

Allowed values (enum): "samsung,exynos7-mali"

Item 2

Exact value (const): "samsung,exynos5433-mali"

Item 3

Exact value (const): "arm,mali-t760"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos7870-mali"

Item 2

Exact value (const): "arm,mali-t830"

Rule 9

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3399-mali"

Item 2

Exact value (const): "arm,mali-t860"

Rule 10

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos8890-mali"

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 here

Rule 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 here

Minimum number of items (minItems): 2

Required in this object (required): "clock-names", "resets"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "amlogic,meson-gxm-mali"

When the condition matches (then) #

Properties and child nodes (properties)

resets — required here

Minimum number of items (minItems): 2

Required in this object (required): "resets"

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

ARM Mali Utgard GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

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

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

Maintainers (maintainers): "Rob Herring <robh@kernel.org>", "Maxime Ripard <mripard@kernel.org>", "Heiko Stuebner <heiko@sntech.de>"

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

Exact value (const): "allwinner,sun8i-a23-mali"

Item 2

Exact value (const): "allwinner,sun7i-a20-mali"

Item 3

Exact value (const): "arm,mali-400"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun4i-a10-mali", "allwinner,sun7i-a20-mali", "allwinner,sun8i-h3-mali", "allwinner,sun8i-r40-mali", "allwinner,sun50i-a64-mali", "rockchip,rk3036-mali", "rockchip,rk3066-mali", "rockchip,rk3128-mali", "rockchip,rk3188-mali", "rockchip,rk3228-mali", "samsung,exynos4210-mali", "st,stih410-mali", "stericsson,db8500-mali", "xlnx,zynqmp-mali"

Item 2

Exact value (const): "arm,mali-400"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun50i-h5-mali", "amlogic,meson8-mali", "amlogic,meson8b-mali", "amlogic,meson-gxbb-mali", "amlogic,meson-gxl-mali", "hisilicon,hi6220-mali", "mediatek,mt7623-mali", "rockchip,rk3328-mali", "rockchip,rk3528-mali"

Item 2

Exact value (const): "arm,mali-450"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 20

interrupt-names — required here #

All of these rules must match (allOf) #

Rule 1

Array items beyond the listed positions (additionalItems)

true

Allowed by this rule.

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 20

Array item rules (items)

Item 1

Exact value (const): "gp"

Item 2

Exact value (const): "gpmmu"

Rule 2

Array item rules (items)

Allowed values (enum): "gp", "gpmmu", "pp", "pp0", "ppmmu0", "pp1", "ppmmu1", "pp2", "ppmmu2", "pp3", "ppmmu3", "pp4", "ppmmu4", "pp5", "ppmmu5", "pp6", "ppmmu6", "pp7", "ppmmu7", "pmu", "combined"

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "core"

memory-region — not listed as required here #

true — No constraints added by this property rule.

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 #

Maximum number of items (maxItems): 1

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

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-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 here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun4i-a10-mali", "allwinner,sun7i-a20-mali", "allwinner,sun8i-r40-mali", "allwinner,sun50i-a64-mali", "allwinner,sun50i-h5-mali", "amlogic,meson8-mali", "amlogic,meson8b-mali", "hisilicon,hi6220-mali", "mediatek,mt7623-mali", "rockchip,rk3036-mali", "rockchip,rk3066-mali", "rockchip,rk3188-mali", "rockchip,rk3228-mali", "rockchip,rk3328-mali", "rockchip,rk3528-mali"

When the condition matches (then) #

Required in this object (required): "resets"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

mali: gpu@1c40000 {
  compatible = "allwinner,sun7i-a20-mali", "arm,mali-400";
  reg = <0x01c40000 0x10000>;
  interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "gp",
        "gpmmu",
        "pp0",
        "ppmmu0",
        "pp1",
        "ppmmu1",
        "pmu";
  clocks = <&ccu 1>, <&ccu 2>;
  clock-names = "bus", "core";
  resets = <&ccu 1>;
  #cooling-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Line 53: "arm,mali-300"

Line 68: At least enforce the first 2 interrupts

Line 72: Not ideal as any order and combination are allowed

Line 74: Geometry Processor interrupt

Line 75: Geometry Processor MMU interrupt

Line 76: Pixel Processor broadcast interrupt (mali-450 only)

Line 77: Pixel Processor X interrupt (X from 0 to 7)

Line 78: Pixel Processor X MMU interrupt (X from 0 to 7)

Line 93: Power Management Unit interrupt (optional)

Line 94: stericsson,db8500-mali only

ARM Mali Valhall GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

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

ASPEED GFX Display Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/aspeed,ast2400-gfx.yaml#"

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

Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "aspeed,ast2400-gfx", "aspeed,ast2500-gfx", "aspeed,ast2600-gfx"

Item 2

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

memory-region — required here #

Maximum number of items (maxItems): 1

a reserved-memory region to use for the framebuffer.

syscon — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to SCU

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "memory-region"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/aspeed-clock.h>

display@1e6e6000 {
    compatible = "aspeed,ast2500-gfx", "syscon";
    reg = <0x1e6e6000 0x1000>;
    clocks = <&syscon ASPEED_CLK_GATE_D1CLK>;
    resets = <&syscon ASPEED_RESET_CRT1>;
    interrupts = <0x19>;
    memory-region = <&gfx_memory>;
};

Source notes #

Annotations retained from the schema source

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

Broadcom V3D GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/brcm,bcm-v3d.yaml#"

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

Maintainers (maintainers): "Maíra Canal <mcanal@igalia.com>", "Nicolas Saenz Julienne <nsaenzjulienne@suse.de>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpu@[a-f0-9]+$"

compatible — required here #

Allowed values (enum): "brcm,2711-v3d", "brcm,2712-v3d", "brcm,7268-v3d", "brcm,7278-v3d"

reg — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

reg-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

interrupts — required here #

Array item rules (items) #

Item 1

hub interrupt (required)

Item 2

core interrupts (if it doesn't share the hub's interrupt)

Minimum number of items (minItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "interrupts"

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): "brcm,2711-v3d"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

hub register

Item 2

core0 register

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hub"

Item 2

Exact value (const): "core0"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,2712-v3d"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

hub register

Item 2

core0 register

Item 3

SMS state manager register

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hub"

Item 2

Exact value (const): "core0"

Item 3

Exact value (const): "sms"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,7268-v3d"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

hub register

Item 2

core0 register

Item 3

GCA cache controller register

Item 4

bridge register

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hub"

Item 2

Exact value (const): "core0"

Item 3

Exact value (const): "gca"

Item 4

Exact value (const): "bridge"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,7278-v3d"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

hub register

Item 2

core0 register

Item 3

bridge register

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hub"

Item 2

Exact value (const): "core0"

Item 3

Exact value (const): "bridge"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpu@f1200000 {
  compatible = "brcm,7268-v3d";
  reg = <0xf1200000 0x4000>,
        <0xf1208000 0x4000>,
        <0xf1204100 0x100>,
        <0xf1204000 0x100>;
  reg-names = "hub", "core0", "gca", "bridge";
  interrupts = <0 78 4>,
               <0 77 4>;
};

Source notes #

Annotations retained from the schema source

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

Imagination Technologies PowerVR and IMG Rogue GPUs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/img,powervr-rogue.yaml#"

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

Maintainers (maintainers): "Frank Binns <frank.binns@imgtec.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a7796-gpu", "renesas,r8a77961-gpu"

Item 2

Exact value (const): "img,img-gx6250"

Item 3

Exact value (const): "img,img-rogue"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a77965-gpu", "renesas,r8a779a0-gpu"

Item 2

Exact value (const): "img,img-ge7800"

Item 3

Exact value (const): "img,img-rogue"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "ti,am62-gpu"

Item 2

Exact value (const): "img,img-axe-1-16m"

Item 3

Exact value (const): "img,img-axe"

Item 4

Exact value (const): "img,img-rogue"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "thead,th1520-gpu"

Item 2

Exact value (const): "img,img-bxm-4-64"

Item 3

Exact value (const): "img,img-rogue"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "ti,am62p-gpu", "ti,j721s2-gpu"

Item 2

Exact value (const): "img,img-bxs-4-64"

Item 3

Exact value (const): "img,img-rogue"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "ti,am62-gpu"

Item 2

Exact value (const): "img,img-axe"

Deprecated (deprecated): true

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "mem"

Item 3

Exact value (const): "sys"

Minimum number of items (minItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

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

Array item rules (items) #

Item 1

Exact value (const): "a"

Item 2

Exact value (const): "b"

Minimum number of items (minItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"

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)

Allowed values (enum): "ti,am62-gpu", "ti,am62p-gpu", "ti,j721s2-gpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "img,img-ge7800", "img,img-gx6250", "thead,th1520-gpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 3

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "img,img-axe-1-16m"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Maximum number of items (maxItems): 1

power-domain-names — required here

Maximum number of items (maxItems): 1

Required in this object (required): "power-domains", "power-domain-names"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "img,img-bxs-4-64", "img,img-ge7800", "img,img-gx6250"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Minimum number of items (minItems): 2

power-domain-names — required here

Minimum number of items (minItems): 2

Required in this object (required): "power-domains", "power-domain-names"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "thead,th1520-gpu"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Array item rules (items)

Item 1

The single, unified power domain for the GPU on the TH1520 SoC, integrating all internal IP power domains.

power-domain-names — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "power-domains"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/ti,sci_pm_domain.h>

gpu@fd00000 {
    compatible = "ti,am62-gpu", "img,img-axe-1-16m", "img,img-axe",
                 "img,img-rogue";
    reg = <0x0fd00000 0x20000>;
    clocks = <&k3_clks 187 0>;
    clock-names = "core";
    interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
    power-domains = <&k3_pds 187 TI_SCI_PD_EXCLUSIVE>;
    power-domain-names = "a";
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (c) 2023 Imagination Technologies Ltd.

Line 32: This deprecated element must be kept around to allow old kernels to

Line 33: work with newer dts.

Line 48: This legacy combination of compatible strings was introduced early on

Line 49: before the more specific GPU identifiers were used.

Imagination Technologies PowerVR SGX GPUs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/img,powervr-sgx.yaml#"

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

Maintainers (maintainers): "Frank Binns <frank.binns@imgtec.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,omap3430-gpu", "ti,omap3630-gpu"

Item 2

Exact value (const): "img,powervr-sgx530"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4780-gpu", "ti,omap4430-gpu"

Item 2

Exact value (const): "img,powervr-sgx540"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun6i-a31-gpu", "ti,omap4470-gpu", "ti,omap5432-gpu", "ti,am5728-gpu", "ti,am6548-gpu"

Item 2

Exact value (const): "img,powervr-sgx544"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as 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

Exact value (const): "mem"

Item 3

Exact value (const): "sys"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

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): "ti,am6548-gpu"

When the condition matches (then) #

Required in this object (required): "power-domains"

When the condition does not match (else) #

Properties and child nodes (properties)

power-domains — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun6i-a31-gpu", "ingenic,jz4780-gpu"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "allwinner,sun6i-a31-gpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ingenic,jz4780-gpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/ti,sci_pm_domain.h>

gpu@7000000 {
    compatible = "ti,am6548-gpu", "img,powervr-sgx544";
    reg = <0x7000000 0x10000>;
    interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
    power-domains = <&k3_pds 65 TI_SCI_PD_EXCLUSIVE>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

gpu: gpu@1c40000 {
    compatible = "allwinner,sun6i-a31-gpu", "img,powervr-sgx544";
    reg = <0x01c40000 0x10000>;
    interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu 1>, <&ccu 2>;
    clock-names = "core", "mem";
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (c) 2023 Imagination Technologies Ltd.

Line 3: Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/

Line 19: Rev 121

Line 20: Rev 125

Line 24: Rev 130

Line 25: Rev 120

Line 29: MP2 Rev 115

Line 30: MP1 Rev 112

Line 31: MP2 Rev 105

Line 32: MP2 Rev 116

Line 33: MP1 Rev 117

NVIDIA Tegra Graphics Processing Units

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/nvidia,gk20a.yaml#"

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

Maintainers (maintainers): "Alexandre Courbot <acourbot@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <treding@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nvidia,gk20a", "nvidia,gm20b", "nvidia,gp10b", "nvidia,gv11b"

reg — required here #

Array item rules (items) #

Item 1

Bar0 register window

Item 2

Bar1 register window

interrupts — required here #

Array item rules (items) #

Item 1

Stall interrupt

Item 2

Nonstall interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "stall"

Item 2

Exact value (const): "nonstall"

vdd-supply — not listed as required here #

Regulator for GPU supply voltage

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

GPU clock

Item 2

Power clock

Item 3

Reference or fuse clock

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "gpu"

Item 2

Exact value (const): "pwr"

Item 3

Allowed values (enum): "ref", "fuse"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "gpu"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

interconnects — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 12

interconnect-names — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 12

iommus — not listed as required here #

Maximum number of items (maxItems): 1

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", "clock-names", "resets", "reset-names"

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)

Allowed values (enum): "nvidia,gp10b", "nvidia,gv11b"

When the condition matches (then) #

Required in this object (required): "power-domains"

When the condition does not match (else) #

Properties and child nodes (properties)

interconnects — not listed as required here

false — Not permitted by this property rule.

interconnect-names — not listed as required here

false — Not permitted by this property rule.

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,gp10b"

When the condition matches (then) #

Properties and child nodes (properties)

interconnects — not listed as required here

Maximum number of items (maxItems): 4

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write-0"

Item 3

Exact value (const): "read-1"

Item 4

Exact value (const): "write-1"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,gv11b"

When the condition matches (then) #

Properties and child nodes (properties)

interconnects — not listed as required here

Minimum number of items (minItems): 12

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "read-0-hp"

Item 3

Exact value (const): "write-0"

Item 4

Exact value (const): "read-1"

Item 5

Exact value (const): "read-1-hp"

Item 6

Exact value (const): "write-1"

Item 7

Exact value (const): "read-2"

Item 8

Exact value (const): "read-2-hp"

Item 9

Exact value (const): "write-2"

Item 10

Exact value (const): "read-3"

Item 11

Exact value (const): "read-3-hp"

Item 12

Exact value (const): "write-3"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/tegra124-car-common.h>
#include <dt-bindings/memory/tegra124-mc.h>

gpu@57000000 {
    compatible = "nvidia,gk20a";
    reg = <0x57000000 0x01000000>,
          <0x58000000 0x01000000>;
    interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "stall", "nonstall";
    vdd-supply = <&vdd_gpu>;
    clocks = <&tegra_car TEGRA124_CLK_GPU>,
             <&tegra_car TEGRA124_CLK_PLL_P_OUT5>;
    clock-names = "gpu", "pwr";
    resets = <&tegra_car 184>;
    reset-names = "gpu";
    iommus = <&mc TEGRA_SWGROUP_GPU>;
};

Source notes #

Annotations retained from the schema source

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

Samsung SoC 2D Graphics Accelerator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/samsung-g2d.yaml#"

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

Maintainers (maintainers): "Inki Dae <inki.dae@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,s5pv210-g2d", "samsung,exynos4212-g2d", "samsung,exynos5250-g2d"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

iommus — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

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): "samsung,exynos5250-g2d"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

fimg2d clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "fimg2d"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

sclk_fimg2d clock

Item 2

fimg2d clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "sclk_fimg2d"

Item 2

Exact value (const): "fimg2d"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

g2d@12800000 {
    compatible = "samsung,s5pv210-g2d";
    reg = <0x12800000 0x1000>;
    interrupts = <0 89 0>;
    clocks = <&clock 177>, <&clock 277>;
    clock-names = "sclk_fimg2d", "fimg2d";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 15: in S5PV210 & Exynos4210 SoC

Line 16: in Exynos4x12 SoCs

Samsung SoC Image Rotator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/samsung-rotator.yaml#"

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

Maintainers (maintainers): "Inki Dae <inki.dae@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,s5pv210-rotator", "samsung,exynos4210-rotator", "samsung,exynos4212-rotator", "samsung,exynos5250-rotator"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rotator"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rotator@12810000 {
    compatible = "samsung,exynos4210-rotator";
    reg = <0x12810000 0x1000>;
    interrupts = <0 83 0>;
    clocks = <&clock 278>;
    clock-names = "rotator";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Samsung Exynos SoC Image Scaler

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/samsung-scaler.yaml#"

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

Maintainers (maintainers): "Inki Dae <inki.dae@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos5420-scaler", "samsung,exynos5433-scaler"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

iommus — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

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): "samsung,exynos5420-scaler"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

mscl clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mscl"

iommus — not listed as required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

pclk clock

Item 2

aclk clock

Item 3

aclk_xiu clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "aclk"

Item 3

Exact value (const): "aclk_xiu"

iommus — not listed as required here

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos5420.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

scaler@12800000 {
    compatible = "samsung,exynos5420-scaler";
    reg = <0x12800000 0x1294>;
    interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clock CLK_MSCL0>;
    clock-names = "mscl";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Vivante GPU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpu bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpu/vivante,gc.yaml#"

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

Vivante GPU core devices

Maintainers (maintainers): "Lucas Stach <l.stach@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "vivante,gc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#cooling-cells — not listed as required here #

Exact value (const): 2

assigned-clock-parents — not listed as required here #

true — No constraints added by this property rule.

assigned-clock-rates — not listed as required here #

true — No constraints added by this property rule.

assigned-clocks — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Array item rules (items) #

Item 1

AXI/master interface clock

Item 2

GPU core clock

Item 3

Shader clock (only required if GPU has feature PIPE_3D)

Item 4

AHB/slave interface clock (only required if GPU can gate slave interface independently)

Minimum number of items (minItems): 1

clock-names — required here #

Array item rules (items) #

Allowed values (enum): "bus", "core", "shader", "reg"

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

resets — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6qdl-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpu@130000 {
  compatible = "vivante,gc";
  reg = <0x00130000 0x4000>;
  interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>,
           <&clks IMX6QDL_CLK_GPU3D_CORE>,
           <&clks IMX6QDL_CLK_GPU3D_SHADER>;
  clock-names = "bus", "core", "shader";
  power-domains = <&gpc 1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Peios Learn — documentation for Peios software.

Built with Trail.