From patchwork Mon Mar 20 08:35:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 9634127 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B7035601E9 for ; Mon, 20 Mar 2017 13:10:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A01DC27D0C for ; Mon, 20 Mar 2017 13:10:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 948EE280FC; Mon, 20 Mar 2017 13:10:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2728227D0C for ; Mon, 20 Mar 2017 13:10:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753314AbdCTImK (ORCPT ); Mon, 20 Mar 2017 04:42:10 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35462 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbdCTImD (ORCPT ); Mon, 20 Mar 2017 04:42:03 -0400 Received: by mail-pf0-f196.google.com with SMTP id n11so4734246pfg.2 for ; Mon, 20 Mar 2017 01:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=Z2SxXrSrAqHOuYTQ4RbNKoKa/EdJexjd0KaIeBDUAEU=; b=QdHaHE5YEjfiLqw7F+pt+zz2uOA3f80cO8ia4Fn0vGXIsch9UdqjssHClB+tbUcJ8S 99DRgBxnroRCFrcNgOCCzgmg6DP/PytdcMggNN17X6SYCfzF7RCLiAKsUHc7vmzWrxba i/7s94xtgyWst7r+pPwBMW6GWNSVUFPRQCq41Irb/bV8YAHrVPvo5+uhq49qG+2+diwf W5I5sjaVmtncAEeGHQAoGp87iEOAW0O/qqv5YFjc3ljfkkr7CiB1k9hqG5AqWqP3vyQz Nx1VcWajgpYvc1E1Vw4aqOmuF8Ju6SRUgW48iV6EJc2K/9DP1pUIW8Hd6wcsisPEP8wJ ufwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=Z2SxXrSrAqHOuYTQ4RbNKoKa/EdJexjd0KaIeBDUAEU=; b=fJAKa4rEGU9U5OWkI6bLtwRtc86T9G7TPfdsjBbyngC5ET+DKgsqOOKq586kC145de uP6NfA1wh0EKapyxX4PpUp3Rf+uIhLvrOCx+QG5MUISWJCN1ptxOhZ1lSMwUtelGLVrz iQOO4lW+HQ28IP/Z1dUEiuEF6VvJ+u8T8y7BEEIOYV3rmSH0RYoURZu1aKNCHgezHurz owA9pIemB6VxqZEAj7YyPVhkkbdA8ks4y0wb47xLX+62DtgrunthcwI3eBAlMFYcMv8u 3NNhdFfKsCzeaD0HmMvdKp9zIPCajwMxrPiImZtStOpkwGcz3SuAlxHthVAmvB+ADMoY +F2Q== X-Gm-Message-State: AFeK/H3oISd0kClPUFxrQZyS5d0Mhdfdkr6tYr7P7KwJ1iiOFO0/SkntIN2zWCTfUtAKZw== X-Received: by 10.99.99.198 with SMTP id x189mr29438461pgb.117.1489999265487; Mon, 20 Mar 2017 01:41:05 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id t70sm31294964pfe.64.2017.03.20.01.41.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Mar 2017 01:41:04 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm , laurent.pinchart+renesas@ideasonboard.com, joro@8bytes.org, geert+renesas@glider.be Date: Mon, 20 Mar 2017 17:35:36 +0900 Message-Id: <148999893649.20118.17724268009849243177.sendpatchset@little-apple> In-Reply-To: <148999891819.20118.10698449216124481808.sendpatchset@little-apple> References: <148999891819.20118.10698449216124481808.sendpatchset@little-apple> Subject: [PATCH v3 02/09] arm64: dts: r8a7795: Tie Audio/SYS-DMAC to IPMMU-DS0/1 and MP1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Hook up r8a7795 DMAC nodes to the IPMMUs. In particular Audio-DMAC0 and Audio-DMAC1 get connected to IPMMU-MP1, while SYS-DMAC0 gets tied to IPMMU-DS0 and SYS-DMAC1 and SYS-DMAC2 get tied to IPMMU-DS1. Signed-off-by: Magnus Damm Reviewed-by: Laurent Pinchart --- Changes from V2: - Updated description with more detail about SYS-DMAC and Audio-DMAC - Updated title/subject to include Audio-DMAC - Added Reviewed-by from Laurent - thanks! Changes from V1: - None arch/arm64/boot/dts/renesas/r8a7795.dtsi | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) --- 0002/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi 2017-03-20 15:45:51.330607110 +0900 @@ -548,6 +548,14 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 219>; clock-names = "fck"; + 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>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #dma-cells = <1>; dma-channels = <16>; @@ -581,6 +589,14 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 218>; clock-names = "fck"; + iommus = <&ipmmu_ds1 0>, <&ipmmu_ds1 1>, + <&ipmmu_ds1 2>, <&ipmmu_ds1 3>, + <&ipmmu_ds1 4>, <&ipmmu_ds1 5>, + <&ipmmu_ds1 6>, <&ipmmu_ds1 7>, + <&ipmmu_ds1 8>, <&ipmmu_ds1 9>, + <&ipmmu_ds1 10>, <&ipmmu_ds1 11>, + <&ipmmu_ds1 12>, <&ipmmu_ds1 13>, + <&ipmmu_ds1 14>, <&ipmmu_ds1 15>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #dma-cells = <1>; dma-channels = <16>; @@ -614,6 +630,14 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 217>; clock-names = "fck"; + iommus = <&ipmmu_ds1 16>, <&ipmmu_ds1 17>, + <&ipmmu_ds1 18>, <&ipmmu_ds1 19>, + <&ipmmu_ds1 20>, <&ipmmu_ds1 21>, + <&ipmmu_ds1 22>, <&ipmmu_ds1 23>, + <&ipmmu_ds1 24>, <&ipmmu_ds1 25>, + <&ipmmu_ds1 26>, <&ipmmu_ds1 27>, + <&ipmmu_ds1 28>, <&ipmmu_ds1 29>, + <&ipmmu_ds1 30>, <&ipmmu_ds1 31>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #dma-cells = <1>; dma-channels = <16>; @@ -647,6 +671,14 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 502>; clock-names = "fck"; + iommus = <&ipmmu_mp1 0>, <&ipmmu_mp1 1>, + <&ipmmu_mp1 2>, <&ipmmu_mp1 3>, + <&ipmmu_mp1 4>, <&ipmmu_mp1 5>, + <&ipmmu_mp1 6>, <&ipmmu_mp1 7>, + <&ipmmu_mp1 8>, <&ipmmu_mp1 9>, + <&ipmmu_mp1 10>, <&ipmmu_mp1 11>, + <&ipmmu_mp1 12>, <&ipmmu_mp1 13>, + <&ipmmu_mp1 14>, <&ipmmu_mp1 15>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #dma-cells = <1>; dma-channels = <16>; @@ -680,6 +712,14 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 501>; clock-names = "fck"; + iommus = <&ipmmu_mp1 16>, <&ipmmu_mp1 17>, + <&ipmmu_mp1 18>, <&ipmmu_mp1 19>, + <&ipmmu_mp1 20>, <&ipmmu_mp1 21>, + <&ipmmu_mp1 22>, <&ipmmu_mp1 23>, + <&ipmmu_mp1 24>, <&ipmmu_mp1 25>, + <&ipmmu_mp1 26>, <&ipmmu_mp1 27>, + <&ipmmu_mp1 28>, <&ipmmu_mp1 29>, + <&ipmmu_mp1 30>, <&ipmmu_mp1 31>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #dma-cells = <1>; dma-channels = <16>;