From patchwork Wed Oct 1 10:20:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 5010791 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BFC52BEEA6 for ; Wed, 1 Oct 2014 10:21:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E22D620220 for ; Wed, 1 Oct 2014 10:21:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E7C82013A for ; Wed, 1 Oct 2014 10:21:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XZH2Y-0003Qa-Sp; Wed, 01 Oct 2014 10:21:46 +0000 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XZH2K-0003E8-04 for linux-rockchip@lists.infradead.org; Wed, 01 Oct 2014 10:21:32 +0000 Received: by mail-pd0-f181.google.com with SMTP id z10so13208pdj.26 for ; Wed, 01 Oct 2014 03:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8JwWjChDMEt9PF/DmG+aCtBE5chXJVoV6vuO9wgp3+Q=; b=iY1K1FR997tLMfJmlklr8YjLe2pAf4fsbH1bsBYUrVaBeysHW4cGjof+4w55BmgcQD qkDdFQCgNEfoBoVQQB9PZwScXnjY9Z1zG4uNJW0R4UlEYiJoqylxxg3rWN+4Z+Uz3dko HYReVjl+NJbBpKY3uXxZNxGxZSq71VFBvXpdE= 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:subject:date:message-id:in-reply-to :references; bh=8JwWjChDMEt9PF/DmG+aCtBE5chXJVoV6vuO9wgp3+Q=; b=mQc7mYk2JT4suXQD5B61ZPDCHout+kKo5HM1X9g22s1F6FeyPL7+9IZV4spgpF08ZL zZMBxhyu69veKqo2lOd9OCjcozjRbhSl6tjl3hE3qYZJtkIckoWnLduGTk1o9ec1XWwA 8uEuHP3OnrC0lENZrVUlwLhyr+7YlcHgQHJuwk7bAPnSo1sH1zC7jAFE82SWVkBVkr7g LQ13Du4XWsdzsdW/SLYe2+ngRvxDBNKQnaeieNc4n6WwhaKkcLxBo2iYOTFEcLZZntE3 3j7oEWHIrH6a7AF/wN++e4Ga0JoUBxMreVE/I2Qx9kcvVVQedGlIq2CoP1i/k/vV2Ylu +qHg== X-Gm-Message-State: ALoCoQkRfGcoAOEO/CFrO7OpxG/PDIPOGE027uGMie/jMofSPXhwCiJEk3jiWs+Qbt98+JXduAoI X-Received: by 10.68.238.196 with SMTP id vm4mr76228170pbc.45.1412158870884; Wed, 01 Oct 2014 03:21:10 -0700 (PDT) Received: from djkurtz-z620.tpe.corp.google.com (djkurtz-z620.tpe.corp.google.com [172.30.210.61]) by mx.google.com with ESMTPSA id nq11sm657211pdb.17.2014.10.01.03.21.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 03:21:09 -0700 (PDT) From: Daniel Kurtz To: Joerg Roedel , Heiko Stuebner Subject: [PATCH 2/3] dt-bindings: iommu: Add documentation for rockchip iommu Date: Wed, 1 Oct 2014 18:20:42 +0800 Message-Id: <1412158843-8115-3-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1412158843-8115-1-git-send-email-djkurtz@chromium.org> References: <1412158843-8115-1-git-send-email-djkurtz@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141001_032132_058426_553BA7C4 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Simon Xue , Pawel Moll , Ian Campbell , Grant Grundler , linux-kernel@vger.kernel.org, Daniel Kurtz , linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, Rob Herring , Kumar Gala , Grant Likely , =?UTF-8?q?St=C3=A9phane=20Marchesin?= , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Add binding documentation for Rockchip IOMMU. Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue --- .../devicetree/bindings/iommu/rockchip,iommu.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/rockchip,iommu.txt diff --git a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt new file mode 100644 index 0000000..810e058 --- /dev/null +++ b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt @@ -0,0 +1,26 @@ +Rockchip IOMMU +============== + +A Rockchip DRM iommu translates io virtual addresses to physical addresses for +its master device. Each slave device is bound to a single master device, and +shares its clocks, power domain and irq. + +Required properties: +- compatible : Should be "rockchip,iommu" +- reg : Address space for the configuration registers +- interrupts : Interrupt specifier for the IOMMU instance +- interrupt-names : Interrupt name for the IOMMU instance +- #iommu-cells : Should be <0>. This indicates the iommu is a + "single-master" device, and needs no additional information + to associate with its master device. See: + Documentation/devicetree/bindings/iommu/iommu.txt + +Example: + + vopl_mmu: iommu@0xff940300 { + compatible = "rockchip,iommu"; + reg = <0xff940300 0x100>; + interrupts = ; + interrupt-names = "vopl_mmu"; + #iommu-cells = <0>; + };