Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752249Ab3JHEjB (ORCPT ); Tue, 8 Oct 2013 00:39:01 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:35775 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880Ab3JHEi5 (ORCPT ); Tue, 8 Oct 2013 00:38:57 -0400 X-AuditID: cbfee691-b7f4a6d0000074fc-6c-52538c5ecb39 Date: Tue, 08 Oct 2013 13:38:53 +0900 From: Cho KyongHo To: Rob Herring Cc: Linux ARM Kernel , Linux IOMMU , Linux Kernel , Linux Samsung SOC , Kukjin Kim , Hyunwoong Kim , Prathyush , Grant Grundler , Joerg Roedel , Keyyoung Park , Subash Patel , Sachin Kamat , Antonios Motakis , kvmarm@lists.cs.columbia.edu, Rahul Sharma , Will Deacon Subject: Re: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs Message-id: <20131008133853.8b8277b70d69e05edd011945@samsung.com> In-reply-to: References: <003c01ce89f3$3abc4bc0$b034e340$@samsung.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.10.14; i686-pc-mingw32) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42I5/e+ZkW5cT3CQwb6NPBZ37p5jtXh15AeT xYL91hadszewW2w+uI7FonfBVTaLxnsT2Cw+njrObrHp8TVWi8u75rBZzDi/j8niwoqN7BZT Fh1mtfj+7Rubxck/vYwWLdd7mSxefjzB4iDo8eTgPCaPNfPWMHrMbrjI4rFz1l12jzvX9rB5 nN+0htlj85J6j8k3ljN69G1ZxejxeZOcx5WjZ5gCuKO4bFJSczLLUov07RK4MtacvcRW8EK+ 4vymeWwNjHcluhg5OCQETCSeT7TvYuQEMsUkLtxbz9bFyMUhJLCMUWLOn8OsEAkTiRXTO9kh EtMZJS51P2SCcCYxSTQtu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i++cSEFtYIExixcNfYHFeAUeJOYs6mEBsToFgiQ/busA2Cwk0MEosfscGcYWFxIWmDnaI ekGJH5PvsUDM1JLYvK2JFcKWl9i85i3zBEaBWUjKZiEpm4WkbAEj8ypG0dSC5ILipPRcI73i xNzi0rx0veT83E2M4JTzTHoH46oGi0OMAhyMSjy8AoeDgoRYE8uKK3MPMUpwMCuJ8AoYBQcJ 8aYkVlalFuXHF5XmpBYfYkwGhsZEZinR5HxgOswriTc0NjEzsjQyszAyMTcnTVhJnPdgq3Wg kEB6YklqdmpqQWoRzBYmDk6pBkaG6hfFFw7Pm3KD02l7/cmTz+KquCLVnm91FoguTRN2Efp5 6Xm5mtIFHfazTbH/atc8e2AZIb1ISeB2jdjZwu2s/+f8vp/Go3Blu3pcR2//y+vF16y33DmS qfgmpaXj3ds1GY/eqO34bSawZpfvIk+F3xlpfAWiup8zfarevpbOPBEeUq+rVaXEUpyRaKjF XFScCABz0lcmfQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4242 Lines: 80 On Mon, 07 Oct 2013 08:44:54 -0500, Rob Herring wrote: > On Fri, Jul 26, 2013 at 6:28 AM, Cho KyongHo wrote: > > Signed-off-by: Cho KyongHo > > --- > > .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ > > arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ > > arch/arm/boot/dts/exynos4210.dtsi | 25 ++ > > arch/arm/boot/dts/exynos4x12.dtsi | 76 +++++ > > arch/arm/boot/dts/exynos5250.dtsi | 291 ++++++++++++++++++++ > > 5 files changed, 617 insertions(+), 0 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt > > > > diff --git a/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt > > b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt > > new file mode 100644 > > index 0000000..92f0a33 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt > > @@ -0,0 +1,103 @@ > > +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory Management Unit) > > + > > +Samsung's Exynos architecture contains System MMU that enables scattered > > +physical memory chunks visible as a contiguous region to DMA-capable peripheral > > +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth. > > + > > +System MMU is a sort of IOMMU and support identical translation table format to > > +ARMv7 translation tables with minimum set of page properties including access > > +permissions, shareability and security protection. In addition, System MMU has > > +another capabilities like L2 TLB or block-fetch buffers to minimize translation > > +latency. > > + > > +A System MMU is dedicated to a single master peripheral device. Thus, it is > > +important to specify the correct System MMU in the device node of its master > > +device. Whereas a System MMU is dedicated to a master device, the master device > > +may have more than one System MMU. > > + > > +Required properties: > > +- compatible: Should be "samsung,exynos4210-sysmmu" > > +- reg: A tuple of base address and size of System MMU registers. > > +- interrupt-parent: The phandle of the interrupt controller of System MMU > > +- interrupts: A tuple of numbers that indicates the interrupt source. > > +- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. > > + Please refer to the following documents: > > + Documentation/devicetree/bindings/clock/clock-bindings.txt > > + Documentation/devicetree/bindings/clock/exynos4-clock.txt > > + Documentation/devicetree/bindings/clock/exynos5250-clock.txt > > + Optional "master" if the clock to the System MMU is gated by > > + another gate clock other than "sysmmu". The System MMU driver > > + sets "master" the parent of "sysmmu". > > + Exynos4 SoCs, there needs no "master" clocks. > > + Exynos5 SoCs, some System MMUs must have "master" clocks. > > +- clocks: Required if the System MMU is needed to gate its clock. > > + Please refer to the documents listed above. > > +- samsung,power-domain: Required if the System MMU is needed to gate its power. > > + Please refer to the following document: > > + Documentation/devicetree/bindings/arm/exynos/power_domain.txt > > + > > +Required properties for the master peripheral devices: > > +- iommu: phandles to the System MMUs of the device > > You have not addressed my comments from the last version. We do not > need 2 (or more) different ways to describe the connection between > masters and iommu's. Use mmu-masters property here to describe the > connection. > Sorry, I forgot to reply. I just thought the meaning of your comment that it should be align with ARM System MMU. I now understand and it should be changed to mmu-masters property because it is now in the kernel. Thank you. > Rob -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/