Apple SART DMA address filter

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

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

Maintainers (maintainers): "Sven Peter <sven@svenpeter.dev>"

Apple SART is a simple address filter for DMA transactions. Regions of physical memory must be added to the SART's allow list before any DMA can target these. Unlike a proper IOMMU no remapping can be done and special support in the consumer driver is required since not all DMA transactions of a single device are subject to SART filtering. SART1 has first been used since at least the A11 (iPhone 8 and iPhone X) and allows 36 bit of physical address space and filter entries with sizes up to 24 bit. SART2, first seen in A14 and M1, allows 36 bit of physical address space and filter entry size up to 36 bit. SART3, first seen in M1 Pro/Max, extends both the address space and filter entry size to 42 bit.

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): "apple,t6020-sart", "apple,t8112-sart"

Item 2

Exact value (const): "apple,t6000-sart"

Rule 2

Allowed values (enum): "apple,t6000-sart", "apple,t8015-sart", "apple,t8103-sart"

reg — 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"

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

false

Not allowed by this rule.

Examples (examples) #

iommu@7bc50000 {
  compatible = "apple,t8103-sart";
  reg = <0x7bc50000 0x4000>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page