hc
2023-02-14 0cc9b7c44253c93447ddf73e206fbdbb3d9f16b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Rockchip IOMMU
==============
 
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.
 
Required properties:
- compatible      : Should be "rockchip,iommu"
- reg             : Address space for the configuration registers
- interrupts      : Interrupt specifier for the IOMMU instance
- interrupt-names : Interrupt name for the IOMMU instance
- #iommu-cells    : Should be <0>.  This indicates the iommu is a
                    "single-master" device, and needs no additional information
                    to associate with its master device.  See:
                    Documentation/devicetree/bindings/iommu/iommu.txt
- clocks          : A list of clocks required for the IOMMU to be accessible by
                    the host CPU.
- clock-names     : Should contain the following:
   "iface" - Main peripheral bus clock (PCLK/HCL) (required)
   "aclk"  - AXI bus clock (required)
 
Optional properties:
- rockchip,disable-mmu-reset : Don't use the mmu reset operation.
                  Some mmu instances may produce unexpected results
                  when the reset operation is used.
- rk_iommu,disable_reset_quirk  : Same with above, for compatible with previous code
 
- rockchip,skip-mmu-read       : Some iommu instances are not able to be read, skip
                reading operation to make iommu work as normal
 
Example:
 
   vopl_mmu: iommu@ff940300 {
       compatible = "rockchip,iommu";
       reg = <0xff940300 0x100>;
       interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "vopl_mmu";
       clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>;
       clock-names = "aclk", "iface";
       #iommu-cells = <0>;
   };