From patchwork Sun Jun 17 10:42:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10468767 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 2D1E3600CC for ; Sun, 17 Jun 2018 10:40:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2059128947 for ; Sun, 17 Jun 2018 10:40:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15647289CF; Sun, 17 Jun 2018 10:40:57 +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 A3BE128947 for ; Sun, 17 Jun 2018 10:40:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933413AbeFQKk4 (ORCPT ); Sun, 17 Jun 2018 06:40:56 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:38803 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932810AbeFQKkz (ORCPT ); Sun, 17 Jun 2018 06:40:55 -0400 Received: by mail-pf0-f195.google.com with SMTP id b74-v6so6817946pfl.5 for ; Sun, 17 Jun 2018 03:40:55 -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=w2wxLeNw0ogVvWV0oN7U7oLXGlWX0PkusuivGzH+zcQ=; b=f6z7dBKZ0DcItOwTLZ7RPk+e9qBc6Q8geb+SZrjTOK6uKTanyVp0kbo2z4BsTMQwaV ERqSTdF1Lg75OA0BqMQCrGxUxthUbh1xgNqoa4SmzNrRrzdfw4ZX6MpVzxgkXPStbnM1 LIjoHoTk6EUq2zUSGfuS+nz3LakUSx6bCPd5RvHMmjS5YXUYc3pBp37qoazmSKmnPFyc PcVB/pYnewjI4vY4WKZ9UNiXxYBeZwPNJ3rH8mlQjjAHpJZ9KoS6Wd0x2wV9Fkukj0Dv iktOwDlkVnekwp2VWYfMs/O+/aM9WSQYYD8NDDVkNYPDmEVX7GMLj1ViDRzv51/m2N1p pHmg== 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=w2wxLeNw0ogVvWV0oN7U7oLXGlWX0PkusuivGzH+zcQ=; b=BHLJ1en1ZcFCof5gJQZYSta/GBz5d/gsZhw0/XX+D49VI7GyXUel5mRmOd9guMXIPS xpG9onrPqf0tz00dKd22aliHBh3keLvLdz2l/8qfRZVqMlrfpX9+mL70uxDdKUlQr3r2 mPoJHLbfejWAPIyrV1kV9RetcR00v/5HaIPGZy4CjwOBPr4yozrgNCtZ4opkUUYKWVfe MZk8OBT2dRFPsTKVR6vZKVQbLulw/doHsRCb6u6L3CLq1qgPdeS5Otc/6vkMnPuI8xia u0LQIsQYkEyyZY3zeU56AfuLRfMfaZOtuQhwSv0JjBukp1aIGvfRvmeU8BEOkz2+65Sb haFA== X-Gm-Message-State: APt69E0KjZ39sZjZr+6Fkmal6Fgbv+VT5QN9B1CONbb4Fd15H+RBe6tV 5A5KLS7DAZ/8DWzvHLJWrgfzCkV8 X-Google-Smtp-Source: ADUXVKKl8rIZnCW5MHjsisVEBTVGLprNh2QYCW3h86a66vHYCI5GfRnRq0+2YLaKTvNHdr7egGj0Ig== X-Received: by 2002:a65:5546:: with SMTP id t6-v6mr7442479pgr.363.1529232055095; Sun, 17 Jun 2018 03:40:55 -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 f9-v6sm13226476pgt.79.2018.06.17.03.40.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jun 2018 03:40:53 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm Date: Sun, 17 Jun 2018 19:42:31 +0900 Message-Id: <152923215125.18394.10152095394019866712.sendpatchset@little-apple> In-Reply-To: <152923212426.18394.1638836062311758848.sendpatchset@little-apple> References: <152923212426.18394.1638836062311758848.sendpatchset@little-apple> Subject: [PATCH v2 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 and the public documentation is still unclear. Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- Changes since V1: - Updated patch description based on information from hardware team - Added Reviewed-by from Simon - thanks! 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 @@ -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";