From patchwork Fri Feb 26 10:30:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12106423 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=-13.8 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 2691DC433DB for ; Fri, 26 Feb 2021 10:31:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 B0ACB64EDB for ; Fri, 26 Feb 2021 10:31:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0ACB64EDB 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=Oa2dz9l5u1LALC15y6SXJyEuWdJSfWeDEiOMbsrVe+8=; b=e5ejswXt+bN3yP8OOmDrJmWFV PUxClXC6/wzGxDwaJP/aBvagpfDoAqBksFLDChFjuHegNqw2LM6JiJCTeFxZ6mF1n0wF82NrLanUR VNq9jVUYh16zKXX88cV1uVkvNr1TPYnIgimLhodn8vATv1bxIKyqVtlptymckj95rlOBaz2kJTdNC J7TO1LBeeTc0oncrTD9kHjLuktG8sRC41PELvDiNSwiILEohMlJS4XUzgtwnxJgyZW8pGDQXTCA/S qZNKTFN8PqqcpjgZKUmk59THDB9hxWZkiV0EGLF6bNyI7RquBKVR+C00idHsQB3pRv+bTrxttX9Kf 1Ab0WQrzw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFaOG-00024M-JP; Fri, 26 Feb 2021 10:30:32 +0000 Received: from mail.manjaro.org ([176.9.38.148]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFaO9-00022r-Nc for linux-arm-kernel@lists.infradead.org; Fri, 26 Feb 2021 10:30:26 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id DC0343DC0E3E; Fri, 26 Feb 2021 11:30:24 +0100 (CET) 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 LGqetle-cRJc; Fri, 26 Feb 2021 11:30:22 +0100 (CET) From: Tobias Schramm To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 1/3] ARM: dts: sun8i: V3s/V3/S3: add dma controller node Date: Fri, 26 Feb 2021 11:30:26 +0100 Message-Id: <20210226103028.729172-2-t.schramm@manjaro.org> In-Reply-To: <20210226103028.729172-1-t.schramm@manjaro.org> References: <20210226103028.729172-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-20210226_053025_913445_B29B5531 X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jernej Skrabec , Tobias Schramm , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The V3s, V3 and S3 SoCs have a dma controller. Add it to the dts. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3s.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index f8f19d8fa795..89286d3d35d1 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -163,6 +163,15 @@ syscon: system-control@1c00000 { ranges; }; + 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 Feb 26 10:30:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12106425 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=-13.8 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 E4315C433E0 for ; Fri, 26 Feb 2021 10:31:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 726E864EED for ; Fri, 26 Feb 2021 10:31:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 726E864EED 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=C9W6+LhMxi48Jwqdnt9vZM4mjliovesDcWjzoigAagY=; b=kl3DnYdyrb8MSCPMttxcYzyE6 KyRwbTyLX2maUhHgziQTg5fQi3nn9mlEvOAoarE7y4DMCD2ppoeWjZ55yyGSeDR43DrSJQVlnAPSp UOJtKCv9xz7KiEXjbUHOxc9dXSIOww0gFOz3G+WB6N7GbFTwRqLPHQeHIIvtbdNbZINEqYzKj5NAf VDtzoKR4NvgJbXNdiPpWsdQQOVtlHCudlQh5r0kl6R/xjGsyhHKCgc91Nlw/W5thkjpXmddRVQES5 dami1/dEQgisIV5kJQpe0bZpOhFXYlaUsXoP4EBPVTKZUkaNCA5cWGO2JRo8iAlfCA9jtcIfwSXk7 27lIuRSIA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFaOL-000260-EF; Fri, 26 Feb 2021 10:30:37 +0000 Received: from mail.manjaro.org ([176.9.38.148]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFaOE-000245-I8 for linux-arm-kernel@lists.infradead.org; Fri, 26 Feb 2021 10:30:31 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 8E3FF3DC0E6D; Fri, 26 Feb 2021 11:30:29 +0100 (CET) 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 o9_E3yxj_9RL; Fri, 26 Feb 2021 11:30:27 +0100 (CET) From: Tobias Schramm To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 2/3] ARM: dts: sun8i: V3s/V3/S3: add soc node label Date: Fri, 26 Feb 2021 11:30:27 +0100 Message-Id: <20210226103028.729172-3-t.schramm@manjaro.org> In-Reply-To: <20210226103028.729172-1-t.schramm@manjaro.org> References: <20210226103028.729172-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-20210226_053030_763360_C88DA26E X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jernej Skrabec , Tobias Schramm , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The V3/S3 add an i2s peripheral over the features of the V3s. Add a label to the soc node, such that the V3 dts can add the i2s peripheral. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3s.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 89286d3d35d1..308ba85f4661 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -113,7 +113,7 @@ osc32k: osc32k_clk { }; }; - soc { + soc: soc { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; From patchwork Fri Feb 26 10:30:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12106427 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=-13.8 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 D1376C433E6 for ; Fri, 26 Feb 2021 10:31:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 6695D64EED for ; Fri, 26 Feb 2021 10:31:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6695D64EED 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=V/nRM/FlJVK613ltpz7wLgTAm0LOoLcwXac7PUTTKec=; b=FeeHLINHHfHDasf4VDuw2k6VZ mdniZAufdb35LOind5n/XQsJqklcQ8GfNISzb+D7GViiVbBYI+lgiaM7M9g3Dl5Cgij6DJSbPIwhh Db1tV7TdSV76u49rjdaMEd3B0xb5LG7FWO6nXGrzP+2UTsRvQ7dnA74PiM10yDw5XA0CmcC2NhltA wY2fFoorh+80s5z6eizcGL3gWLPmZ9GtB7ge5GtcTMATgX9F93XKA6qIYZKVyoTqbEEOhoMlAfBhu TRCnQMpCPqrVa/YtTgti6P6mdvqCXFoEDNi7Zr75WlLTFNke/ekqf6xPz/yCJ1g5/yhanPmx/Ktyx 2bWRBDitw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFaOO-00026f-7A; Fri, 26 Feb 2021 10:30:40 +0000 Received: from mail.manjaro.org ([176.9.38.148]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFaOF-00024X-Ta for linux-arm-kernel@lists.infradead.org; Fri, 26 Feb 2021 10:30:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 8E1293DC0E31; Fri, 26 Feb 2021 11:30:30 +0100 (CET) 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 CGEMCot-z218; Fri, 26 Feb 2021 11:30:28 +0100 (CET) From: Tobias Schramm To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 3/3] ARM: dts: sun8i: V3/S3: add i2s peripheral Date: Fri, 26 Feb 2021 11:30:28 +0100 Message-Id: <20210226103028.729172-4-t.schramm@manjaro.org> In-Reply-To: <20210226103028.729172-1-t.schramm@manjaro.org> References: <20210226103028.729172-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-20210226_053032_162055_E1C22A6C X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jernej Skrabec , Tobias Schramm , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The V3 and S3 SoCs feature an i2s peripheral identical to that of the H3. Add it to the dts. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/sun8i-v3.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3.dtsi b/arch/arm/boot/dts/sun8i-v3.dtsi index c279e13583ba..17ea6b8f091f 100644 --- a/arch/arm/boot/dts/sun8i-v3.dtsi +++ b/arch/arm/boot/dts/sun8i-v3.dtsi @@ -30,3 +30,18 @@ uart1_pg_pins: uart1-pg-pins { function = "uart1"; }; }; + +&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"; + resets = <&ccu RST_BUS_I2S0>; + status = "disabled"; + }; +};