From patchwork Thu May 13 19:09:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12256315 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 5E95EC433ED for ; Thu, 13 May 2021 19:12:19 +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 0DD33613F7 for ; Thu, 13 May 2021 19:12:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0DD33613F7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=manjaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=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:References:In-Reply-To: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:List-Owner; bh=Y3Ba3ffrvhCK+bE+n1NL+xr205S8BV0/MTWQqAR4Inc=; b=mwDZWSqtAIr1DFjUrlvSSl4Sz v32X33OiMFEKLHmpDqrRGBQNwApINLZaVpz6kokxva01xm0lYGLCXSh4zYVAYqr4u0ag7fzkZW9Bx vu6LgW5xGM7uziiXiR3U2LUzKEksLUbLx7u4IRICHrDJBXZgTz8N5PIRK+WdTctCbgUHgbg69aNKh XrmTgl/MOZfVr32BX2XJvFWIYKPbEm/bwtt7vtYDOJT++re4B0Zg2LIGrFXonp/Lhm1fknH1hTPa1 iV9XR2WKkbDgXX4mfvxD46KexGEsQkCqTJWJhaBUp7BmubjXd0Q1N015Mw9b7u9mgH2Bnf0U/YxIE kDazjDrvA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhGi4-006EKg-Dn; Thu, 13 May 2021 19:09:30 +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 1lhGht-006EKG-Uq for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 19:09:14 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=+9cIxMMFTwqNNbHLluyqZpM7NpqTxNP5kmqQj6a9dJw=; b=bhG0gve+A+feWwxKx4xzca85Hy ukdffpgUVSvZSTWUNnmdTrqZAumgkBCpcfHimPyru5zyFOaaKLxUqa/2MA0AmwRwi1gJxPQ1TbkJf T4b8Sp7tpUWeJLrW1g+vyKWZCiMp+81RM4dQmQPlGcZNgEuRt3JbcsQ2RkvV68lQ1npYZGN0YkofS UQvJSTTaHYl1cCluXtZiQMnQYZz7kx9ljFK4IGjFGdN4O22P1DBn7Rpi+zKcc7eZcmz9D8L2m0rSN eYS2DX4r/a4EBTvKa4VYK8R/Wny5xXCMb3Ofih+VtkBW2oHCtPygX26Ihl3X07uayR5tEyl64ZUU6 eYhw6lgg==; Received: from mail.manjaro.org ([2a01:4f8:150:448b::1]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhGhq-00BT2f-PC for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 19:09:12 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id C4FD622241E; Thu, 13 May 2021 21:09:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g8t4LcfrkdlZ; Thu, 13 May 2021 21:09:06 +0200 (CEST) From: Tobias Schramm To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 1/4] ARM: dts: sun8i: v3s: add DMA controller to v3s dts Date: Thu, 13 May 2021 21:09:46 +0200 Message-Id: <20210513190949.2069235-2-t.schramm@manjaro.org> In-Reply-To: <20210513190949.2069235-1-t.schramm@manjaro.org> References: <20210513190949.2069235-1-t.schramm@manjaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_120911_380867_0DFBAB82 X-CRM114-Status: GOOD ( 11.43 ) 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 The Allwinner V3s and V3 feature a DMA controller. This commit adds it to the V3s dtsi. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index eb4cb63fef13..f0296ab46137 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 Icenowy Zheng + * Copyright (C) 2021 Tobias Schramm * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual @@ -172,6 +173,15 @@ nmi_intc: interrupt-controller@1c000d0 { interrupts = ; }; + dma: dma-controller@1c02000 { + compatible = "allwinner,sun8i-v3s-dma"; + reg = <0x01c02000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_DMA>; + resets = <&ccu RST_BUS_DMA>; + #dma-cells = <1>; + }; + tcon0: lcd-controller@1c0c000 { compatible = "allwinner,sun8i-v3s-tcon"; reg = <0x01c0c000 0x1000>; From patchwork Thu May 13 19:09:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12256319 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.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED 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 782ACC433B4 for ; Thu, 13 May 2021 19:12:50 +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 383EF613C1 for ; Thu, 13 May 2021 19:12:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 383EF613C1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=manjaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=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:References:In-Reply-To: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:List-Owner; bh=gbSBHKwhvcLxbSWNr0Nn4ghAR7pywclVBunJK9ufILk=; b=KXI8G+XPhQb0dKPYSv176zOxN AW5j7rvEHeHoo93fOk1xSxWe/PxtkqqPpghrdIUUgnOzq7IKfr1FE2DeQuhxTccTN571Ub24+YW2T yNMIeceL55JibWN2uZv4kMUlpdEphJbXMiFJysHoJlQeggrfe2FTlwnd997jnwNJfUsQr9tPXkcra POBfYbMATejRPLqesDHpex18lzb5Xwzc3LLBOEgfe6Ru6vXzstcCvcE9iwjxBHgdz8dZNSCCJQ7iz N2LagGhGv4pVghZ16vsy9BnzXvl2kr+HdZtL/1eubOiF+c+j+mxiQNnIp4lB5ly0W4eeoVbhiQlHz mO5EU0jLg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhGic-006ENT-Ow; Thu, 13 May 2021 19:10:03 +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 1lhGhu-006EKK-Oe for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 19:09:14 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=6RCKjt9fjpZBtrxP9MNC8BfmvguXe6JO9Sn5wexokYE=; b=lljx2sD9UY8VhWx7k03bm/UKmd oc7v9zEb9shmDIP+YwHYJYtjyIkoX3+uIufuwcVd43LNF3U9jKx/AWjtnNIvBny+pyd1bE5iAqB9A NxnlmLLP/mWLOYAqdZCElRJgCTR18koauuq1SzNs00WX9IBtqX3+H6I4brdpPNSXTtDjav8fHRojG +yYPe/lMJRkBOw3K2YUpi3Jjjzp7MTQaFtDpXG7bhp2yYxRCmxFQkn3JcOQ3gsA6XAKSQWoSgVqkD q8bwUjTUwtAClIBul91G47b8s+yu6TOndFKwEra7H8bE4mxwQhWfhfgcCZBU6XOI8UleGjeM/3iNu mjxayH8A==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhGhr-00BT2h-Bd for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 19:09:13 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 92B55220FF6; Thu, 13 May 2021 21:09:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8tHhJ7DBNBU; Thu, 13 May 2021 21:09:07 +0200 (CEST) From: Tobias Schramm To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 2/4] ARM: dts: sun8i: v3s: add DMA properties to peripherals supporting DMA Date: Thu, 13 May 2021 21:09:47 +0200 Message-Id: <20210513190949.2069235-3-t.schramm@manjaro.org> In-Reply-To: <20210513190949.2069235-1-t.schramm@manjaro.org> References: <20210513190949.2069235-1-t.schramm@manjaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_120911_567810_A22C8706 X-CRM114-Status: UNSURE ( 8.32 ) 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 This commit adds DMA properties to all peripherals supporting DMA on the Allwinner V3s, enabling accelerated data transfer to them. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index f0296ab46137..3eaa8703e2ac 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -285,6 +285,8 @@ crypto@1c15000 { interrupts = ; clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; clock-names = "ahb", "mod"; + dmas = <&dma 16>, <&dma 16>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_CE>; reset-names = "ahb"; }; @@ -446,6 +448,8 @@ uart0: serial@1c28000 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART0>; + dmas = <&dma 6>, <&dma 6>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_UART0>; status = "disabled"; }; @@ -457,6 +461,8 @@ uart1: serial@1c28400 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART1>; + dmas = <&dma 7>, <&dma 7>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_UART1>; status = "disabled"; }; @@ -468,6 +474,8 @@ uart2: serial@1c28800 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART2>; + dmas = <&dma 8>, <&dma 8>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_UART2>; pinctrl-0 = <&uart2_pins>; pinctrl-names = "default"; @@ -547,6 +555,8 @@ spi0: spi@1c68000 { interrupts = ; clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; clock-names = "ahb", "mod"; + dmas = <&dma 23>, <&dma 23>; + dma-names = "rx", "tx"; pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; resets = <&ccu RST_BUS_SPI0>; From patchwork Thu May 13 19:09:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12256321 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 1AD67C433ED for ; Thu, 13 May 2021 19:12:52 +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 B6D7E613BD for ; Thu, 13 May 2021 19:12:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6D7E613BD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=manjaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=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:References:In-Reply-To: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:List-Owner; bh=k7V+H5RpsBdD8rt+iVwjz9SKYQQaZmls4MPzQXwy+e0=; b=UumXjHyYlYepaxiMs5TRN3IZ2 w4LAq73xG4bdzUL/8cOq4oNm80PJ4j+U/oAAqYCmef+AWp56WJxPh7LpJgtkymSC/3f31nDVA0vrL YMCcMN6go78jW45R6oBEbH4uaVUi4JmetyT3KA5rEtFnMJYRNq12KSXiVHyULlMziXWQ016Xh6mYI Gt0x7ORCKz8KE6DW3akZL7pRjsfR5uKrauDKNPRuyKw5aSJanxXCnRQbdZGUNcbn0y5fajSHnoDD1 k1XtTWNy4vNXU+jtXYTw4+rPZAzm5Bt5CrE6I9JzgegU2XmbL0VRy02nyU5hfO0k7XA9qa//qDs4p t7H8mNItA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhGir-006EPR-Lc; Thu, 13 May 2021 19:10:13 +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 1lhGhu-006EKL-VN for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 19:09:15 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=dmPI/lYYAPDMfPP7mOFZgQ9A4PdNHt1hb3e3Lyia+9M=; b=Ohs/UJnf1TNh3P2KkYOjpAvccO 5+yrpj6yCNBauxmr80SS9jKvFAXycnUjtS+H7M0WDteijv3YVcwS2/knR1/rrXrn/6bEw7Do/j7z4 M7N97eOdJmksrRC+0iNhYnpKDfiZOGg3YNX0eIbE1DcQd+4K/ZxBT+CCJ8Zyrf+7Sf+dSWccXxLAB W50LhcCSrTGxzOawtwPUGjW9RA/tjn7hFjtbwNZKf0F3N/ziJX5r9/watAlLYPQKVl5q471GC4bhx YkNE05LWdcaLqTg4MgygqvqfUEQoThsWvKedEZM+6H1lGPtmxeFdo7nK0ybqY4qyve5gqVz8v1A39 EuOcHy3w==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhGhs-00BT3F-Es for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 19:09:13 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 28E36221113; Thu, 13 May 2021 21:09:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jzYOIA_fJ-7w; Thu, 13 May 2021 21:09:08 +0200 (CEST) From: Tobias Schramm To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 3/4] ARM: dts: sun8i: v3s: add analog codec and frontend to v3s dts Date: Thu, 13 May 2021 21:09:48 +0200 Message-Id: <20210513190949.2069235-4-t.schramm@manjaro.org> In-Reply-To: <20210513190949.2069235-1-t.schramm@manjaro.org> References: <20210513190949.2069235-1-t.schramm@manjaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_120912_663176_28335EF4 X-CRM114-Status: UNSURE ( 9.20 ) 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 The Allwinner V3s and V3 SoCs feature an integrated analog audio codec. Additionally both have an analog frontend with mixers and amplifiers for the codec. The analog frontend is identical to that on the Allwinner H3 SoC. This commit adds both, the analog codec and its frontend to the V3s dtsi. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 3eaa8703e2ac..7abc51c79f62 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -441,6 +441,25 @@ lradc: lradc@1c22800 { status = "disabled"; }; + codec: codec@1c22c00 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun8i-v3s-codec"; + reg = <0x01c22c00 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; + clock-names = "apb", "codec"; + resets = <&ccu RST_BUS_CODEC>; + dmas = <&dma 15>, <&dma 15>; + dma-names = "rx", "tx"; + allwinner,codec-analog-controls = <&codec_analog>; + status = "disabled"; + }; + + codec_analog: codec-analog@1c23000 { + compatible = "allwinner,sun8i-h3-codec-analog"; + reg = <0x01c23000 0x4>; + }; + uart0: serial@1c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>; From patchwork Thu May 13 19:09:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12256323 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 F1DD2C433ED for ; Thu, 13 May 2021 19:13:07 +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 B5C57613C1 for ; Thu, 13 May 2021 19:13:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5C57613C1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=manjaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=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:References:In-Reply-To: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:List-Owner; bh=wbHAGssaQndISWbzccyVdgfWeLFiXVpr+gE++ZvUsMQ=; b=nxUhfisjImtSG5yhE1CYEBTgZ bA8xnZczV7LbTdTxtqmROCNBSDxhOmpscx3K4meSSAfeg6WM+9cJz4xq65yPS0PeyW/aCF8dL1Qjf LmBt2G/LYzwj35O+/52/phXXim0LrVLzzuoDS2HTJsxt1d9bCyuOojgfpsMRdQfwd/Bq0itfanem2 s90cOHzKCSkRvhdQ/zO3Snn3X12nGteV0BqxYl7T7aMzmQSKmyoGTHqSLP93QPexQvPzuKHnC6LNe +DQlu30hQqWWwf7N8uQuaLlErYAnw7W9s7nNa2qKm68Xwq65VdemIw50NlXmz+r303TJZVE723YH+ QWM89p9DQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhGjA-006ER8-9X; Thu, 13 May 2021 19:10:32 +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 1lhGhx-006EKh-SM for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 19:09:20 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=06LqRTUzSdT9Tov+g4m798kBb4tvLoxjyHzqJan8amc=; b=oWugkS6ZnhIOea2ILR7q0RddkS WvUcRk31Be0L4Z499CXR6N/2mY2t0fZXOHCr3c8qVX/pYFlIblTYFIML7zu5u0M8PsQyDtCJ3TtP0 HpuQKR7szQ0/VoeEjSfSz8wl246e1/6n9K1XPEjhqIYGxhMg1AtM5PDdFlNb87kRn9z3FLwPTxBN1 igUnxETrlrkAkDaTmFyrE7Y2BAlNQwOfGi8j6Dl5QR+1kAwdxhbCKv/tNAq1yTWSSqigU7tPQgNPb CXeYvJ0ujmNVWxzM4ALihPbsMWWf8amJtqG3m56Ty5troDaqoVkcAWAsgSeXTdLY/s5TYsMDHr+J/ bTNERMFQ==; Received: from mail.manjaro.org ([2a01:4f8:150:448b::1]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhGhu-00BT49-K4 for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 19:09:16 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id B6D2B221121; Thu, 13 May 2021 21:09:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ITykIUlOmmXw; Thu, 13 May 2021 21:09:08 +0200 (CEST) From: Tobias Schramm To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 4/4] ARM: dts: sun8i: V3: add I2S interface to V3 dts Date: Thu, 13 May 2021 21:09:49 +0200 Message-Id: <20210513190949.2069235-5-t.schramm@manjaro.org> In-Reply-To: <20210513190949.2069235-1-t.schramm@manjaro.org> References: <20210513190949.2069235-1-t.schramm@manjaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_120914_831886_6F3F874D X-CRM114-Status: GOOD ( 10.23 ) 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 The Allwinner V3 SoC features an I2S interface. The I2C peripheral is identical to that in the Allwinner H3 SoC. This commit adds it to the Allwinner V3 dts. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3.dtsi b/arch/arm/boot/dts/sun8i-v3.dtsi index c279e13583ba..0061c49523f2 100644 --- a/arch/arm/boot/dts/sun8i-v3.dtsi +++ b/arch/arm/boot/dts/sun8i-v3.dtsi @@ -1,10 +1,30 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (C) 2019 Icenowy Zheng + * Copyright (C) 2021 Tobias Schramm */ #include "sun8i-v3s.dtsi" +/ { + soc { + i2s0: i2s@1c22000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun8i-h3-i2s"; + reg = <0x01c22000 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; + clock-names = "apb", "mod"; + dmas = <&dma 3>, <&dma 3>; + dma-names = "rx", "tx"; + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_pins>; + resets = <&ccu RST_BUS_I2S0>; + status = "disabled"; + }; + }; +}; + &ccu { compatible = "allwinner,sun8i-v3-ccu"; }; @@ -25,6 +45,11 @@ external_mdio: mdio@2 { &pio { compatible = "allwinner,sun8i-v3-pinctrl"; + i2s0_pins: i2s0-pins { + pins = "PG10", "PG11", "PG12", "PG13"; + function = "i2s"; + }; + uart1_pg_pins: uart1-pg-pins { pins = "PG6", "PG7"; function = "uart1";