From patchwork Fri May 14 13:43:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257801 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.5 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 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 46AFEC43460 for ; Fri, 14 May 2021 13:44:47 +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 0484D61355 for ; Fri, 14 May 2021 13:44:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0484D61355 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=KvlHF3+rcncYtPQ4OAo4QcsKxmB/Q2PdcDMdIHATXi4=; b=D9c7E3V5S+PFs83lXcyStYWrA KojUvSKcikJlQtII7ouCcdDG0VkHAJd4dzxc0KOM97/gSvp7NyOuYeAOLVkSkPjweQv50NAVhxjLg QYNsn2Xwks+Yb4ZyooESfpw7h2v+mWk2n8zy8nzWm0R8YZmn9pq4YSTgbXpjZXaNqwUWWTs6mbz0T X5RvwKjW17hI33S7T+kVmejaEMnMFdP/qf8BQCPd85zvz91QOtStnxXgklQ9AXdjAZZkeJiFFGwsm 7PlyFPA5Kx/GAvs/HV6vS+IA1rEYSxH84qqMeJv3MQJPWH99+LgEvFO6GfPcXToEt21Qsu5c2/Wgf aEnOgKP0g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5W-008AUc-U6; Fri, 14 May 2021 13:42:47 +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 1lhY5U-008ATC-K8 for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:44 +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=pTEFVdW6ULarxcAtyT//LdnF229VdLFZKXyT2IOcFkQ=; b=X+xVtom/Z4arPHCQSn5pTsdpOb fK7yFmpc7X03daPHBXjfZ3EplZpRLEkHxdE3jIRRtQ1SNrQkZ/dW+pLos24OJmhs9E4xXZFM+t4uI 3vDjTyCDd6TxLnMRnaNRkti3TrRtq12dgKg/EMKi5bv8p8J7G4f1+ObK2B6razAT5GuXOOy97Qmeb s5Luw7JWjbY+jIKQLG0roBGyR/eRv3CUuhhg1PdMAuFNhLTFVObC0YyEGYOEEJxdakZaBkRSXYLFa SVKsHQ4vgee/XVDII0QgSwXNeh8yrD5pDIjTiBVyxEeEDRuR5BMPH02Yf2Qp9peZ8hI4RCkLvjiMP NjtxrL7Q==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5R-00C0aP-O4 for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:43 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id C4B47220A62; Fri, 14 May 2021 15:42:36 +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 YXMWuC8QmCu1; Fri, 14 May 2021 15:42:34 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 1/7] ARM: dts: sun8i: v3s: add DMA controller to v3s dts Date: Fri, 14 May 2021 15:43:59 +0200 Message-Id: <20210514134405.2097464-2-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064241_950608_8BFD836A X-CRM114-Status: GOOD ( 11.58 ) 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 Fri May 14 13:44:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257807 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.5 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 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 304EFC433B4 for ; Fri, 14 May 2021 13:45:15 +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 D7B1A61355 for ; Fri, 14 May 2021 13:45:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7B1A61355 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=EQtnjeiiEARMjtKakLYDCKbB4dTRAZW8v9as2vKIbHg=; b=opzQeXiAXcEGAibR4rJ5DRPaq DN3Hqfmt9ytaEAbBzr6sfNWpbs5vf17xGtJaGpcy8sstaMFjTuaOFDI/62EfJZDf0OSkWg+PET1UV M9R39uERpHxjO7kss4oRKmUZdA90Aa3+XhNfaigZQPs9I/A+u5LKinLelN9rnkCDQ6WSGjrbkUger S4iGL71i6En4IQG67LfcEXXeuB7oozFqz0KwRSmpyxv6E59YyFnM2+wQQ1wCR7xdeCqIPkhTImxxV GdYjxPn9er/knE8a6Jm+yHBsbrqlkUb93jpHWCWdYlZBnPoMlH4MIy4+5Nmx//qiD0hq/czA6bXfQ tmaXR7SmA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5r-008Aap-Mz; Fri, 14 May 2021 13:43:08 +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 1lhY5V-008ATR-MT for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:45 +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=NYnt267LedGn6GJFqoCT0k7aWiCS06EQqaLxXmEyf7s=; b=MV4ExXSHf/WqjXT3gGSvVySQpL LpGIFZmsFdGOxX5LgUfyjkn/18oow8JMKV+mx97YvsUkHeYvtZvf1ALqX5pL3Ma8gnAk3zh9rn7vG +U373vhoE1TuZF8PJMoGSO8w/NFgFuvcrhC3uHPn6RXChQXQycI0aPb8m7cLNipm56hRfa7sYX10l UJMDQX8PgG6h/aQsIG0cQsfVBOEq7zIxUYJA/HF+UaDnbdfe/bGRjRgGQ+Unc22CFmdqQgBcIA4Si K/zknV22tpKh4MybK7TZUE5W6vxBWJYN9x8UhQRuWwCiiGqjy37OsArg7ZqoplR883J3Qjy8y9quk fztv1Thg==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5S-00C0aR-4j for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 8A96C221198; Fri, 14 May 2021 15:42:37 +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 gTEIUq_ewz4f; Fri, 14 May 2021 15:42:35 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 2/7] ARM: dts: sun8i: v3s: add DMA properties to peripherals supporting DMA Date: Fri, 14 May 2021 15:44:00 +0200 Message-Id: <20210514134405.2097464-3-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064242_350825_87D25C57 X-CRM114-Status: UNSURE ( 8.46 ) 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 Fri May 14 13:44:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257805 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.5 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 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 708F3C433ED for ; Fri, 14 May 2021 13:45:12 +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 353DE61355 for ; Fri, 14 May 2021 13:45:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 353DE61355 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=Texbc9AQyFUoDP2mNYF6xhrciTWjKzEXApWc5mLCF/8=; b=fGhGxWMKZOkJi7bcHXvREFRUZ qkf4Z/5MKj3XZsZZ0x6BgliebCx8g7T19RkNjZw+p8fSQfz0LIdmIX1/its4qmbeRFWPtxmA3NSs+ G4aoPbzLY4d3x2ChmNf945gDzDbQ11JqcqRyTcPrkYiTqCTIMkqRa9cgbOpv74Ksk5yOkcCchQ9YL /zzhJJ96+ItwqUMX/Ksc4sAQG9cP241ciInF//4XpDdR2t89gxQB2AeTPk+tTeRbmVeq14wS1Qu29 kXhgAWtTdGaP+XyYf9g1C0D5XbS06sbBj8e3FT+8XO6DV2XS5AymmecIKHluPHyjTzF5CKBYH8k4b gz33ZjzHg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY61-008Acm-Kj; Fri, 14 May 2021 13:43:17 +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 1lhY5V-008ATS-PT for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:45 +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=Zpvw6r53DLuNS6z6HE4O04VfEhf1LeXBLhqBHO9W1rk=; b=HDIBgPuq1LlMsJURScgZZbDk3Y wN50m7knanKHhh6kv2qwapgztYntvU4D4OriXgbStF5P3vT/Jn4kVvAMNAaPv6hmJnQNauRyFwg/V BpZEyfHUzBgQXOXaVaELKqhWSfIaMbgNgA01YkOCGwZvvqKhXQSAPT5P8cskG98xbhR/qMPicBVky lYWvihfRSTxZD86xmU/M+9EV/vl43DRiXhvc0vhQTFd/kG5M+c4Tn4T/DBZ49WGklbHtLlH2wd1Uv ntSVHnDHlmbnXhMUBgNyaEVGqqKwPbDfE0XejQwFkHqYUOHqZBUmOn87OG3gfNt0FBBz9Nzb140nN JrR1sJZA==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5S-00C0ab-Og for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 334AC2225A0; Fri, 14 May 2021 15:42:39 +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 Ihl9Ced0Zfqt; Fri, 14 May 2021 15:42:36 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 3/7] ARM: dts: sun8i: v3s: add analog codec and frontend to v3s dts Date: Fri, 14 May 2021 15:44:01 +0200 Message-Id: <20210514134405.2097464-4-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064242_969079_8443A66E X-CRM114-Status: UNSURE ( 8.95 ) 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. 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..236cf45bba91 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-v3s-codec-analog"; + reg = <0x01c23000 0x4>; + }; + uart0: serial@1c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>; From patchwork Fri May 14 13:44:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257813 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 379EFC433B4 for ; Fri, 14 May 2021 13:45:27 +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 0293A6144C for ; Fri, 14 May 2021 13:45:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0293A6144C 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=SvtLAYS0LiTXClu5D2vmOn/Rn78itT87WZqCZD04aeM=; b=LM6n6xaLn+ugkQDjsP+FIFTzR cLgPaNrsP/RIK35cERrAqB2xp1bnY1rNQRnvuxzdbtAvZ0oim6+qTToUq3PWgiuUTzjxpIhxJ4VjE Hzzypxp0fvny1Zcg5Lbgp2tRIaowIDwFCE9Nhn+F9gVAU0q/DpRRbYZUwxL8g2WleYGchKIR1UpE/ U97FC5dZvg+k+7wdaD8hZqqAT5zq806QknvIoPNUiE/zJV69bSkdDM1nEDDDjvibCoHw/3DxWFEd6 24bnmVb5uioPM9qOoD0ol+HSVEe1CgCkYMxNw32jQGRoXBNcSbf7Gr1eGYJ0TbMHikWgPaytUQdro UCFRM5+4g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY6P-008Aid-43; Fri, 14 May 2021 13:43:42 +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 1lhY5X-008AUf-82 for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:47 +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=KE7zWtRy8AIPIGen7PFspDZljbYHQmGWgMApcwE+49k=; b=U2TMh0+1kEUjKmStHnNfyDXLyF lwRwylOwKZoHya6FfD5G3xHWdouCZrLMQzBgHTVLBcTc0CiC2gzt2MiMJuGQuRQ1QbvvYwRM+ShRA +BjogTWNcP62LUXlVdt9Z2cceXFAddaVIYsZhijjgLBdhxgYi0ckZzrWx1viztRFGK9rKXj245xQ/ 5QcRj1mKiD1rhvPHcw70hX6ynl9tqw5hak1fQh602eLKUqZ859TgS1cWXpIPlselA3GKsB7CiBsSc YFYyoAyitXliU8In7nLwV8JKe0FhptGwk3Z00qZRVXSyRiDPmBsfOjDW48bOphst2XdrDlz4MPI3H NbU+glkQ==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5U-00C0bi-KL for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:46 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 7C75E2225B9; Fri, 14 May 2021 15:42:41 +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 zQN-boO-rF43; Fri, 14 May 2021 15:42:36 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 4/7] ASoC: dt-bindings: sun8i-a23-codec-analog: add compatible for Allwinner V3 Date: Fri, 14 May 2021 15:44:02 +0200 Message-Id: <20210514134405.2097464-5-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064244_834509_88241841 X-CRM114-Status: GOOD ( 12.03 ) 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 analog codec frontend of the Allwinner V3 is compatible with the analog codec frontend used on the Allwinner H3. This patch adds a compatible string for the analog codec frontend on the Allwinner V3 SoC. Signed-off-by: Tobias Schramm Reviewed-by: Rob Herring --- .../bindings/sound/allwinner,sun8i-a23-codec-analog.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun8i-a23-codec-analog.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun8i-a23-codec-analog.yaml index 9718358826ab..26eca21e1f0f 100644 --- a/Documentation/devicetree/bindings/sound/allwinner,sun8i-a23-codec-analog.yaml +++ b/Documentation/devicetree/bindings/sound/allwinner,sun8i-a23-codec-analog.yaml @@ -12,12 +12,15 @@ maintainers: properties: compatible: - enum: + oneOf: # FIXME: This is documented in the PRCM binding, but needs to be # migrated here at some point # - allwinner,sun8i-a23-codec-analog - - allwinner,sun8i-h3-codec-analog - - allwinner,sun8i-v3s-codec-analog + - const: allwinner,sun8i-h3-codec-analog + - items: + - const: allwinner,sun8i-v3-codec-analog + - const: allwinner,sun8i-h3-codec-analog + - const: allwinner,sun8i-v3s-codec-analog reg: maxItems: 1 From patchwork Fri May 14 13:44:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257809 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.5 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 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 4D266C433B4 for ; Fri, 14 May 2021 13:45:21 +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 195206145E for ; Fri, 14 May 2021 13:45:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 195206145E 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=/9TxoC+jS31y7dpEnYkCFMMoFaQmzMxml+OBzL00a+w=; b=qxbsoPgWcu9E7ZiXvLKrkNGsL s5sVMx+psNLRHIL++wYlxKzBk7NOdJXc5Iipe7HI6Xv5onNxPXh9ms7ArscOlz1CBiLfMaT7MjA6i mVNZ/d8nkmb111cIaPaWaie+2xfDVC/f/IV9+vzQ0xAYtoJYheI60J5RBifkATksjY/WJ2LnKA95W G2mGQI0fuG7px3e8BWBJJGt6OYtGZhFuNCMLTKBuMJFb2hDR9iaZA+uiiW5g9iFRmEHSwwZNutuXo aWvBdHhpsP1ykgFLtJY3xG/IP3LrBDc0XI5gyOYHxcTez4+Qzae6mKb0XB9EvLnUlmHmWLrxJ061E bf7i1d/BQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY6B-008Aez-E9; Fri, 14 May 2021 13:43:27 +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 1lhY5V-008ATT-UC for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:46 +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=z/AqB+WElwuIDCGN+6GFEC5skvvwK2bHgqgDu0ZWNsI=; b=rMmvBkmqMUKxAMZkocx8eznB2n wgkjH19ICgX0jIS+0JLqXwrEG2arrW/tFBQgsgjmo9Raq5gTysHAIO6Wd2lLVEFedFvAZo4m1MG4Z iCNEtJPLXUu7jfPlPors3zq5URlWikdvZgxsG9Dl7T6w8iDYDm7ThebDam6jmBiH4tdUmPROCzpxR /N15NU7IPiBb6jGzVSDpTN+3Es8mCh/mlPu9XhYrJs2eeSCL72XM3R1B3v+HFNcdRBmWsbtzSevLj SEp8bc1GQA63ltolAAlwacLxmqnknCUE5DSpManPH2s+EeIxj6YrpLhkw5neq812UxUJsaww0biRs ydOE7mcg==; Received: from mail.manjaro.org ([2a01:4f8:150:448b::1]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5T-00C0ad-Dn for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 1C02B222558; Fri, 14 May 2021 15:42:40 +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 Y0lpDgJ_OSEM; Fri, 14 May 2021 15:42:37 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 5/7] ARM: dts: sun8i: V3: add codec analog frontend to V3 dts Date: Fri, 14 May 2021 15:44:03 +0200 Message-Id: <20210514134405.2097464-6-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064243_635331_10514B79 X-CRM114-Status: GOOD ( 11.38 ) 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 has a different analog codec frontend than the V3s SoC. The frontend used on the V3 SoC is compatible with the on used in the Allwinner H3 SoC. This patch adds the corresponding node to the Allwinner V3 dtsi. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3.dtsi b/arch/arm/boot/dts/sun8i-v3.dtsi index c279e13583ba..8af790d286b9 100644 --- a/arch/arm/boot/dts/sun8i-v3.dtsi +++ b/arch/arm/boot/dts/sun8i-v3.dtsi @@ -9,6 +9,11 @@ &ccu { compatible = "allwinner,sun8i-v3-ccu"; }; +&codec_analog { + compatible = "allwinner,sun8i-v3-codec-analog", + "allwinner,sun8i-h3-codec-analog"; +}; + &emac { /delete-property/ phy-handle; /delete-property/ phy-mode; From patchwork Fri May 14 13:44:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257811 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.5 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 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 80088C433ED for ; Fri, 14 May 2021 13:45:25 +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 4706F61355 for ; Fri, 14 May 2021 13:45:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4706F61355 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=RPEek2I0O5khoN/OP69D9dX1CZDqrrzaSGb6uyO5vLg=; b=IK3Kuk4Bq95gyUuKNz0rr/XO/ YvenYAvo9KBYXDWgbWDsNc0wOTCs6uHReJ3IEVIJvGjIJqLffxpOMU4+PgGwjkMGv9Bhuk5YAPAiC s27CyjJHh9Zj0aLuxdYL2CdVakrQ2/9+lCcEt4Uw0oQ4R7R47EUNlMqd2hnz1TAdm3pWm0HrJjhWp KB4DsXh5lLqsAasRpRSa/5bdV1CLsYxgwzf6BPVmKkbUjMndWrqdGDGVAMg9qgRU/GszeyIiX1Zqd GPCI0Bc9+cIp2j68V0gGqg9xVxb9wsRGE7tmSnQZ265H4/vJJ5RUkp52DoiAUlnS1L2X2tIqmObse wp0wEinVQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY6p-008AtI-Cn; Fri, 14 May 2021 13:44:08 +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 1lhY5Y-008AUo-B5 for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:49 +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=X6/ZTFOlw44+7A/jV00BD2RtmOrIPxYkTFu8C8JHAdw=; b=C9gO353vRkx0asMyOIm2JFP/8h l3XmkHqL2999LFgp1deafwPJk80kdLu+gX1hSLIUBUjfCF8bKePg2y3UQGgu908Z7aVlz5WY8vTdi fSPULdT1mSNvpdj4MTClume3SEDDeqN05nlbCIOj2ZUG/Kkan2JeKIugK1VM7uNtzPGQkBl6AyL3t uy8Tzyi1ZY3RN3cOKSxtyzZS/aVEnnrlFQuqO97lfqmQP7tlpGTuxQ6duzxqgHzLrJgIMW9l5BN2m kYnNCv1xUac3XC7Nm0Ngsk9bp4jysjMSjOG4AJ+klRJPlG7eMX4Ca+kB+NQ353O18GlAK9DdyzTc5 Q7NPiNgg==; Received: from mail.manjaro.org ([2a01:4f8:150:448b::1]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5U-00C0bp-NM for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:47 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 01BB9222567; Fri, 14 May 2021 15:42:43 +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 aAEfIBP1sinp; Fri, 14 May 2021 15:42:39 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 6/7] dt-bindings: sound: sun4i-i2s: add Allwinner V3 I2S compatible Date: Fri, 14 May 2021 15:44:04 +0200 Message-Id: <20210514134405.2097464-7-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064244_939640_4F023F06 X-CRM114-Status: UNSURE ( 9.09 ) 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 I2S peripheral of the Allwinner V3 SoC is compatible with the one found in the Allwinner H3 SoC. This patch adds a compatible string for it. Signed-off-by: Tobias Schramm Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml index a16e37b01e1d..39b66e9ce3e3 100644 --- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml +++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml @@ -20,6 +20,9 @@ properties: - const: allwinner,sun6i-a31-i2s - const: allwinner,sun8i-a83t-i2s - const: allwinner,sun8i-h3-i2s + - items: + - const: allwinner,sun8i-v3-i2s + - const: allwinner,sun8i-h3-i2s - const: allwinner,sun50i-a64-codec-i2s - items: - const: allwinner,sun50i-a64-i2s From patchwork Fri May 14 13:44:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257815 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.5 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 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 E5CC1C433ED for ; Fri, 14 May 2021 13:45:31 +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 B469A6144C for ; Fri, 14 May 2021 13:45:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B469A6144C 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=zluL7gfbe80LvdK+SXPtobamRaieT84rZsew3QAOyfA=; b=JsXi7c5kFtcZKrM4jc4/Lex5y Yx5hqivbjkGUirnN71qzPWNOAlpg/I/1wpq4KqrK9nQFKg51TbPijxvXQDQvsHV1hSw5lDx6nndew By9vzcTw4Q9iWNyUHBYGoWEcYQSeDHk56f5J3f955iaBpNby0EZEJ94T3TtTTnpIkDLuLLnL0bH8Q 9+CCbEjJBWe16SOoxNEOrb4O6S2opZZfRofUMMNjQXFJ3UPO9tYxD1Zpw4Xso+mraE6/Ul3cm9+vW eWwaLkjYE9C70MBNYl+F2KxAkFag3dZ9logSBVBhz1gcRKux2opH9/iPSUI/RVIJDEaGde5rzLIhu +seauqyzA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhY6b-008AoP-UI; Fri, 14 May 2021 13:43:55 +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 1lhY5X-008AUe-81 for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 13:42:47 +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=PW/hARNj+t7fz2vUJZ0MmQqxpurUyb4gkOHcN8u93ww=; b=swMKwRodSNRKPcaWu/Z8nbrnQo yuomH8pqNBkEq+rJ3h38BuBKNBADEBdd82pd6kl91VM2vs0ZPRfePmHeCF1zJQIUUe0uXed4MXUNi qFQDUkQVG2vA1TF+0BXXgX2fl+nKNc+RnUUl0HacKzA2ZWzQvq/yI3QmHNaMGGhNKPGKKjOBJmtUe r9kYQZMD+3KQ/P8+7jg+C8DayHNKJXpQijKB/joKGU1f7JydvZd8OVj0MjmeLEoh1jkkKE2ViYwok X0LfSP5NBOGW/1ugsFIFM/gRYnZaq+EXkIi5hQH5ky8hdbgY48Y/NiXx7l0adHg+CbhaoHiszCM8v x80bR1Og==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhY5U-00C0bj-Ky for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 13:42:46 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 912242225B7; Fri, 14 May 2021 15:42:42 +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 6amSyvd3IY3w; Fri, 14 May 2021 15:42:40 +0200 (CEST) From: Tobias Schramm To: =?utf-8?q?Jernej_=C5=A0krabec?= , Rob Herring , devicetree@vger.kernel.org Cc: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v3 7/7] ARM: dts: sun8i: V3: add I2S interface to V3 dts Date: Fri, 14 May 2021 15:44:05 +0200 Message-Id: <20210514134405.2097464-8-t.schramm@manjaro.org> In-Reply-To: <20210514134405.2097464-1-t.schramm@manjaro.org> References: <20210514134405.2097464-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-20210514_064244_855776_5EB8CC5C X-CRM114-Status: GOOD ( 10.39 ) 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 I2S 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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3.dtsi b/arch/arm/boot/dts/sun8i-v3.dtsi index 8af790d286b9..3698e024d604 100644 --- a/arch/arm/boot/dts/sun8i-v3.dtsi +++ b/arch/arm/boot/dts/sun8i-v3.dtsi @@ -1,10 +1,31 @@ // 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-v3-i2s", + "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"; }; @@ -30,6 +51,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";