Apple SoC GPU

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)

Edit this page