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

Iommu bindings

Single-page view · as markdown

Allwinner H6 IOMMU

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

Schema identifier ($id): "http://devicetree.org/schemas/iommu/allwinner,sun50i-h6-iommu.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#iommu-cells — required here #

Exact value (const): 1

The content of the cell is the master ID.

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun50i-h6-iommu"

Rule 2

Exact value (const): "allwinner,sun50i-h616-iommu"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun55i-a523-iommu"

Item 2

Exact value (const): "allwinner,sun50i-h616-iommu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — 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

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

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>

#include <dt-bindings/clock/sun50i-h6-ccu.h>
#include <dt-bindings/reset/sun50i-h6-ccu.h>

iommu: iommu@30f0000 {
    compatible = "allwinner,sun50i-h6-iommu";
    reg = <0x030f0000 0x10000>;
    interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_BUS_IOMMU>;
    resets = <&ccu RST_BUS_IOMMU>;
    #iommu-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Apple DART IOMMU

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

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

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

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

Apple SoCs may contain an implementation of their Device Address Resolution Table which provides a mandatory layer of address translations for various masters.

Each DART instance is capable of handling up to 16 different streams with individual pagetables and page-level read/write protection flags.

This DART IOMMU also raises interrupts in response to various fault conditions.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "apple,t8103-dart", "apple,t8103-usb4-dart", "apple,t8110-dart", "apple,t6000-dart"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-dart"

Item 2

Exact value (const): "apple,t8110-dart"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Reference to the gate clock phandle if required for this IOMMU. Optional since not all IOMMUs are attached to a clock gate.

#iommu-cells — required here #

Exact value (const): 1

Has to be one. The single cell describes the stream id emitted by a master to the IOMMU.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

dart1: iommu@82f80000 {
  compatible = "apple,t8103-dart";
  reg = <0x82f80000 0x4000>;
  interrupts = <1 781 4>;
  #iommu-cells = <1>;
};

master1 {
  iommus = <&dart1 0>;
};

dart2a: iommu@82f00000 {
  compatible = "apple,t8103-dart";
  reg = <0x82f00000 0x4000>;
  interrupts = <1 781 4>;
  #iommu-cells = <1>;
};
dart2b: iommu@82f80000 {
  compatible = "apple,t8103-dart";
  reg = <0x82f80000 0x4000>;
  interrupts = <1 781 4>;
  #iommu-cells = <1>;
};

master2 {
  iommus = <&dart2a 0>, <&dart2b 1>;
};

Source notes #

Annotations retained from the schema source

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

Apple SART DMA address filter

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

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

ARM SMMUv3 Architecture Implementation

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

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

ARM System MMU Architecture Implementation

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

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

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

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

ARM SoCs may contain an implementation of the ARM System Memory Management Unit Architecture, which can be used to provide 1 or 2 stages of address translation to bus masters external to the CPU.

The SMMU may also raise interrupts in response to various fault conditions.

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

Qcom SoCs implementing "arm,smmu-v2"

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8996-smmu-v2", "qcom,msm8998-smmu-v2", "qcom,sdm630-smmu-v2", "qcom,sm6375-smmu-v2"

Item 2

Exact value (const): "qcom,smmu-v2"

Rule 2

Qcom SoCs implementing "qcom,smmu-500" and "arm,mmu-500"

Array item rules (items)

Item 1

Allowed values (enum): "qcom,glymur-smmu-500", "qcom,kaanapali-smmu-500", "qcom,milos-smmu-500", "qcom,qcm2290-smmu-500", "qcom,qcs615-smmu-500", "qcom,qcs8300-smmu-500", "qcom,qdu1000-smmu-500", "qcom,sa8255p-smmu-500", "qcom,sa8775p-smmu-500", "qcom,sar2130p-smmu-500", "qcom,sc7180-smmu-500", "qcom,sc7280-smmu-500", "qcom,sc8180x-smmu-500", "qcom,sc8280xp-smmu-500", "qcom,sdm670-smmu-500", "qcom,sdm845-smmu-500", "qcom,sdx55-smmu-500", "qcom,sdx65-smmu-500", "qcom,sdx75-smmu-500", "qcom,sm6115-smmu-500", "qcom,sm6125-smmu-500", "qcom,sm6350-smmu-500", "qcom,sm6375-smmu-500", "qcom,sm8150-smmu-500", "qcom,sm8250-smmu-500", "qcom,sm8350-smmu-500", "qcom,sm8450-smmu-500", "qcom,sm8550-smmu-500", "qcom,sm8650-smmu-500", "qcom,sm8750-smmu-500", "qcom,x1e80100-smmu-500"

Item 2

Exact value (const): "qcom,smmu-500"

Item 3

Exact value (const): "arm,mmu-500"

Rule 3

Qcom SoCs implementing "arm,mmu-500" (legacy binding)

Deprecated (deprecated): true

Array item rules (items)

Item 1

Allowed values (enum): "qcom,qcm2290-smmu-500", "qcom,sc7180-smmu-500", "qcom,sc7280-smmu-500", "qcom,sc8180x-smmu-500", "qcom,sc8280xp-smmu-500", "qcom,sdm845-smmu-500", "qcom,sm6115-smmu-500", "qcom,sm6350-smmu-500", "qcom,sm6375-smmu-500", "qcom,sm8150-smmu-500", "qcom,sm8250-smmu-500", "qcom,sm8350-smmu-500", "qcom,sm8450-smmu-500"

Item 2

Exact value (const): "arm,mmu-500"

Rule 4

Qcom Adreno GPUs implementing "qcom,smmu-500" and "arm,mmu-500"

Array item rules (items)

Item 1

Allowed values (enum): "qcom,glymur-smmu-500", "qcom,kaanapali-smmu-500", "qcom,milos-smmu-500", "qcom,qcm2290-smmu-500", "qcom,qcs615-smmu-500", "qcom,qcs8300-smmu-500", "qcom,sa8255p-smmu-500", "qcom,sa8775p-smmu-500", "qcom,sar2130p-smmu-500", "qcom,sc7280-smmu-500", "qcom,sc8180x-smmu-500", "qcom,sc8280xp-smmu-500", "qcom,sm6115-smmu-500", "qcom,sm6125-smmu-500", "qcom,sm8150-smmu-500", "qcom,sm8250-smmu-500", "qcom,sm8350-smmu-500", "qcom,sm8450-smmu-500", "qcom,sm8550-smmu-500", "qcom,sm8650-smmu-500", "qcom,sm8750-smmu-500", "qcom,x1e80100-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-500"

Item 4

Exact value (const): "arm,mmu-500"

Rule 5

Qcom Adreno GPUs implementing "arm,mmu-500" (legacy binding)

Deprecated (deprecated): true

Array item rules (items)

Item 1

Allowed values (enum): "qcom,sc7280-smmu-500", "qcom,sm8150-smmu-500", "qcom,sm8250-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "arm,mmu-500"

Rule 6

Qcom Adreno GPUs implementing "arm,smmu-v2"

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8996-smmu-v2", "qcom,sc7180-smmu-v2", "qcom,sdm630-smmu-v2", "qcom,sdm670-smmu-v2", "qcom,sdm845-smmu-v2", "qcom,sm6350-smmu-v2", "qcom,sm7150-smmu-v2"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-v2"

Rule 7

Marvell SoCs implementing "arm,mmu-500"

Array item rules (items)

Item 1

Exact value (const): "marvell,ap806-smmu-500"

Item 2

Exact value (const): "arm,mmu-500"

Rule 8

NVIDIA SoCs that require memory controller interaction and may program multiple ARM MMU-500s identically with the memory controller interleaving translations between multiple instances for improved performance.

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra186-smmu", "nvidia,tegra194-smmu", "nvidia,tegra234-smmu"

Item 2

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

Rule 9

Array item rules (items)

Item 1

Exact value (const): "arm,mmu-500"

Item 2

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

Rule 10

Array item rules (items)

Item 1

Allowed values (enum): "arm,mmu-400", "arm,mmu-401"

Item 2

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

Rule 11

Allowed values (enum): "arm,smmu-v1", "arm,smmu-v2", "arm,mmu-400", "arm,mmu-401", "arm,mmu-500", "cavium,smmu-v2"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

#global-interrupts — required here #

The number of global interrupts exposed by the device.

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

Minimum value (minimum): 0

Maximum value (maximum): 260

#iommu-cells — required here #

Allowed values (enum): 1, 2

See Documentation/devicetree/bindings/iommu/iommu.txt for details. With a value of 1, each IOMMU specifier represents a distinct stream ID emitted by that device into the relevant SMMU.

SMMUs with stream matching support and complex masters may use a value of 2, where the second cell of the IOMMU specifier represents an SMR mask to combine with the ID in the first cell. Care must be taken to ensure the set of matched IDs does not result in conflicts.

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 388

Interrupt list, with the first #global-interrupts entries corresponding to the global interrupts and any following entries corresponding to context interrupts, specified in order of their indexing by the SMMU.

For SMMUv2 implementations, there must be exactly one interrupt per context bank. In the case of a single, combined interrupt, it must be listed multiple times.

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.

calxeda,smmu-secure-config-access — not listed as required here #

Value type (type): "boolean"

Enable proper handling of buggy implementations that always use secure access to SMMU configuration registers. In this case non-secure aliases of secure registers have to be used during SMMU configuration.

stream-match-mask — not listed as required here #

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

For SMMUs supporting stream matching and using #iommu-cells = <1>, specifies a mask of bits to ignore when matching stream IDs (e.g. this may be programmed into the SMRn.MASK field of every stream match register used). For cases where it is desirable to ignore some portion of every Stream ID (e.g. for certain MMU-500 configurations given globally unique input IDs). This property is not valid for SMMUs using stream indexing, or using stream matching with #iommu-cells = <2>, and may be ignored if present in such cases.

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 7

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 7

power-domains — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

nvidia,memory-controller — not listed as required here #

A phandle to the memory controller on NVIDIA Tegra186 and later SoCs. The memory controller needs to be programmed with a mapping of memory client IDs to ARM SMMU stream IDs.

If this property is absent, the mapping programmed by early firmware will be used and it is not guaranteed that IOMMU translations will be enabled for any given device.

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

Required in this object (required): "compatible", "reg", "#global-interrupts", "#iommu-cells", "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): "nvidia,tegra186-smmu", "nvidia,tegra194-smmu", "nvidia,tegra234-smmu"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "nvidia,memory-controller"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — 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): "qcom,msm8998-smmu-v2", "qcom,sdm630-smmu-v2"

When the condition matches (then) #

At least one of these rules must match (anyOf)

Rule 1

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus"

clocks — not listed as required here

Array item rules (items)

Item 1

bus clock required for downstream bus access and for the smmu ptw

Rule 2

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "mem"

Item 3

Exact value (const): "mem_iface"

clocks — not listed as required here

Array item rules (items)

Item 1

interface clock required to access smmu's registers through the TCU's programming interface.

Item 2

bus clock required for memory access

Item 3

bus clock required for GPU memory access

Rule 3

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "iface-mm"

Item 2

Exact value (const): "iface-smmu"

Item 3

Exact value (const): "bus-smmu"

clocks — not listed as required here

Array item rules (items)

Item 1

interface clock required to access mnoc's registers through the TCU's programming interface.

Item 2

interface clock required to access smmu's registers through the TCU's programming interface.

Item 3

bus clock required for the smmu ptw

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm6375-smmu-v2"

When the condition matches (then) #

At least one of these rules must match (anyOf)

Rule 1

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus"

clocks — not listed as required here

Array item rules (items)

Item 1

bus clock required for downstream bus access and for the smmu ptw

Rule 2

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "mem"

Item 3

Exact value (const): "mem_iface"

clocks — not listed as required here

Array item rules (items)

Item 1

interface clock required to access smmu's registers through the TCU's programming interface.

Item 2

bus clock required for memory access

Item 3

bus clock required for GPU memory access

Rule 3

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "iface-mm"

Item 2

Exact value (const): "iface-smmu"

Item 3

Exact value (const): "bus-mm"

Item 4

Exact value (const): "bus-smmu"

clocks — not listed as required here

Array item rules (items)

Item 1

interface clock required to access mnoc's registers through the TCU's programming interface.

Item 2

interface clock required to access smmu's registers through the TCU's programming interface.

Item 3

bus clock required for downstream bus access

Item 4

bus clock required for the smmu ptw

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8996-smmu-v2", "qcom,sc7180-smmu-v2", "qcom,sdm845-smmu-v2"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "iface"

clocks — not listed as required here

Array item rules (items)

Item 1

bus clock required for downstream bus access and for the smmu ptw

Item 2

interface clock required to access smmu's registers through the TCU's programming interface.

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,qcs8300-smmu-500", "qcom,sa8775p-smmu-500", "qcom,sc7280-smmu-500", "qcom,sc8280xp-smmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gcc_gpu_memnoc_gfx_clk"

Item 2

Exact value (const): "gcc_gpu_snoc_dvm_gfx_clk"

Item 3

Exact value (const): "gpu_cc_ahb_clk"

Item 4

Exact value (const): "gpu_cc_hlos1_vote_gpu_smmu_clk"

Item 5

Exact value (const): "gpu_cc_cx_gmu_clk"

Item 6

Exact value (const): "gpu_cc_hub_cx_int_clk"

Item 7

Exact value (const): "gpu_cc_hub_aon_clk"

clocks — not listed as required here

Array item rules (items)

Item 1

GPU memnoc_gfx clock

Item 2

GPU snoc_dvm_gfx clock

Item 3

GPU ahb clock

Item 4

GPU hlos1_vote_GPU smmu clock

Item 5

GPU cx_gmu clock

Item 6

GPU hub_cx_int clock

Item 7

GPU hub_aon clock

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc8180x-smmu-500", "qcom,sm6350-smmu-v2", "qcom,sm7150-smmu-v2", "qcom,sm8150-smmu-500", "qcom,sm8250-smmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "iface"

clocks — not listed as required here

Array item rules (items)

Item 1

bus clock required for AHB bus access

Item 2

bus clock required for downstream bus access and for the smmu ptw

Item 3

interface clock required to access smmu's registers through the TCU's programming interface.

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "qcom,sm8350-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-500"

Item 4

Exact value (const): "arm,mmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "iface"

Item 3

Exact value (const): "ahb"

Item 4

Exact value (const): "hlos1_vote_gpu_smmu"

Item 5

Exact value (const): "cx_gmu"

Item 6

Exact value (const): "hub_cx_int"

Item 7

Exact value (const): "hub_aon"

clocks — not listed as required here

Minimum number of items (minItems): 7

Maximum number of items (maxItems): 7

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "qcom,qcm2290-smmu-500", "qcom,qcs615-smmu-500", "qcom,sm6115-smmu-500", "qcom,sm6125-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-500"

Item 4

Exact value (const): "arm,mmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mem"

Item 2

Exact value (const): "hlos"

Item 3

Exact value (const): "iface"

clocks — not listed as required here

Array item rules (items)

Item 1

GPU memory bus clock

Item 2

Voter clock required for HLOS SMMU access

Item 3

Interface clock required for register access

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "qcom,sm8450-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-500"

Item 4

Exact value (const): "arm,mmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gmu"

Item 2

Exact value (const): "hub"

Item 3

Exact value (const): "hlos"

Item 4

Exact value (const): "bus"

Item 5

Exact value (const): "iface"

Item 6

Exact value (const): "ahb"

clocks — not listed as required here

Array item rules (items)

Item 1

GMU clock

Item 2

GPU HUB clock

Item 3

HLOS vote clock

Item 4

GPU memory bus clock

Item 5

GPU SNoC bus clock

Item 6

GPU AHB clock

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "qcom,milos-smmu-500", "qcom,sar2130p-smmu-500", "qcom,sm8550-smmu-500", "qcom,sm8650-smmu-500", "qcom,x1e80100-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-500"

Item 4

Exact value (const): "arm,mmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hlos"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "iface"

Item 4

Exact value (const): "ahb"

clocks — not listed as required here

Array item rules (items)

Item 1

HLOS vote clock

Item 2

GPU memory bus clock

Item 3

GPU SNoC bus clock

Item 4

GPU AHB clock

Rule 11 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "qcom,sm8750-smmu-500"

Item 2

Exact value (const): "qcom,adreno-smmu"

Item 3

Exact value (const): "qcom,smmu-500"

Item 4

Exact value (const): "arm,mmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hlos"

clocks — not listed as required here

Array item rules (items)

Item 1

HLOS vote clock

Rule 12 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "cavium,smmu-v2", "marvell,ap806-smmu-500", "nvidia,smmu-500", "qcom,qdu1000-smmu-500", "qcom,sa8255p-smmu-500", "qcom,sc7180-smmu-500", "qcom,sdm670-smmu-500", "qcom,sdm845-smmu-500", "qcom,sdx55-smmu-500", "qcom,sdx65-smmu-500", "qcom,sm6350-smmu-500", "qcom,sm6375-smmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

false — Not permitted by this property rule.

clocks — not listed as required here

false — Not permitted by this property rule.

Rule 13 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,sm6375-smmu-500"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Array item rules (items)

Item 1

SNoC MMU TBU RT GDSC

Item 2

SNoC MMU TBU NRT GDSC

Item 3

SNoC TURING MMU TBU0 GDSC

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

Maximum number of items (maxItems): 1

Examples (examples) #

/* SMMU with stream matching or stream indexing */
smmu1: iommu@ba5e0000 {
        compatible = "arm,smmu-v1";
        reg = <0xba5e0000 0x10000>;
        #global-interrupts = <2>;
        interrupts = <0 32 4>,
                     <0 33 4>,
                     <0 34 4>, /* This is the first context interrupt */
                     <0 35 4>,
                     <0 36 4>,
                     <0 37 4>;
        #iommu-cells = <1>;
};

/* device with two stream IDs, 0 and 7 */
master1 {
        iommus = <&smmu1 0>,
                 <&smmu1 7>;
};

/* SMMU with stream matching */
smmu2: iommu@ba5f0000 {
        compatible = "arm,smmu-v1";
        reg = <0xba5f0000 0x10000>;
        #global-interrupts = <2>;
        interrupts = <0 38 4>,
                     <0 39 4>,
                     <0 40 4>, /* This is the first context interrupt */
                     <0 41 4>,
                     <0 42 4>,
                     <0 43 4>;
        #iommu-cells = <2>;
};

/* device with stream IDs 0 and 7 */
master2 {
        iommus = <&smmu2 0 0>,
                 <&smmu2 7 0>;
};

/* device with stream IDs 1, 17, 33 and 49 */
master3 {
        iommus = <&smmu2 1 0x30>;
};

/* ARM MMU-500 with 10-bit stream ID input configuration */
smmu3: iommu@ba600000 {
        compatible = "arm,mmu-500", "arm,smmu-v2";
        reg = <0xba600000 0x10000>;
        #global-interrupts = <2>;
        interrupts = <0 44 4>,
                     <0 45 4>,
                     <0 46 4>, /* This is the first context interrupt */
                     <0 47 4>,
                     <0 48 4>,
                     <0 49 4>;
        #iommu-cells = <1>;
        /* always ignore appended 5-bit TBU number */
        stream-match-mask = <0x7c00>;
};

bus {
        /* bus whose child devices emit one unique 10-bit stream
           ID each, but may master through multiple SMMU TBUs */
        iommu-map = <0 &smmu3 0 0x400>;
};

/* Qcom's arm,smmu-v2 implementation */
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
smmu4: iommu@d00000 {
  compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2";
  reg = <0xd00000 0x10000>;

  #global-interrupts = <1>;
  interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH>,
         <GIC_SPI 321 IRQ_TYPE_LEVEL_HIGH>;
  #iommu-cells = <1>;
  power-domains = <&mmcc 0>;

  clocks = <&mmcc 123>,
    <&mmcc 124>;
  clock-names = "bus", "iface";
};

Source notes #

Annotations retained from the schema source

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

Line 75: Do not add additional SoC to this list. Instead use two previous lists.

Line 122: Do not add additional SoC to this list. Instead use previous list.

Line 179: 2 secure, 2 non-secure, and up to 256 perf counters

Line 195: 260 plus 128 contexts

Line 279: The reference to the memory controller is required to ensure that the

Line 280: memory client to stream ID mapping can be done synchronously with the

Line 281: IOMMU attachment.

Line 580: Disallow clocks for all other platforms with specific compatibles

MediaTek IOMMU Architecture Implementation

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

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

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

Maintainers (maintainers): "Yong Wu <yong.wu@mediatek.com>"

Some MediaTek SOCs contain a Multimedia Memory Management Unit (M4U), and this M4U have two generations of HW architecture. Generation one uses flat pagetable, and only supports 4K size page mapping. Generation two uses the ARM Short-Descriptor translation table format for address translation.

About the M4U Hardware Block Diagram, please check below:

              EMI (External Memory Interface)
               |
              m4u (Multimedia Memory Management Unit)
               |
          +--------+
          |        |
      gals0-rx   gals1-rx    (Global Async Local Sync rx)
          |        |
          |        |
      gals0-tx   gals1-tx    (Global Async Local Sync tx)
          |        |          Some SoCs may have GALS.
          +--------+
               |
           SMI Common(Smart Multimedia Interface Common)
               |
       +----------------+-------
       |                |
       |             gals-rx        There may be GALS in some larbs.
       |                |
       |                |
       |             gals-tx
       |                |
   SMI larb0        SMI larb1   ... SoCs have several SMI local arbiter(larb).
   (display)         (vdec)
       |                |
       |                |
 +-----+-----+     +----+----+
 |     |     |     |    |    |
 |     |     |...  |    |    |  ... There are different ports in each larb.
 |     |     |     |    |    |
OVL0 RDMA0 WDMA0  MC   PP   VLD

As above, The Multimedia HW will go through SMI and M4U while it access EMI. SMI is a bridge between m4u and the Multimedia HW. It contain smi local arbiter and smi common. It will control whether the Multimedia HW should go through the m4u for translation or bypass it and talk directly with EMI. And also SMI help control the power domain and clocks for each local arbiter.

Normally we specify a local arbiter(larb) for each multimedia HW like display, video decode, and camera. And there are different ports in each larb. Take a example, There are many ports like MC, PP, VLD in the video decode local arbiter, all these ports are according to the video HW.

In some SoCs, there may be a GALS(Global Async Local Sync) module between smi-common and m4u, and additional GALS module between smi-larb and smi-common. GALS can been seen as a "asynchronous fifo" which could help synchronize for the modules in different clock frequency.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-m4u", "mediatek,mt2712-m4u", "mediatek,mt6779-m4u", "mediatek,mt6795-m4u", "mediatek,mt6893-iommu-mm", "mediatek,mt8167-m4u", "mediatek,mt8173-m4u", "mediatek,mt8183-m4u", "mediatek,mt8186-iommu-mm", "mediatek,mt8188-iommu-vdo", "mediatek,mt8188-iommu-vpp", "mediatek,mt8188-iommu-infra", "mediatek,mt8189-iommu-apu", "mediatek,mt8189-iommu-infra", "mediatek,mt8189-iommu-mm", "mediatek,mt8192-m4u", "mediatek,mt8195-iommu-vdo", "mediatek,mt8195-iommu-vpp", "mediatek,mt8195-iommu-infra", "mediatek,mt8365-m4u"

Rule 2

mt7623 generation one

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt7623-m4u"

Item 2

Exact value (const): "mediatek,mt2701-m4u"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

bclk is the block clock.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "bclk"

mediatek,infracfg — not listed as required here #

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

The phandle to the mediatek infracfg syscon

mediatek,larbs — not listed as required here #

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Array item rules (items) #

Maximum number of items (maxItems): 1

List of phandle to the local arbiters in the current Socs. Refer to bindings/memory-controllers/mediatek,smi-larb.yaml. It must sort according to the local arbiter index, like larb0, larb1, larb2...

#iommu-cells — required here #

Exact value (const): 1

This is the mtk_m4u_id according to the HW. Specifies the mtk_m4u_id as defined in dt-binding/memory/mediatek,mt8188-memory-port.h for mt8188, dt-binding/memory/mediatek,mt8189-memory-port.h for mt8189, dt-binding/memory/mt2701-larb-port.h for mt2701 and mt7623, dt-binding/memory/mt2712-larb-port.h for mt2712, dt-binding/memory/mt6779-larb-port.h for mt6779, dt-binding/memory/mt6795-larb-port.h for mt6795, dt-binding/memory/mediatek,mt6893-memory-port.h for mt6893, dt-binding/memory/mt8167-larb-port.h for mt8167, dt-binding/memory/mt8173-larb-port.h for mt8173, dt-binding/memory/mt8183-larb-port.h for mt8183, dt-binding/memory/mt8186-memory-port.h for mt8186, dt-binding/memory/mt8192-larb-port.h for mt8192. dt-binding/memory/mt8195-memory-port.h for mt8195. dt-binding/memory/mediatek,mt8365-larb-port.h for mt8365.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

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): "mediatek,mt2701-m4u", "mediatek,mt2712-m4u", "mediatek,mt6795-m4u", "mediatek,mt6893-iommu-mm", "mediatek,mt8173-m4u", "mediatek,mt8186-iommu-mm", "mediatek,mt8188-iommu-vdo", "mediatek,mt8188-iommu-vpp", "mediatek,mt8189-iommu-mm", "mediatek,mt8192-m4u", "mediatek,mt8195-iommu-vdo", "mediatek,mt8195-iommu-vpp"

