Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2750819pxv; Sun, 27 Jun 2021 07:42:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJI9jvL1+pgnCWTmqAYIMD9zah/mJGeaKBq2L0fK9ZI+Kj4FyDfwrZtZgo7Ov/p990r9G8 X-Received: by 2002:a05:6402:516b:: with SMTP id d11mr27549860ede.252.1624804950595; Sun, 27 Jun 2021 07:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624804950; cv=none; d=google.com; s=arc-20160816; b=Naamiix/tzfSxxTUnfmDuZUq/d8atKng/tDA/xwkKh37zkIpLlE2KOkP/oguQUEWHs MkcJdEtSxrUOExiw4t5/+2HaboQ4oEC2fkUKgfhjsds2QyCFSn3fnTBltoSBGJMbpm9t hhDwoCQDbdTBzx8hJ1IpdTGWmBIAfNUf8j6FL+YrovzKgAzqvvn5Ewm7Kd0IapjUUvY0 eBOtyllCl9y03AmJ/zCOkYzgWuU4ddXk3+McLIDZnTvyWH3hLCA6knSNIH150ICGBYIz P1RqBMl3D4jAK5noR8oCsVw1cVWhlNSoSrzHAjihfWpP5jR2i4oeJWKyKR7mRF9AgcTx i42Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=zjKOSKJOLRXxEvp9vWIrYnPwlGb51esD71NNHk1QI88=; b=rdRAyOTjxGQVR2O3+Aob7G6WKF3BpIYu0TO6p9Zd7HlJPdpc5ihCfuWJwOlvBe/KDI I7CQ/K5NzSx8K0qcjm/zaW3psOnltyk17QGyyigtl1Los35727gMCBptngC6wrQM8vnb VzjsdfqIijC/0Il0VRQ3aHRcDRd4lzesSFX8EtEC77aW7ByPHdHlYjkerl2945I+TjFm tc6Du/sV6j1hZp57sQD8AJJIwyANDvuEfCfG467G6FkafhMr3vRYQdEwPirTnh7wWyOp IkSl2da2FNiCCGYQIbcaT3qCusGcfmHiDq4zpY7nmKp1sjLf8HpzK92MbBosTqS3CiNu kpnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm1 header.b=dG6VBXyB; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="E/8SALpV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx12si11323982ejc.658.2021.06.27.07.42.06; Sun, 27 Jun 2021 07:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm1 header.b=dG6VBXyB; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="E/8SALpV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231260AbhF0Oj6 (ORCPT + 99 others); Sun, 27 Jun 2021 10:39:58 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:46313 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbhF0Ojx (ORCPT ); Sun, 27 Jun 2021 10:39:53 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 76F8B580708; Sun, 27 Jun 2021 10:37:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 27 Jun 2021 10:37:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=zjKOSKJOLRXxE vp9vWIrYnPwlGb51esD71NNHk1QI88=; b=dG6VBXyBYtc/OpLWTLLnj2Qxw6lG6 J8mO4ATEh+pwa+Q+F/rYZtX7OOtgd8hpZJ0U8IBo9GfVIvqW+1XFCCLDnRXXFVD8 pvdEEZAk6SmBtVgbDjHsJcq/Gjb9PWjh2NFd74y5PtyAIpjZjE0iG+ogAEg7NMQC vtJR4KCkCNw1fIgYsAiVdz+odx/cy9j8okMbbl0r27LawSwVeAhvpeNK9wSkxjjV J1Mpos/iO2dIV/MR81LR6Xk1RKpx0HlxUf10H8dcBpMx0hfhtWFUkriF/d0P0qqt BQ07UThsk38ioDYhfxX9xQUYCk2QVLHa2zs1ZCiAKCINbU9JCFqxz9LMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=zjKOSKJOLRXxEvp9vWIrYnPwlGb51esD71NNHk1QI88=; b=E/8SALpV Oe9O1AKtLIj8sU3pJMt0YukeRbOKat+h1gQtDBAd1UEVkxM5z3Es3XXfxeyL/YBf bsjUnPA7yRlk54AWPIEyWVBW0oiDEgauL/jpm3RnP4bzJPsApZ/NbOTp8kVM7O+x kKispA+EGBFZY27ZSZJ2XX0XcHOm2C/vxgbVBNi1TLWjmJoyaifoZklkOciok7A4 DpeWkgUN8nTlEYHGYpuE9mVx1bD3uyN+3PuNTjThrlnPJKysZ8zhM1ZkecmhWzLE 08h8Tlj/1omtbmDayTmEoDrpJet8RrjKrQXkbCWTMdwILsSYSvf2VqSKJnXvHPp/ l75m4Cnjbh9+KQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehvddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcu rfgvthgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvg hrnhephfefffejvdekleeitdffiefhhfffveffieejteefhedutdfgffeftdejhedtteeh necuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdr uggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Jun 2021 10:37:26 -0400 (EDT) From: Sven Peter To: Will Deacon , Robin Murphy , Joerg Roedel Cc: Sven Peter , Arnd Bergmann , devicetree@vger.kernel.org, Hector Martin , linux-kernel@vger.kernel.org, Marc Zyngier , Mohamed Mediouni , Stan Skowronek , linux-arm-kernel@lists.infradead.org, Mark Kettenis , iommu@lists.linux-foundation.org, Alexander Graf , Alyssa Rosenzweig , Rob Herring , r.czerwinski@pengutronix.de, Rob Herring Subject: [PATCH v4 2/3] dt-bindings: iommu: add DART iommu bindings Date: Sun, 27 Jun 2021 16:34:04 +0200 Message-Id: <20210627143405.77298-3-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20210627143405.77298-1-sven@svenpeter.dev> References: <20210627143405.77298-1-sven@svenpeter.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DART (Device Address Resolution Table) is the iommu found on Apple ARM SoCs such as the M1. Reviewed-by: Rob Herring Signed-off-by: Sven Peter --- .../devicetree/bindings/iommu/apple,dart.yaml | 81 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/apple,dart.yaml diff --git a/Documentation/devicetree/bindings/iommu/apple,dart.yaml b/Documentation/devicetree/bindings/iommu/apple,dart.yaml new file mode 100644 index 000000000000..94aa9e9afa59 --- /dev/null +++ b/Documentation/devicetree/bindings/iommu/apple,dart.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iommu/apple,dart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple DART IOMMU + +maintainers: + - Sven Peter + +description: |+ + Apple SoCs may contain an implementation of their Device Address + Resolution Table which provides a mandatory layer of address + translations for various masters. + + Each DART instance is capable of handling up to 16 different streams + with individual pagetables and page-level read/write protection flags. + + This DART IOMMU also raises interrupts in response to various + fault conditions. + +properties: + compatible: + const: apple,t8103-dart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: + Reference to the gate clock phandle if required for this IOMMU. + Optional since not all IOMMUs are attached to a clock gate. + + '#iommu-cells': + const: 1 + description: + Has to be one. The single cell describes the stream id emitted by + a master to the IOMMU. + +required: + - compatible + - reg + - '#iommu-cells' + - interrupts + +additionalProperties: false + +examples: + - |+ + dart1: iommu@82f80000 { + compatible = "apple,t8103-dart"; + reg = <0x82f80000 0x4000>; + interrupts = <1 781 4>; + #iommu-cells = <1>; + }; + + master1 { + iommus = <&dart1 0>; + }; + + - |+ + dart2a: iommu@82f00000 { + compatible = "apple,t8103-dart"; + reg = <0x82f00000 0x4000>; + interrupts = <1 781 4>; + #iommu-cells = <1>; + }; + dart2b: iommu@82f80000 { + compatible = "apple,t8103-dart"; + reg = <0x82f80000 0x4000>; + interrupts = <1 781 4>; + #iommu-cells = <1>; + }; + + master2 { + iommus = <&dart2a 0>, <&dart2b 1>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8c5ee008301a..29e5541c8f21 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1240,6 +1240,12 @@ L: linux-input@vger.kernel.org S: Odd fixes F: drivers/input/mouse/bcm5974.c +APPLE DART IOMMU DRIVER +M: Sven Peter +L: iommu@lists.linux-foundation.org +S: Maintained +F: Documentation/devicetree/bindings/iommu/apple,dart.yaml + APPLE SMC DRIVER M: Henrik Rydberg L: linux-hwmon@vger.kernel.org -- 2.25.1