dt-bindings: iommu: Add clock and pd for rockchip iommu
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / iommu / rockchip,iommu.txt
1 Rockchip IOMMU
2 ==============
3
4 A Rockchip DRM iommu translates io virtual addresses to physical addresses for
5 its master device.  Each slave device is bound to a single master device, and
6 shares its clocks, power domain and irq.
7
8 Required properties:
9 - compatible      : Should be "rockchip,iommu"
10 - reg             : Address space for the configuration registers
11 - interrupts      : Interrupt specifier for the IOMMU instance
12 - interrupt-names : Interrupt name for the IOMMU instance
13 - clocks          : Iommu share clocks with master, to make map buffer success
14                     when master disable clocks, iommu should control related
15                     clocks itself
16 - clock-names     : Iommu related clock name, it should be "aclk" and "hclk" on
17                     RK3399 SoC platform
18 - power-domains   : Iommu share power-domains with master, it have the same purpose
19                     with the clocks
20 - #iommu-cells    : Should be <0>.  This indicates the iommu is a
21                     "single-master" device, and needs no additional information
22                     to associate with its master device.  See:
23                     Documentation/devicetree/bindings/iommu/iommu.txt
24
25 Example:
26
27         vopl_mmu: iommu@ff8f3f00 {
28                 compatible = "rockchip,iommu";
29                 reg = <0x0 0xff8f3f00 0x0 0x100>;
30                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
31                 interrupt-names = "vopl_mmu";
32                 clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>;
33                 clock-names = "aclk", "hclk";
34                 power-domains = <&power RK3399_PD_VOPL>;
35                 #iommu-cells = <0>;
36         };