From 79b943881e8a74ac05d4fde7e32c326e7d97b21e Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 19 Dec 2016 20:24:02 +0800 Subject: [PATCH 1/1] dt-bindings: iommu: Add clock and pd for rockchip iommu Change-Id: I7762dc71253aed0f5e06c0bf66e0bd668b3b4821 Signed-off-by: Simon --- .../devicetree/bindings/iommu/rockchip,iommu.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt index 9a55ac3735e5..9e315158dadd 100644 --- a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt +++ b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt @@ -10,6 +10,13 @@ Required properties: - reg : Address space for the configuration registers - interrupts : Interrupt specifier for the IOMMU instance - interrupt-names : Interrupt name for the IOMMU instance +- clocks : Iommu share clocks with master, to make map buffer success + when master disable clocks, iommu should control related + clocks itself +- clock-names : Iommu related clock name, it should be "aclk" and "hclk" on + RK3399 SoC platform +- power-domains : Iommu share power-domains with master, it have the same purpose + with the clocks - #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: @@ -17,10 +24,13 @@ Required properties: Example: - vopl_mmu: iommu@ff940300 { + vopl_mmu: iommu@ff8f3f00 { compatible = "rockchip,iommu"; - reg = <0xff940300 0x100>; - interrupts = ; + reg = <0x0 0xff8f3f00 0x0 0x100>; + interrupts = ; interrupt-names = "vopl_mmu"; + clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; + clock-names = "aclk", "hclk"; + power-domains = <&power RK3399_PD_VOPL>; #iommu-cells = <0>; }; -- 2.34.1