From patchwork Mon Apr 11 04:46:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12808528 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E585EC433EF for ; Mon, 11 Apr 2022 04:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=3owOphl08GTsOxYODPWjyEL1+UoL4a/Rhma+zXid7Ng=; b=oP4LDNFIv1f4MC 8HuDDT9w45Mlfb3cTjcTtNKA1xdf2cr3zh0M10f6ewuF3/nSk8USuf+DvDlv3VA4+lnTAgKJoNego ICZXuRNog7rK0mNWSyWBqRbAgh4yQsiSuslP9JkX0vaNj0Q9N3Bqyw8kWauNv7ILbdmeawkayN6aA vcIEPSxBVMij8mOtTK3P2LLPV+gFXZgeLmJXQbfPAlAkwV7mfmDjn9XBZtKP2hQZGrxIqiRwia+St uvUJZ7oJPj0XW0/r7YAU715MicDqHE1KbqOxsG9+rX/rWkj0TPugYGH97Y0budDr/6RBMZauwidYY ZJpp8q5mVqOOQEWdDavw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndlwl-006eCd-7t; Mon, 11 Apr 2022 04:46:39 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndlwi-006eC5-OM for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 04:46:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 29DA23200EAD; Mon, 11 Apr 2022 00:46:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Apr 2022 00:46:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1649652394; x=1649738794; bh=o8/btCfUanwlG9sLCfsKkCh5b CVDjWKu+ESIlPdD1uc=; b=G7T15Zi6Xi1QY1QvxNYjpWVTvbidno5Zcn9KpVI// AmbdxU7s5mYUkmsWpPODhsWeWBysKMOytuYeuqunG1KJD8OZN8ETu70mDdnR1+tQ /ZjIL+DUburiv50zkfLd9EJuB/aX02csaUCmMxVWntGwjuyhMuwxRHm94kQSmCtF zayxA9O9+EA2EFB1EH6i4x66p0uuWg7zRgAKxdQzlWAM2pJQX+D0jcWoxQGJxnG2 AEFZ/ibA+cbom6PwDeWvLCo2YnOdA1GD+SJZkT+PaHJyoXpAT6gV+RWrwVFw7hTn kfbVwGLyb0l9akvV4jxcZsIL/U08YbPGcWKCsWfE7owbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1649652394; x=1649738794; bh=o 8/btCfUanwlG9sLCfsKkCh5bCVDjWKu+ESIlPdD1uc=; b=QZqLp9+vqwsxvowaz PCNZbg44QJrUndDwvFy5/ftfGR4VOUSRuaoVI5/ihRwUfo4/boSGTVPKtOMJzdqA qTgbNvUWSp13daFPPYnR5A7g5+BysjI2Tes3ye3p8DBghJhPFSvRYrR/5olwGlGJ /oFakR4HDoyF5iyRn41xJLWkR95LxPvfEgtgZsx3ADNtt9wt914bjGxPnDzNl/d3 NLIev7jdMnDX+AS11/Tw4zo0iMX9q2BTAeSvdoQ6owk5pkH0yvShjWT64aCZT8i7 YHSuxBE+SdDEgR/kC7C/KpMmjMlOY/+Mb8uNKtogbH9dX25XYSk4+8/LPw7cd5UN W2ozA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekhedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Apr 2022 00:46:34 -0400 (EDT) From: Samuel Holland To: Vinod Koul , dmaengine@vger.kernel.org Cc: Samuel Holland , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 0/4] dmaengine: sun6i: Allwinner D1 support Date: Sun, 10 Apr 2022 23:46:28 -0500 Message-Id: <20220411044633.39014-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220410_214636_846893_DC174AE3 X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org D1 is a new RISC-V SoC that uses mostly the same peripherals as existing ARM-based sunxi SoCs. This series adds dmaengine support for D1, after fixing an issue where the driver depended on architecture- specific behavior (patch 2) and resolving a TODO item (patch 3). Changes in v2: - Fix `checkpatch.pl --strict` style issues (missing spaces) Samuel Holland (4): dt-bindings: dma: sun50i-a64: Add compatible for D1 dmaengine: sun6i: Do not use virt_to_phys dmaengine: sun6i: Add support for 34-bit physical addresses dmaengine: sun6i: Add support for the D1 variant .../dma/allwinner,sun50i-a64-dma.yaml | 9 ++- drivers/dma/Kconfig | 2 +- drivers/dma/sun6i-dma.c | 78 +++++++++++++------ 3 files changed, 61 insertions(+), 28 deletions(-)