From patchwork Sun Jun 17 10:42:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10468765 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 CF6396029B for ; Sun, 17 Jun 2018 10:40:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C421328947 for ; Sun, 17 Jun 2018 10:40:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7A85289CF; Sun, 17 Jun 2018 10:40:47 +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 5445428947 for ; Sun, 17 Jun 2018 10:40:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933395AbeFQKkr (ORCPT ); Sun, 17 Jun 2018 06:40:47 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35437 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932810AbeFQKkq (ORCPT ); Sun, 17 Jun 2018 06:40:46 -0400 Received: by mail-pg0-f65.google.com with SMTP id 15-v6so6267802pge.2 for ; Sun, 17 Jun 2018 03:40:46 -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=ITqZIVKF7SdfChZJzJaURoq6Sa75X469zOh7/Dc425k=; b=shGKqRPODepSV20cRIGrJUA9gVZe7lom3JHFSATvw5DJRkLCCg334i81oMHePAoOiu SvsAvcrvqlMFpmA4oRRw6Bhe+pLCkuGNJ80yhrLvKeoLSaezX+0fUQuqEiRsfMcfCfdF /P+LRhZJ8bq8sKvyHWqccisi/vOHVD7y3wQk9ZNf25IboTv+546GsGyR5E7M/RMVYELW PqcYwKf/Zba8TG8YEzqDsDUNAVzhk+SSlV11swrez0Z6ZWP2Hr64ruBFClRS+mczOTxg ampoMNw8qugVsSeJ+bpq1kKa/k0rZbowGIJrfGl5WKef0io5Izwb3veKMjK9GEWnGwhM 8ekQ== 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=ITqZIVKF7SdfChZJzJaURoq6Sa75X469zOh7/Dc425k=; b=shNSrD+xcV3sXo79zLfOqXym92a+WLhtSt1FB7x1VTMzwXsmDFQ60z/zE0VMQC0oH8 qs36dpVsQG6vTLBg/tGrsOE7qJ7b/eNGn9VqXpNmksoxEY2BGzcjA2b0B+s011yJvMLw 4Jn3fZD46/r2BCNGRIDfxjST+T5xfNSpicY53waJFucq8YWaluC8GB55/7HehWToYc1A LJhV/tuhGdW0XJcqRmbLeKqY8yvuh6YBDGVOfdkSxKOdONNAPhtxDLgJ9iY1Q/jbVStx ydlWR9mePMB/EWmuoKReQNCoAR+rwIUw2mWKlLjtkXrumDw4ifceW+Z6rnH7OUk1ufLU /uhw== X-Gm-Message-State: APt69E3cb/JEgEhlhXfSTpO8uIgjRxXG3mQToEKuawtotEWOLeFSwrLl H+5lE84oU8GzSwmgc/aF9Nh7n15J X-Google-Smtp-Source: ADUXVKJhQyKIrC+pXowJAz2JmJi+9wvb0p5IYhr1Biopqx8LOsF79rYFHytYYCRGGMHcqPe3LqzI+A== X-Received: by 2002:a62:8703:: with SMTP id i3-v6mr9255025pfe.115.1529232045693; Sun, 17 Jun 2018 03:40:45 -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 k73-v6sm20563426pfb.31.2018.06.17.03.40.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jun 2018 03:40:43 -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:22 +0900 Message-Id: <152923214214.18394.2028588895827362308.sendpatchset@little-apple> In-Reply-To: <152923212426.18394.1638836062311758848.sendpatchset@little-apple> References: <152923212426.18394.1638836062311758848.sendpatchset@little-apple> Subject: [PATCH v2 02/03] arm64: dts: renesas: r8a77980: 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 V3H SoC aka r8a77980. The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic. Until we know better VC0 gets assigned to R8A77980_PD_ALWAYS_ON. Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven --- Developed on top of renesas-devel-20180614v2-v4.17 Changes since V1: - Added ipmmu_vip0 and ipmmu_vip1 from 1.00 data sheet - Interrupt bit configuration based on 1.00 data sheet - Updated order of DT nodes per request by Simon arch/arm64/boot/dts/renesas/r8a77980.dtsi | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a77980.dtsi @@ -427,6 +427,69 @@ }; }; + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vip0: mmu@e7b00000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe7b00000 0 0x1000>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vip1: mmu@e7960000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe7960000 0 0x1000>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77980_PD_A3IR>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = , + ; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77980", "renesas,etheravb-rcar-gen3";