From patchwork Mon May 21 14:45:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10415577 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 6ABA860545 for ; Mon, 21 May 2018 14:43:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A4BA2843B for ; Mon, 21 May 2018 14:43:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D2D4288AE; Mon, 21 May 2018 14:43:59 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 D515A2843B for ; Mon, 21 May 2018 14:43:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbeEUOn6 (ORCPT ); Mon, 21 May 2018 10:43:58 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:35041 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbeEUOn6 (ORCPT ); Mon, 21 May 2018 10:43:58 -0400 Received: by mail-pl0-f65.google.com with SMTP id i5-v6so8946053plt.2 for ; Mon, 21 May 2018 07:43:57 -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=fNoLco5anltQnio7PqZNG/uL8DEIeNnx09wtAL0JTG8=; b=rBGtDvLhav5RSXmMfmnVWntlRPxyvmQqLJX9wWiKzK0JjHy1kTfZqn+le+N9RVs289 6VDFhtdA+0rRyVWDqK3z8rVDUVxFfIhun/qMHmtyrTr2AraHH4BF9OTn/PBonxYLu/yr ZLAVhcAcH6Dce/bHL/gl/oOpkVkqxG+Te244a/7BtUFPMW0SJT9XVuN76vY4CAt4MQo/ 32UPOpAXzsBo4Ttasq2ia8P26WTMSrXUU7KmCDlfPNeoLCeQV7guKpmnSvqAPPTT1v9T hCPsQE3jv845hm9fbfw1oYx1+w//y53wt2RkQndUNLdjNVTWEz4h+VhuqruJMaklvIT4 8OyQ== 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=fNoLco5anltQnio7PqZNG/uL8DEIeNnx09wtAL0JTG8=; b=H7vKawU9YkVjX+yaoX8gVhGLnrXfy0WlrwuB5Jb1HR60uDUY0nPxNoZQwtEfUbyd7E ip4dG2iUVAcwRt/OxJdyCkFIV/a65NgGZ+GbWQzZifMonn0UW6fMVSLSZWFa/UXQszNA cHp/24GVgsDkywnA7GEwXyQdCZUMUgCZiXeYswUK8b/cF3HeRLFLODTvfp5DS/g2jtD5 d0UVXMkCNxSUYR2cf7kN/kWM+pvin/LoYB2JSbseSxIzblLyGj/BBTpqtDahk2WI18qE /Be1nEwoYWkMmK7YDbgAoe/lAVIJfJGBftvkJHmmDb0TwARMVQ9h0nKysaqelJHRfdTH otCA== X-Gm-Message-State: ALKqPwdEE22nV/eOeh7z0QbJ9lvPCoSop1tkfXhyksvjU0ZT5EM/zwgX Mt90Qk2h3NpC9OzTp4Ot5xDJKgt1 X-Google-Smtp-Source: AB8JxZrLcq1Ar/hNuYwSJKRwu5tEGBpw+TZDLjvYiaYa0zcSJmTBxJJ39v19J52PXiDHGQuC/usquw== X-Received: by 2002:a17:902:4545:: with SMTP id m63-v6mr21208351pld.268.1526913837152; Mon, 21 May 2018 07:43:57 -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 o84-v6sm32564056pfi.27.2018.05.21.07.43.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 07:43:55 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm Date: Mon, 21 May 2018 23:45:10 +0900 Message-Id: <152691391024.29667.17698981264851738340.sendpatchset@little-apple> In-Reply-To: <152691388485.29667.16990860330809844193.sendpatchset@little-apple> References: <152691388485.29667.16990860330809844193.sendpatchset@little-apple> Subject: [PATCH 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes 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 Add IPMMU device nodes for the R-Car E3 SoC aka r8a77990. The r8a77990 IPMMU is similar to r8a77995. Power domains are however different but the documentation seems unclear. As expected VC0 belongs to R8A77990_PD_A3VC however VP0 is for now assigned to R8A77990_PD_ALWAYS_ON even though the IPMMU data sheet lists it as part of A3VP. What I can tell A3VP is not implemented on E3 so the data sheet probably needs an update. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman --- Developed on top of renesas-devel-20180518-v4.17-rc5 arch/arm64/boot/dts/renesas/r8a77990.dtsi | 82 +++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a77990.dtsi 2018-05-21 22:44:00.350607110 +0900 @@ -7,6 +7,7 @@ #include #include +#include / { compatible = "renesas,r8a77990"; @@ -191,6 +192,87 @@ #power-domain-cells = <1>; }; + ipmmu_ds0: mmu@e6740000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe6740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 1>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_hc: mmu@e6570000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe6570000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 2>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = , + ; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mp: mmu@ec670000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xec670000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 4>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_pv0: mmu@fd800000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfd800000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 6>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77990_PD_A3VC>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vp0: mmu@fe990000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfe990000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 16>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77990", "renesas,etheravb-rcar-gen3";