From patchwork Thu Mar 7 16:58:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 10843417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7120E1515 for ; Thu, 7 Mar 2019 16:59:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 572FD2F657 for ; Thu, 7 Mar 2019 16:59:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4856F2F65C; Thu, 7 Mar 2019 16:59:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E85DE2F657 for ; Thu, 7 Mar 2019 16:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=Lsncofs+0JlOfVXWnRhAHwLPHJDkS/MxBkP0P+6vZio=; b=CJwiopmLevS2fu zghy5pspgydbrVTtgNo+p251SAYMySFsp2vq9794WfrbKvqYOlSdkJ3z0Gc0+BQHSph+6w+VQ9Jiy KrWkSLmIMjeJCr4dIiU01urhhVBrToAZWlktsorEAqtujVMAS0I+P6gMzjK0KTiwS+27gLOD799kW xl6LUl1yJykffQ1uhUdObMRj8AObu3/NNK5DCxbFHWlbaz0Yu1smTyWdVMo8W67LHUgETlGpXXGTH gYZ+CLcquyPkluUhlfGj8PYgkn5y3t5L41B+Imptdg5kJ/1ZP/ChcKZupJHev1pIuh59+zddhBQYh IcrieoDPJE8c5JZmxBsw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1wMe-0001jA-Ug; Thu, 07 Mar 2019 16:59:25 +0000 Received: from mailoutvs23.siol.net ([185.57.226.214] helo=mail.siol.net) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1wM7-00010F-Gy for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 16:58:53 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 6785E5237C4; Thu, 7 Mar 2019 17:58:36 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FzY0lPSKPsIp; Thu, 7 Mar 2019 17:58:36 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 0CB4F523799; Thu, 7 Mar 2019 17:58:36 +0100 (CET) Received: from localhost.localdomain (cpe-86-58-52-202.static.triera.net [86.58.52.202]) (Authenticated sender: 031275009) by mail.siol.net (Zimbra) with ESMTPSA id D2E4D5237B1; Thu, 7 Mar 2019 17:58:34 +0100 (CET) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH 0/6] Allwinner H6 DMA support Date: Thu, 7 Mar 2019 17:58:23 +0100 Message-Id: <20190307165829.9086-1-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_085851_716998_DD7C8609 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, jernej.skrabec@siol.net, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, robh+dt@kernel.org, dmaengine@vger.kernel.org, dan.j.williams@intel.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP DMA engine on H6 is almost the same as on older SoCs. The biggest difference is that it has slightly rearranged bits in registers and it needs additional clock, probably due to iommu. These patches were tested with I2S connected to HDMI. I2S needs additional patches which will be sent later. Please take a look. Best regards, Jernej Jernej Skrabec (6): dt-bindings: arm64: allwinner: h6: Add binding for DMA controller dmaengine: sun6i: Add a quirk for additional mbus clock dmaengine: sun6i: Add a quirk for setting DRQ fields dmaengine: sun6i: Add a quirk for setting mode fields dmaengine: sun6i: Add support for H6 DMA arm64: dts: allwinner: h6: Add DMA node .../devicetree/bindings/dma/sun6i-dma.txt | 9 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 12 ++ drivers/dma/sun6i-dma.c | 147 +++++++++++++----- 3 files changed, 131 insertions(+), 37 deletions(-)