When the condition matches (then) #

Required in this object (required): "clocks"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "mediatek,mt6893-iommu-mm", "mediatek,mt8186-iommu-mm", "mediatek,mt8188-iommu-vdo", "mediatek,mt8188-iommu-vpp", "mediatek,mt8189-iommu-mm", "mediatek,mt8192-m4u", "mediatek,mt8195-iommu-vdo", "mediatek,mt8195-iommu-vpp"

When the condition matches (then) #

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

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt2712-m4u", "mediatek,mt6795-m4u", "mediatek,mt8173-m4u"

When the condition matches (then) #

Required in this object (required): "mediatek,infracfg"

Rule 4 #

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)

Allowed values (enum): "mediatek,mt8188-iommu-infra", "mediatek,mt8189-iommu-apu", "mediatek,mt8189-iommu-infra", "mediatek,mt8195-iommu-infra"

When the condition matches (then) #

Required in this object (required): "mediatek,larbs"

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

false

Not allowed by this rule.

Examples (examples) #

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

iommu: iommu@10205000 {
        compatible = "mediatek,mt8173-m4u";
        reg = <0x10205000 0x1000>;
        interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>;
        clocks = <&infracfg CLK_INFRA_M4U>;
        clock-names = "bclk";
        mediatek,infracfg = <&infracfg>;
        mediatek,larbs = <&larb0>, <&larb1>, <&larb2>,
                         <&larb3>, <&larb4>, <&larb5>;
        #iommu-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Line 73: generation one

Line 74: generation two

Line 75: generation two

Line 76: generation two

Line 77: generation two

Line 78: generation two

Line 79: generation two

Line 80: generation two

Line 81: generation two

Line 82: generation two

Line 83: generation two

Line 84: generation two

Line 85: generation two

Line 86: generation two

Line 87: generation two

Line 88: generation two

Line 89: generation two

Line 90: generation two

Line 91: generation two

Line 92: generation two

Line 210: The IOMMUs don't have larbs.

NVIDIA Tegra264 CMDQV

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

Schema identifier ($id): "http://devicetree.org/schemas/iommu/nvidia,tegra264-cmdqv.yaml#"

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

The CMDQ-Virtualization hardware block is part of the SMMUv3 implementation on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.

Maintainers (maintainers): "Nicolin Chen <nicolinc@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

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>

cmdqv@5200000 {
        compatible = "nvidia,tegra264-cmdqv";
        reg = <0x5200000 0x830000>;
        interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Qualcomm APQ8064 IOMMU

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

Schema identifier ($id): "http://devicetree.org/schemas/iommu/qcom,apq8064-iommu.yaml#"

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

Maintainers (maintainers): "David Heidelberg <david@ixit.cz>"

The MSM IOMMU is an implementation compatible with the ARM VMSA short descriptor page tables. It provides address translation for bus masters outside of the CPU, each connected to the IOMMU through a port called micro-TLB.

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "qcom,apq8064-iommu"

clocks — required here #

Array item rules (items) #

Item 1

interface clock for register accesses

Item 2

functional clock for bus accesses

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "smmu_pclk"

Item 2

Exact value (const): "iommu_clk"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Specifiers for the MMU fault interrupts.

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

non-secure mode interrupt

Item 2

secure mode interrupt (for instances which supports it)

#iommu-cells — not listed as required here #

Exact value (const): 1

Each IOMMU specifier describes a single Stream ID.

qcom,ncb — required here #

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

The total number of context banks in the IOMMU.

Minimum value (minimum): 1

Maximum value (maximum): 4

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,mmcc-msm8960.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

iommu@7500000 {
        compatible = "qcom,apq8064-iommu";
        reg = <0x07500000 0x100000>;
        interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clk SMMU_AHB_CLK>,
                 <&clk MDP_AXI_CLK>;
        clock-names = "smmu_pclk",
                      "iommu_clk";
        #iommu-cells = <1>;
        qcom,ncb = <2>;
};

Source notes #

Annotations retained from the schema source

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

Qualcomm Technologies legacy IOMMU implementations

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

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

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

Maintainers (maintainers): "Konrad Dybcio <konradybcio@kernel.org>"

Qualcomm "B" family devices which are not compatible with arm-smmu have a similar looking IOMMU, but without access to the global register space and optionally requiring additional configuration to route context IRQs to non-secure vs secure interrupt line.

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): "qcom,msm8916-iommu", "qcom,msm8917-iommu", "qcom,msm8937-iommu", "qcom,msm8953-iommu"

Item 2

Exact value (const): "qcom,msm-iommu-v1"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8953-iommu", "qcom,msm8976-iommu"

Item 2

Exact value (const): "qcom,msm-iommu-v2"

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Clock required for IOMMU register group access

Item 2

Clock required for underlying bus access

Item 3

Clock required for Translation Buffer Unit access

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "tbu"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — not listed as required here #

Maximum number of items (maxItems): 1

ranges — required here #

true — No constraints added by this property rule.

qcom,iommu-secure-id — not listed as required here #

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

The SCM secure ID of the IOMMU instance.

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

#iommu-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^iommu-ctx@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "qcom,msm-iommu-v1-ns", "qcom,msm-iommu-v1-sec", "qcom,msm-iommu-v2-ns", "qcom,msm-iommu-v2-sec"

interrupts — required here

Maximum number of items (maxItems): 1

reg — required here

Maximum number of items (maxItems): 1

qcom,ctx-asid — not listed as required here

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

The ASID number associated to the context bank.

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

Required in this object (required): "compatible", "clocks", "clock-names", "ranges", "#address-cells", "#size-cells", "#iommu-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-msm8916.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

apps_iommu: iommu@1e20000 {
  compatible = "qcom,msm8916-iommu", "qcom,msm-iommu-v1";
  reg = <0x01ef0000 0x3000>;
  clocks = <&gcc GCC_SMMU_CFG_CLK>,
           <&gcc GCC_APSS_TCU_CLK>;
  clock-names = "iface", "bus";
  qcom,iommu-secure-id = <17>;
  #address-cells = <1>;
  #size-cells = <1>;
  #iommu-cells = <1>;
  ranges = <0 0x01e20000 0x40000>;

  /* mdp_0: */
  iommu-ctx@4000 {
    compatible = "qcom,msm-iommu-v1-ns";
    reg = <0x4000 0x1000>;
    interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
  };
};

Source notes #

Annotations retained from the schema source

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

Qualcomm TBU (Translation Buffer Unit)

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

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

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

Maintainers (maintainers): "Georgi Djakov <quic_c_gdjako@quicinc.com>"

The Qualcomm SMMU500 implementation consists of TCU and TBU. The TBU contains a Translation Lookaside Buffer (TLB) that caches page tables. TBUs provides debug features to trace and trigger debug transactions. There are multiple TBU instances with each client core.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,sc7280-tbu", "qcom,sdm845-tbu"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

interconnects — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

qcom,stream-id-range — required here #

Phandle of a SMMU device and Stream ID range (address and size) that is assigned by the TBU

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle of a smmu node

Item 2

stream id base address

Item 3

stream id size

Required in this object (required): "compatible", "reg", "qcom,stream-id-range"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/interconnect/qcom,icc.h>
#include <dt-bindings/interconnect/qcom,sdm845.h>

tbu@150e1000 {
    compatible = "qcom,sdm845-tbu";
    reg = <0x150e1000 0x1000>;
    clocks = <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>;
    interconnects = <&system_noc MASTER_GNOC_SNOC QCOM_ICC_TAG_ACTIVE_ONLY
                     &config_noc SLAVE_IMEM_CFG QCOM_ICC_TAG_ACTIVE_ONLY>;
    power-domains = <&gcc HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC>;
    qcom,stream-id-range = <&apps_smmu 0x1c00 0x400>;
};

Source notes #

Annotations retained from the schema source

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

Renesas VMSA-Compatible IOMMU

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

Schema identifier ($id): "http://devicetree.org/schemas/iommu/renesas,ipmmu-vmsa.yaml#"

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

Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"

The IPMMU is an IOMMU implementation compatible with the ARM VMSA page tables. It provides address translation for bus masters outside of the CPU, each connected to the IPMMU through a port called micro-TLB.

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,ipmmu-r8a73a4", "renesas,ipmmu-r8a7742", "renesas,ipmmu-r8a7743", "renesas,ipmmu-r8a7744", "renesas,ipmmu-r8a7745", "renesas,ipmmu-r8a7790", "renesas,ipmmu-r8a7791", "renesas,ipmmu-r8a7793", "renesas,ipmmu-r8a7794"

Item 2

Exact value (const): "renesas,ipmmu-vmsa"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,ipmmu-r8a774a1", "renesas,ipmmu-r8a774b1", "renesas,ipmmu-r8a774c0", "renesas,ipmmu-r8a774e1", "renesas,ipmmu-r8a7795", "renesas,ipmmu-r8a7796", "renesas,ipmmu-r8a77961", "renesas,ipmmu-r8a77965", "renesas,ipmmu-r8a77970", "renesas,ipmmu-r8a77980", "renesas,ipmmu-r8a77990", "renesas,ipmmu-r8a77995"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,ipmmu-r8a779a0", "renesas,ipmmu-r8a779f0", "renesas,ipmmu-r8a779g0", "renesas,ipmmu-r8a779h0"

Item 2

Exact value (const): "renesas,rcar-gen4-ipmmu-vmsa"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Specifiers for the MMU fault interrupts. Not required for cache IPMMUs.

Array item rules (items) #

Item 1

non-secure mode

Item 2

secure mode if supported

#iommu-cells — required here #

Exact value (const): 1

The number of the micro-TLB that the device is connected to.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

renesas,ipmmu-main — not listed as required here #

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

Array item rules (items) #

Item 1

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

phandle to main IPMMU

Item 2

The interrupt bit number associated with the particular cache IPMMU device. If present, the interrupt bit number needs to match the main IPMMU IMSSTR register. Only used by cache IPMMU instances.

Reference to the main IPMMU.

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

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "interrupts"

Rule 2 #

Required in this object (required): "renesas,ipmmu-main"

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

This rule must not match (not)

Rule for matching array elements (contains)

Exact value (const): "renesas,ipmmu-vmsa"

When the condition matches (then) #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rcar-gen4-ipmmu-vmsa"

When the condition matches (then) #

Properties and child nodes (properties)

renesas,ipmmu-main — not listed as required here

Array item rules (items)

Item 1

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Properties and child nodes (properties)

renesas,ipmmu-main — not listed as required here

Array item rules (items)

Item 1

Minimum number of items (minItems): 2

Examples (examples) #

#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7791-sysc.h>

ipmmu_mx: iommu@fe951000 {
    compatible = "renesas,ipmmu-r8a7791", "renesas,ipmmu-vmsa";
    reg = <0xfe951000 0x1000>;
    interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
    #iommu-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Line 22: R-Mobile APE6

Line 23: RZ/G1H

Line 24: RZ/G1M

Line 25: RZ/G1N

Line 26: RZ/G1E

Line 27: R-Car H2

Line 28: R-Car M2-W

Line 29: R-Car M2-N

Line 30: R-Car E2

Line 31: R-Mobile APE6 or R-Car Gen2 or RZ/G1

Line 35: RZ/G2M

Line 36: RZ/G2N

Line 37: RZ/G2E

Line 38: RZ/G2H

Line 39: R-Car H3

Line 40: R-Car M3-W

Line 41: R-Car M3-W+

Line 42: R-Car M3-N

Line 43: R-Car V3M

Line 44: R-Car V3H

Line 45: R-Car E3

Line 46: R-Car D3

Line 50: R-Car V3U

Line 51: R-Car S4-8

Line 52: R-Car V4H

Line 53: R-Car V4M

Line 54: R-Car Gen4

RISC-V IOMMU Architecture Implementation

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

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

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

Maintainers (maintainers): "Tomasz Jeznach <tjeznach@rivosinc.com>"

The RISC-V IOMMU provides memory address translation and isolation for input and output devices, supporting per-device translation context, shared process address spaces including the ATS and PRI components of the PCIe specification, two stage address translation and MSI remapping. It supports identical translation table format to the RISC-V address translation tables with page level access and protection attributes. Hardware uses in-memory command and fault reporting queues with wired interrupt or MSI notifications.

Visit https://github.com/riscv-non-isa/riscv-iommu for more details.

For information on assigning RISC-V IOMMU to its peripheral devices, see generic IOMMU bindings.

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): "qemu,riscv-iommu"

Item 2

Exact value (const): "riscv,iommu"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "pci1efd,edf1"

Item 2

Exact value (const): "riscv,pci-iommu"

reg — required here #

Maximum number of items (maxItems): 1

For non-PCI devices this represents base address and size of for the IOMMU memory mapped registers interface. For PCI IOMMU hardware implementation this should represent an address of the IOMMU, as defined in the PCI Bus Binding reference.

#iommu-cells — required here #

Exact value (const): 1

The single cell describes the requester id emitted by a master to the IOMMU.

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Wired interrupt vectors available for RISC-V IOMMU to notify the RISC-V HARTS. The cause to interrupt vector is software defined using IVEC IOMMU register.

msi-parent — not listed as required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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) #

