18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/iommu/arm,smmu-v3.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: ARM SMMUv3 Architecture Implementation 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Will Deacon <will@kernel.org> 118c2ecf20Sopenharmony_ci - Robin Murphy <Robin.Murphy@arm.com> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cidescription: |+ 148c2ecf20Sopenharmony_ci The SMMUv3 architecture is a significant departure from previous 158c2ecf20Sopenharmony_ci revisions, replacing the MMIO register interface with in-memory command 168c2ecf20Sopenharmony_ci and event queues and adding support for the ATS and PRI components of 178c2ecf20Sopenharmony_ci the PCIe specification. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciproperties: 208c2ecf20Sopenharmony_ci $nodename: 218c2ecf20Sopenharmony_ci pattern: "^iommu@[0-9a-f]*" 228c2ecf20Sopenharmony_ci compatible: 238c2ecf20Sopenharmony_ci const: arm,smmu-v3 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci reg: 268c2ecf20Sopenharmony_ci maxItems: 1 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci interrupts: 298c2ecf20Sopenharmony_ci minItems: 1 308c2ecf20Sopenharmony_ci maxItems: 4 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci interrupt-names: 338c2ecf20Sopenharmony_ci oneOf: 348c2ecf20Sopenharmony_ci - const: combined 358c2ecf20Sopenharmony_ci description: 368c2ecf20Sopenharmony_ci The combined interrupt is optional, and should only be provided if the 378c2ecf20Sopenharmony_ci hardware supports just a single, combined interrupt line. 388c2ecf20Sopenharmony_ci If provided, then the combined interrupt will be used in preference to 398c2ecf20Sopenharmony_ci any others. 408c2ecf20Sopenharmony_ci - minItems: 2 418c2ecf20Sopenharmony_ci maxItems: 4 428c2ecf20Sopenharmony_ci items: 438c2ecf20Sopenharmony_ci - const: eventq # Event Queue not empty 448c2ecf20Sopenharmony_ci - const: gerror # Global Error activated 458c2ecf20Sopenharmony_ci - const: priq # PRI Queue not empty 468c2ecf20Sopenharmony_ci - const: cmdq-sync # CMD_SYNC complete 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci '#iommu-cells': 498c2ecf20Sopenharmony_ci const: 1 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci dma-coherent: 528c2ecf20Sopenharmony_ci description: | 538c2ecf20Sopenharmony_ci Present if page table walks made by the SMMU are cache coherent with the 548c2ecf20Sopenharmony_ci CPU. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci NOTE: this only applies to the SMMU itself, not masters connected 578c2ecf20Sopenharmony_ci upstream of the SMMU. 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci msi-parent: true 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci hisilicon,broken-prefetch-cmd: 628c2ecf20Sopenharmony_ci type: boolean 638c2ecf20Sopenharmony_ci description: Avoid sending CMD_PREFETCH_* commands to the SMMU. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci cavium,cn9900-broken-page1-regspace: 668c2ecf20Sopenharmony_ci type: boolean 678c2ecf20Sopenharmony_ci description: 688c2ecf20Sopenharmony_ci Replaces all page 1 offsets used for EVTQ_PROD/CONS, PRIQ_PROD/CONS 698c2ecf20Sopenharmony_ci register access with page 0 offsets. Set for Cavium ThunderX2 silicon that 708c2ecf20Sopenharmony_ci doesn't support SMMU page1 register space. 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_cirequired: 738c2ecf20Sopenharmony_ci - compatible 748c2ecf20Sopenharmony_ci - reg 758c2ecf20Sopenharmony_ci - '#iommu-cells' 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciadditionalProperties: false 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ciexamples: 808c2ecf20Sopenharmony_ci - |+ 818c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/arm-gic.h> 828c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/irq.h> 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci iommu@2b400000 { 858c2ecf20Sopenharmony_ci compatible = "arm,smmu-v3"; 868c2ecf20Sopenharmony_ci reg = <0x2b400000 0x20000>; 878c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 74 IRQ_TYPE_EDGE_RISING>, 888c2ecf20Sopenharmony_ci <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>, 898c2ecf20Sopenharmony_ci <GIC_SPI 77 IRQ_TYPE_EDGE_RISING>, 908c2ecf20Sopenharmony_ci <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>; 918c2ecf20Sopenharmony_ci interrupt-names = "eventq", "gerror", "priq", "cmdq-sync"; 928c2ecf20Sopenharmony_ci dma-coherent; 938c2ecf20Sopenharmony_ci #iommu-cells = <1>; 948c2ecf20Sopenharmony_ci msi-parent = <&its 0xff0000>; 958c2ecf20Sopenharmony_ci }; 96