Qualcomm Technologies legacy IOMMU implementations
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)