/* Example 1 (IOMMU device with wired interrupts) */
#include <dt-bindings/interrupt-controller/irq.h>

iommu1: iommu@1bccd000 {
    compatible = "qemu,riscv-iommu", "riscv,iommu";
    reg = <0x1bccd000 0x1000>;
    interrupt-parent = <&aplic_smode>;
    interrupts = <32 IRQ_TYPE_LEVEL_HIGH>,
                 <33 IRQ_TYPE_LEVEL_HIGH>,
                 <34 IRQ_TYPE_LEVEL_HIGH>,
                 <35 IRQ_TYPE_LEVEL_HIGH>;
    #iommu-cells = <1>;
};

/* Device with two IOMMU device IDs, 0 and 7 */
master1 {
    iommus = <&iommu1 0>, <&iommu1 7>;
};

/* Example 2 (IOMMU device with shared wired interrupt) */
#include <dt-bindings/interrupt-controller/irq.h>

iommu2: iommu@1bccd000 {
    compatible = "qemu,riscv-iommu", "riscv,iommu";
    reg = <0x1bccd000 0x1000>;
    interrupt-parent = <&aplic_smode>;
    interrupts = <32 IRQ_TYPE_LEVEL_HIGH>;
    #iommu-cells = <1>;
};

/* Example 3 (IOMMU device with MSIs) */
iommu3: iommu@1bcdd000 {
    compatible = "qemu,riscv-iommu", "riscv,iommu";
    reg = <0x1bccd000 0x1000>;
    msi-parent = <&imsics_smode>;
    #iommu-cells = <1>;
};

