From patchwork Mon Feb 29 14:33:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 8454781 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DDF469F52D for ; Mon, 29 Feb 2016 14:30:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42036201FE for ; Mon, 29 Feb 2016 14:30:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF197201F2 for ; Mon, 29 Feb 2016 14:30:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752672AbcB2OaJ (ORCPT ); Mon, 29 Feb 2016 09:30:09 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:32905 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751390AbcB2OaH (ORCPT ); Mon, 29 Feb 2016 09:30:07 -0500 Received: by mail-pf0-f176.google.com with SMTP id 124so31659792pfg.0; Mon, 29 Feb 2016 06:30:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=PQp4dbLXgc+lTuS6ccxABSMmAWiwFRB12RO6cnaH1h4=; b=OrZ3qaRu7kGTMr3PHBSH07Lh7l7tuiKb7I/aOE8M8XaXslALv4DcMlk8eYz9PQxNln 9pru4LD/2G7PpVBW+akPLx260grs1L5alPscq8d475Eq0pzZI37bI8/75DD65Zchkyc1 nrFI8TA1wdyD4FOBqXh24fACPTaV8qmK7k3LW3mni/JcIhQ7WfaM7B929UipADDSPpES G3TjxeWSsyre3+q7zQ2rKcVqrg5gmeJcoJE/F65BhkIYOWe+Lax4hD8YSbsH7Ghldi7w Y+p8GBipkzO7/6aAKWo++4203r6ay2YvvsS8E19nMZ8OgUaD+UUtqwm2zAOwtOOZ11qT Kb0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:date:message-id:subject; bh=PQp4dbLXgc+lTuS6ccxABSMmAWiwFRB12RO6cnaH1h4=; b=kHnD6CqT8AdpUeQLOWA+JGnvPbGZtdhNO1UuAp+bXSCyy+pEBPVC1Uas7JxFqkDBL/ sjUqG64W5ZdUXXVEQzalU1FE6hPX6zanBv056K+4MVxQiHEXWszwb/XiP1eR6pm6B9KY J2bK8qqwI+xQR9/JrFXkuDvedZQ52mLpz9NgCXlkXScGuJ2iPDc1MW4zCk5bgn2js8O6 MTpmX6mjlvlty4cghI5mbd6/F8URx8uMnr3YLBoxOLMcD5giJL38Zu4jRNHeQI4Xhs6Q sAMXztofYiSXnOtxhL68Qdzu4JhCcIio7Y4HDCw/tqt/BWAXAbo/Z5fKt6+BAF9ZJ+r4 ivzQ== X-Gm-Message-State: AD7BkJJoBcPwgim4fvOgmHMFCbijI45Mr4kizI27KYzluVQd8YseF3sJeglVxiEJFFF+kQ== X-Received: by 10.98.86.142 with SMTP id h14mr7304829pfj.78.1456756205895; Mon, 29 Feb 2016 06:30:05 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id x88sm38653031pfi.66.2016.02.29.06.30.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Feb 2016 06:30:04 -0800 (PST) From: Magnus Damm To: devicetree@vger.kernel.org Cc: mark.rutland@arm.com, laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, joro@8bytes.org, linux-renesas-soc@vger.kernel.org, iommu@lists.linux-foundation.org, robh+dt@kernel.org, galak@codeaurora.org, horms+renesas@verge.net.au, Magnus Damm Date: Mon, 29 Feb 2016 23:33:09 +0900 Message-Id: <20160229143309.28517.77269.sendpatchset@little-apple> Subject: [PATCH] iommu/ipmmu-vmsa: Add r8a7795 DT binding Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Update the IPMMU DT binding documentation to include the r8a7795 compat string as well as the "renesas,ipmmu-main" property that on r8a7795 will be used to describe the topology and the relationship between the various cache IPMMU instances and the main IPMMU. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman --- Written against linux-next tag next-20160229 Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt | 15 ++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) --- 0001/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt +++ work/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt 2016-02-29 23:25:15.540513000 +0900 @@ -7,23 +7,34 @@ connected to the IPMMU through a port ca Required Properties: - - compatible: Must contain SoC-specific and generic entries from below. + - compatible: Must contain SoC-specific and generic entry below in case + the device is compatible with the R-Car Gen2 VMSA-compatible IPMMU. - "renesas,ipmmu-r8a73a4" for the R8A73A4 (R-Mobile APE6) IPMMU. - "renesas,ipmmu-r8a7790" for the R8A7790 (R-Car H2) IPMMU. - "renesas,ipmmu-r8a7791" for the R8A7791 (R-Car M2-W) IPMMU. - "renesas,ipmmu-r8a7793" for the R8A7793 (R-Car M2-N) IPMMU. - "renesas,ipmmu-r8a7794" for the R8A7794 (R-Car E2) IPMMU. + - "renesas,ipmmu-r8a7795" for the R8A7795 (R-Car H3) IPMMU. - "renesas,ipmmu-vmsa" for generic R-Car Gen2 VMSA-compatible IPMMU. - reg: Base address and size of the IPMMU registers. - interrupts: Specifiers for the MMU fault interrupts. For instances that support secure mode two interrupts must be specified, for non-secure and secure mode, in that order. For instances that don't support secure mode a - single interrupt must be specified. + single interrupt must be specified. Not required for cache IPMMUs. - #iommu-cells: Must be 1. +Optional properties: + + - renesas,ipmmu-main: reference to the main IPMMU instance in two cells. + The first cell is a phandle to the main IPMMU and the second cell is + the interrupt bit number associated with the particular cache IPMMU device. + The interrupt bit number needs to match the main IPMMU IMSSTR register. + Only used by cache IPMMU instances. + + Each bus master connected to an IPMMU must reference the IPMMU in its device node with the following property: