From patchwork Mon May 21 14:45:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10415575 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 6B01E600CC for ; Mon, 21 May 2018 14:43:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C2872843B for ; Mon, 21 May 2018 14:43:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 510FF288AE; Mon, 21 May 2018 14:43:51 +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 B633B2843B for ; Mon, 21 May 2018 14:43:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752727AbeEUOnu (ORCPT ); Mon, 21 May 2018 10:43:50 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34642 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752746AbeEUOnt (ORCPT ); Mon, 21 May 2018 10:43:49 -0400 Received: by mail-pl0-f66.google.com with SMTP id ay10-v6so8956882plb.1 for ; Mon, 21 May 2018 07:43:49 -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=+HtMajYltcJn2836hoAhAR3hWx5WSMAuG011CgeUCxw=; b=XkXIBv3ieljvoYd5JQOJRHA3g5kbNzMSYVEpTIFHixGgb+D5Lo7YSliVRTs70//85k VToveWO9/+bb1Y+fC4u55vueMrWvOPLjEEyXBGNUiQkpKy9dHhdFo8GJnqlqTHUGYN+x eSQrfEN2tbEPt0SL4AwRNUVj31TOzfWtlUHmOV1sSwzUsHnxBuqEoHgcH/SFbU6f6xyG vzjU3K6bjDcg3Mc9+f1RDOCuPVb46FYuBeqpDsJZc3EbOMwv+3bJt8utCZxXoJpu/6za X2p6e4VhE7NLNeFkVXDv7kkHL93UG4+xGfxes988U/0HCoFKM9eri1icUjYfdWf/czwx RHSw== 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=+HtMajYltcJn2836hoAhAR3hWx5WSMAuG011CgeUCxw=; b=Wn4c+/aDJWcK1J2UUJ8U44x0VXFnZsn5Qu+AE8KANfS9azhAJU9TxFJknN32Vuj0bl brS0qbQA0ZWM0luFuBgOON7lNzmjMn+I6tNV94+WG7Y2PgxVxw7h8hMXVtxNz9/JTkRk sIvwZAmjOLkzqMdme0xF9+VTf5rSukhAOU+iNkl4/9JrS39UGZ0qjuYz0/fpzL+4fdT9 3oGL5a/fM3mQW6hls8C2Z6q+R56vW5GwSAzIIvsS+IdaCd+a5I1fAF8liV0NwIeX9o1X yIz6qxOI0tT5JJFdR8QdnRBHKn7zYLlaZvTAheEOUcQ5B3JkQBCJh69roeo9KMOAelP0 NQsw== X-Gm-Message-State: ALKqPwfiofQUZiUjN76fJmgIyIYORYWCSUqx3AdiGI7I2Ga78bYBXqw1 XtAKo2AXY5QFVQmGjgVbIv4a/2zh X-Google-Smtp-Source: AB8JxZquV+SolhYpUQkDgdFObm26qRboqgrMVh+aH5MiRIvkPZ2kKf+EaPnTTtuwQ4Qt9frODPuRXw== X-Received: by 2002:a17:902:7844:: with SMTP id e4-v6mr20459523pln.296.1526913828520; Mon, 21 May 2018 07:43:48 -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 u4-v6sm34150608pgn.10.2018.05.21.07.43.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 07:43:47 -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:01 +0900 Message-Id: <152691390170.29667.18382622980928156135.sendpatchset@little-apple> In-Reply-To: <152691388485.29667.16990860330809844193.sendpatchset@little-apple> References: <152691388485.29667.16990860330809844193.sendpatchset@little-apple> Subject: [PATCH 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 --- Developed on top of renesas-devel-20180518-v4.17-rc5 arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 @@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>; + }; + mmc0: mmc@ee140000 { compatible = "renesas,sdhi-r8a77980", "renesas,rcar-gen3-sdhi";