ARM SMMUv3 Architecture Implementation

Schema identifier ($id): "http://devicetree.org/schemas/iommu/arm,smmu-v3.yaml#"

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

Maintainers (maintainers): "Will Deacon <will@kernel.org>", "Robin Murphy <Robin.Murphy@arm.com>"

The SMMUv3 architecture is a significant departure from previous revisions, replacing the MMIO register interface with in-memory command and event queues and adding support for the ATS and PRI components of the PCIe specification.

Properties and child nodes (properties) #

$nodename — not listed as required here #

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

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "arm,smmu-v3"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-smmu"

Item 2

Exact value (const): "arm,smmu-v3"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

interrupt-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "combined"

The combined interrupt is optional, and should only be provided if the hardware supports just a single, combined interrupt line. If provided, then the combined interrupt will be used in preference to any others.

Rule 2

Minimum number of items (minItems): 1

Array item rules (items)

Allowed values (enum): "eventq", "gerror", "cmdq-sync", "priq"

#iommu-cells — required here #

Exact value (const): 1

dma-coherent — not listed as required here #

Present if page table walks made by the SMMU are cache coherent with the CPU.

NOTE: this only applies to the SMMU itself, not masters connected upstream of the SMMU.

msi-parent — not listed as required here #

true — No constraints added by this property rule.

nvidia,cmdqv — not listed as required here #

A phandle to its pairing CMDQV extension for an implementation on NVIDIA Tegra SoC.

If this property is absent, CMDQ-Virtualization won't be used and SMMU will only use its own CMDQ.

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

hisilicon,broken-prefetch-cmd — not listed as required here #

Value type (type): "boolean"

Avoid sending CMD_PREFETCH_* commands to the SMMU.

cavium,cn9900-broken-page1-regspace — not listed as required here #

Value type (type): "boolean"

Replaces all page 1 offsets used for EVTQ_PROD/CONS, PRIQ_PROD/CONS register access with page 0 offsets. Set for Cavium ThunderX2 silicon that doesn't support SMMU page1 register space.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra264-smmu"

When the condition matches (then) #

Properties and child nodes (properties)

nvidia,cmdqv — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible", "reg", "#iommu-cells"

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/interrupt-controller/irq.h>

iommu@2b400000 {
        compatible = "arm,smmu-v3";
        reg = <0x2b400000 0x20000>;
        interrupts = <GIC_SPI 74 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 77 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>;
        interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
        dma-coherent;
        #iommu-cells = <1>;
        msi-parent = <&its 0xff0000>;
};

Source notes #

Annotations retained from the schema source

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

Line 48: Event Queue not empty

Line 49: Global Error activated

Line 50: CMD_SYNC complete

Line 51: PRI Queue not empty

Edit this page