From patchwork Tue Dec 15 13:27:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7854681 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 52036BEEE1 for ; Tue, 15 Dec 2015 13:25:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 78ACE201BB for ; Tue, 15 Dec 2015 13:25:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6EBC2017E for ; Tue, 15 Dec 2015 13:25:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933190AbbLONZW (ORCPT ); Tue, 15 Dec 2015 08:25:22 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:32988 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932176AbbLONZW (ORCPT ); Tue, 15 Dec 2015 08:25:22 -0500 Received: by mail-pf0-f182.google.com with SMTP id n128so4909498pfn.0 for ; Tue, 15 Dec 2015 05:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=ghrriTWX0EPoOGDfMVi60ZA1X7rswTC2VemFG8Cw1EA=; b=nI8rrFJIxF3OkD41CjQ8U2aG9Agfwnfo5JqZ62sa53xy1SxiV7+JU7M5x8143w9ECz UT60+j8tI3gmxFbdMrloJzjWScUC1i1jwNC7dkaNJBF9Lru4vAZmzofQ5h78RatuNenC FaPLNyCovc+cVGdja7kyNhWn7k4UG/dbWB2cKlQyDQUywCo5E1yagE//a16DLSfmmMFN VogUP9vMJ8KdE22EW2VcQmKufcWyOp54ZDo7FjYNwI4jQOOdI1oADEkR6FeMQ/j+x7iz F16LbeNVve2UygjwX7ULdkNXalXTXjQtpGER8YnodjgIutE7bYPHyQESMI9Sm/9hSGbI h6MQ== X-Received: by 10.98.2.18 with SMTP id 18mr44639953pfc.5.1450185921457; Tue, 15 Dec 2015 05:25:21 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id kp11sm2468764pab.16.2015.12.15.05.25.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2015 05:25:20 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm , laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Date: Tue, 15 Dec 2015 22:27:00 +0900 Message-Id: <20151215132700.15356.86856.sendpatchset@little-apple> In-Reply-To: <20151215132634.15356.29848.sendpatchset@little-apple> References: <20151215132634.15356.29848.sendpatchset@little-apple> Subject: [PATCH/RFC 03/03] ARM: shmobile: r8a7795: Tie in IPMMU with SYS-DMAC0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Hook up IPMMU-MM and IPMMU-DS0 to the r8a7795 DTS and make sure the SYS-DMAC0 is connected to IPMMU-DS0. The DT binding for the IPMMU will change. Not for upstream merge. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0023/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi 2015-12-15 15:13:00.300513000 +0900 @@ -312,6 +312,22 @@ reg = <0 0xe6060000 0 0x50c>; }; + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a7795"; + reg = <0 0xe67b0000 0 0x1000>; /* IPMMU-MM */ + interrupts = , + ; + #iommu-cells = <1>; + status = "okay"; + }; + + ipmmu_ds0: mmu@e6740000 { + compatible = "renesas,ipmmu-r8a7795"; + reg = <0 0xe6740000 0 0x1000>; /* IPMMU-DS0 */ + #iommu-cells = <1>; + status = "okay"; + }; + dmac0: dma-controller@e6700000 { compatible = "renesas,rcar-dmac"; reg = <0 0xe6700000 0 0x10000>; @@ -342,6 +358,14 @@ power-domains = <&cpg>; #dma-cells = <1>; dma-channels = <16>; + iommus = <&ipmmu_ds0 0>, <&ipmmu_ds0 1>, + <&ipmmu_ds0 2>, <&ipmmu_ds0 3>, + <&ipmmu_ds0 4>, <&ipmmu_ds0 5>, + <&ipmmu_ds0 6>, <&ipmmu_ds0 7>, + <&ipmmu_ds0 8>, <&ipmmu_ds0 9>, + <&ipmmu_ds0 10>, <&ipmmu_ds0 11>, + <&ipmmu_ds0 12>, <&ipmmu_ds0 13>, + <&ipmmu_ds0 14>, <&ipmmu_ds0 15>; }; dmac1: dma-controller@e7300000 {