From patchwork Mon May 21 14:44:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10415573 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 9AE2E6053B for ; Mon, 21 May 2018 14:43:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ABC928812 for ; Mon, 21 May 2018 14:43:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F2E8288B2; Mon, 21 May 2018 14:43:44 +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 179F428812 for ; Mon, 21 May 2018 14:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752745AbeEUOnn (ORCPT ); Mon, 21 May 2018 10:43:43 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35959 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbeEUOnk (ORCPT ); Mon, 21 May 2018 10:43:40 -0400 Received: by mail-pf0-f194.google.com with SMTP id w129-v6so7201818pfd.3 for ; Mon, 21 May 2018 07:43:40 -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=X9bsP/eKTG8JmujM/DCXlUhVDLZF7Tpgynh8PTB2tFE=; b=koFWQoA/I4I0vm4q4m3qszMkJfanNdxTRw0tZV16Sj7VRuZvmR1NY20xc1onEW3aZC w4IqOWEdIVNahv9rmuvj84bN/DLhMtimz+uhVfaRniWbj3ZlHiPWrt1OpAkFLwZNaFk0 7YrgGQGEqFVV6fAncA202wslApHMl/a+M/HLCW9cMKOO1mYO3hlUsq2qRiy/QPl+0fsj o/eOcEWSj0ggY2q/ylBXWJXVh84P5AISqlIKPCQtEDEAtFf+Hu52FNay4PGD7HkKomx5 gcYoJ86o4bC1bmD0Q3tFKQFE07irTFT/izrULfzvz1Oj+YjezD0m+vcesfjVpaIPIDBL vSNg== 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=X9bsP/eKTG8JmujM/DCXlUhVDLZF7Tpgynh8PTB2tFE=; b=eBMhv0d3iqD3qxnF4hfIteQpa3Hwlg0/W39RbfJLDgvve+oGNIHTPSQaNBnbGrtp42 a6YDq0kOlwgJB+V9jq91ElpNpb66VJP1rzSyxoT4uqhRg0edLp0cmKcIjFnidAUYu7KB aIlsstkXBoV89c4JO/z2MnFGYGN4Jey7i/C/8WYyuL1WnQZOhNokjWMZnAyjyzy7iznF MPJop2buapsIx/lPubevGGraCmwEMsdvLiTF9eVAs8C1GFIoLFNIm56tBWQ8WCn/qJ7D +hLeXc0/uKGQsyjS7LXH9/jqx+HP5dPNvHWurHSc8ZPQKE9UaP8Q0pumCeJNssTfZIGp sRtQ== X-Gm-Message-State: ALKqPwfjY4R9hr9XjiMjNazxvT55IAct4ZZhd8Sgx89AlF6Xzrj7qpIu 9eHyt6cqQ8hzMoPQEHtIouYOFIEX X-Google-Smtp-Source: AB8JxZqsyxeIS/mGoXfcif5lq8wAjwTZBJ9JxAi1B2v1TA4tCJZa1RbmHXcnqKytnJ9aBHYgyeRp6Q== X-Received: by 2002:a63:4004:: with SMTP id n4-v6mr16213187pga.248.1526913820000; Mon, 21 May 2018 07:43:40 -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 q64-v6sm24222453pfg.180.2018.05.21.07.43.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 07:43:38 -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:44:53 +0900 Message-Id: <152691389327.29667.11748814522423573308.sendpatchset@little-apple> In-Reply-To: <152691388485.29667.16990860330809844193.sendpatchset@little-apple> References: <152691388485.29667.16990860330809844193.sendpatchset@little-apple> Subject: [PATCH 01/03] arm64: dts: renesas: r8a77965: 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 M3-N SoC aka r8a77965. The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman --- Developed on top of renesas-devel-20180518-v4.17-rc5 The DT binding for the M3-N IPMMU has earlier been documented in: [PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings arch/arm64/boot/dts/renesas/r8a77965.dtsi | 89 +++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a77965.dtsi 2018-05-21 21:45:17.360607110 +0900 @@ -611,6 +611,95 @@ dma-channels = <16>; }; + ipmmu_ds0: mmu@e6740000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe6740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 1>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_hc: mmu@e6570000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe6570000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 2>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77965_PD_A3IR>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = , + ; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mp: mmu@ec670000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xec670000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 4>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_pv0: mmu@fd800000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfd800000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 6>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77965_PD_A3VC>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vp0: mmu@fe990000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfe990000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 16>; + power-domains = <&sysc R8A77965_PD_A3VP>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77965", "renesas,etheravb-rcar-gen3";