/* Example 4 (IOMMU PCIe device with MSIs) */
bus {
    #address-cells = <2>;
    #size-cells = <2>;

    pcie@30000000 {
        device_type = "pci";
        #address-cells = <3>;
        #size-cells = <2>;
        reg = <0x0 0x30000000  0x0 0x1000000>;
        ranges = <0x02000000 0x0 0x41000000  0x0 0x41000000  0x0 0x0f000000>;

        /*
         * The IOMMU manages all functions in this PCI domain except
         * itself. Omit BDF 00:01.0.
         */
        iommu-map = <0x0 &iommu0 0x0 0x8>,
                    <0x9 &iommu0 0x9 0xfff7>;

        /* The IOMMU programming interface uses slot 00:01.0 */
        iommu0: iommu@1,0 {
            compatible = "pci1efd,edf1", "riscv,pci-iommu";
            reg = <0x800 0 0 0 0>;
            #iommu-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 28: For PCIe IOMMU hardware compatible property should contain the vendor

Line 29: and device ID according to the PCI Bus Binding specification.

Line 30: Since PCI provides built-in identification methods, compatible is not

Line 31: actually required. For non-PCIe hardware implementations 'riscv,iommu'

Line 32: should be specified along with 'reg' property providing MMIO location.

Rockchip IOMMU

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

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

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

A Rockchip DRM iommu translates io virtual addresses to physical addresses for its master device. Each slave device is bound to a single master device and shares its clocks, power domain and irq.

For information on assigning IOMMU controller to its peripheral devices, see generic IOMMU bindings.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "rockchip,iommu", "rockchip,rk3568-iommu"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3576-iommu", "rockchip,rk3588-iommu"

Item 2

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

reg — required here #

Array item rules (items) #

Item 1

configuration registers for MMU instance 0

Item 2

configuration registers for MMU instance 1

Minimum number of items (minItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

interruption for MMU instance 0

Item 2

interruption for MMU instance 1

Minimum number of items (minItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Core clock

Item 2

Interface clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "iface"

#iommu-cells — required here #

Exact value (const): 0

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

rockchip,disable-mmu-reset — not listed as required here #

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

Do not use the mmu reset operation. Some mmu instances may produce unexpected results when the reset operation is used.

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

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

false

Not allowed by this rule.

Examples (examples) #

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

vopl_mmu: iommu@ff940300 {
  compatible = "rockchip,iommu";
  reg = <0xff940300 0x100>;
  interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>;
  clock-names = "aclk", "iface";
  #iommu-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit)

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

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

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

Maintainers (maintainers): "Marek Szyprowski <m.szyprowski@samsung.com>"

Samsung's Exynos architecture contains System MMUs that enables scattered physical memory chunks visible as a contiguous region to DMA-capable peripheral devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.

System MMU is an IOMMU and supports identical translation table format to ARMv7 translation tables with minimum set of page properties including access permissions, shareability and security protection. In addition, System MMU has another capabilities like L2 TLB or block-fetch buffers to minimize translation latency.

System MMUs are in many to one relation with peripheral devices, i.e. single peripheral device might have multiple System MMUs (usually one for each bus master), but one System MMU can handle transactions from only one peripheral device. The relation between a System MMU and the peripheral device needs to be defined in device node of the peripheral device.

MFC in all Exynos SoCs and FIMD, M2M Scalers and G2D in Exynos5420 has 2 System
MMUs.
* MFC has one System MMU on its left and right bus.
* FIMD in Exynos5420 has one System MMU for window 0 and 4, the other system MMU
  for window 1, 2 and 3.
* M2M Scalers and G2D in Exynos5420 has one System MMU on the read channel and
  the other System MMU on the write channel.

For information on assigning System MMU controller to its peripheral devices, see generic IOMMU bindings.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "samsung,exynos-sysmmu"

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 #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "sysmmu"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sysmmu"

Item 2

Exact value (const): "master"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "pclk"

#iommu-cells — required here #

Exact value (const): 0

power-domains — not listed as required here #

Required if the System MMU is needed to gate its power. Please refer to the following document: Documentation/devicetree/bindings/power/pd-samsung.yaml

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

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

sysmmu_gsc0: iommu@13e80000 {
  compatible = "samsung,exynos-sysmmu";
  reg = <0x13E80000 0x1000>;
  interrupt-parent = <&combiner>;
  interrupts = <2 0>;
  clock-names = "sysmmu", "master";
  clocks = <&clock CLK_SMMU_GSCL0>,
           <&clock CLK_GSCL0>;
  power-domains = <&pd_gsc>;
  #iommu-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Unisoc IOMMU and Multi-media MMU

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

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

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

Maintainers (maintainers): "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sprd,iommu-v1"

#iommu-cells — required here #

Exact value (const): 0

Unisoc IOMMUs are all single-master IOMMU devices, therefore no additional information needs to associate with its master device. Please refer to the generic bindings document for more details, Documentation/devicetree/bindings/iommu/iommu.txt

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Reference to a gate clock phandle, since access to some of IOMMUs are controlled by gate clock, but this is not required.

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) #

iommu_disp: iommu@63000800 {
  compatible = "sprd,iommu-v1";
  reg = <0x63000800 0x80>;
  #iommu-cells = <0>;
};
iommu_jpg: iommu@62300300 {
  compatible = "sprd,iommu-v1";
  reg = <0x62300300 0x80>;
  #iommu-cells = <0>;
  clocks = <&mm_gate 1>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2020 Unisoc Inc.

Xen specific IOMMU for virtualized devices (e.g. virtio)

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

Schema identifier ($id): "http://devicetree.org/schemas/iommu/xen,grant-dma.yaml#"

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

Maintainers (maintainers): "Stefano Stabellini <sstabellini@kernel.org>"

The Xen IOMMU represents the Xen grant table interface. Grant mappings are to be used with devices connected to the Xen IOMMU using the "iommus" property, which also specifies the ID of the backend domain. The binding is required to restrict memory access using Xen grant mappings.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xen,grant-dma"

#iommu-cells — required here #

Exact value (const): 1

The single cell is the domid (domain ID) of the domain where the backend is running.

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

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

false

Not allowed by this rule.

Examples (examples) #

iommu {
    compatible = "xen,grant-dma";
    #iommu-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.