From patchwork Thu Apr 22 07:24:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 12217829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BDF3C433ED for ; Thu, 22 Apr 2021 07:25:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C55386142F for ; Thu, 22 Apr 2021 07:25:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C55386142F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=BCVkwzyTeFur5lFUAdI+6j3wCZqVsgrEgLyO6RkqzsM=; b=PGX1tPZQbJlmjYepZBmPq0seJ9 skl+gOHc64sXPw2Jq/+XpXnXOhF354TQ9nLxd7zYYCam75A1TfOLn+VjVcEqNaiH17btrsfVbA05P H9b9WvgVNUoY7cH3r6sM7577Ljs7JTiXci0cZaaMGjbxED1vwTfDqgvlg7Oui8ZaTTyaS948RoiO6 Rb9TKAP4NBVmBoj4QrwZSwf630rrQEuOKZgdJIJy6WPXMYOCfwtXZb+HTGN/OffuLUfdKvTlIRpz7 Cp4iYPC/JZf9Bs/4Otw6YNswbjludzr93u/oO8et47jOGg3U9R8x/iFESQYiRxdcvqG6E7dapOpx1 jlvunTlw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZTiK-00G7hY-6C; Thu, 22 Apr 2021 07:25:28 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZTht-00G7g9-EW; Thu, 22 Apr 2021 07:25:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=+uU39nJnaToyDP4butj+M4ZagmefvDXKJP7smbwRIxU=; b=YOkV49yX18Wg9612Fx/uqPAwQO OfpBhGyIRCo+rj755b8S5ye58/V8/I6idXZSRcMDlwCm25p9aSMhbBZrBwbhQ6jZ+SbkBoAEqjBJc tucMueVjTUXT40/WUkubBoybTs9p5YMyg22i78gvBHVB1AMLY9Pl6L6GhFnPda/JBiWlrhrl2aZ0a 57wE7fydlQmKRKOnrFjU7LZ/YaAtq8TTI8oe2sMQHeLvLY86HYrJlJxT68XvoDjYrHG1a50ENOIKP duBj+kmgqmZsvsClwjvyOyIHoypSg0u8TiBoigqjRZWfLAC6eCagIxqdJxdRYaz5v5yPYPYVAzuaN FDEnjddw==; Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZThq-00DS5D-L9; Thu, 22 Apr 2021 07:25:00 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: benjamin.gaignard) with ESMTPSA id 6C3F51F430FA From: Benjamin Gaignard To: joro@8bytes.org, will@kernel.org, robh+dt@kernel.org, heiko@sntech.de, xxm@rock-chips.com Cc: iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH 0/3] IOMMU: Add driver for rk356x Date: Thu, 22 Apr 2021 09:24:39 +0200 Message-Id: <20210422072442.111070-1-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210422_002458_839353_6BF57F61 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This series adds the IOMMU driver for rk356x SoC. Since a new compatible is needed to distinguish this second version of IOMMU hardware block from the first one, it is an opportunity to convert the binding to DT schema. Benjamin Benjamin Gaignard (2): dt-bindings: iommu: rockchip: Convert IOMMU to DT schema dt-bindings: iommu: rockchip: Add compatible for v2 Simon Xue (1): iommu: rockchip: Add support iommu v2 .../bindings/iommu/rockchip,iommu.txt | 38 -- .../bindings/iommu/rockchip,iommu.yaml | 78 ++++ drivers/iommu/rockchip-iommu.c | 422 +++++++++++++++++- 3 files changed, 484 insertions(+), 54 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iommu/rockchip,iommu.txt create mode 100644 Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml