Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp201534rdb; Mon, 22 Jan 2024 17:36:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8xfi/U8UBeVLAYz8XUI41vzmPkuX2DiPPdJoz8eO2Ii9T5Ekp039aWD03uslc4kw5RpSC X-Received: by 2002:a25:244:0:b0:dc2:294b:a172 with SMTP id 65-20020a250244000000b00dc2294ba172mr3102091ybc.90.1705973773247; Mon, 22 Jan 2024 17:36:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705973773; cv=pass; d=google.com; s=arc-20160816; b=DAIJGx66mlIXeg/vSji03gt0wOVQ0bzIGPdQgl9WzWxhrfxgV7SmZ5s5KZfUwhQ259 S1I3PyPdJroyb6CDVo+hcEdYa/oKqGOZ+dUcCrHos1+Bm90CUpT7iw80dCsLCEPWiwc1 Se/+QSAe20/Q104PZw/Lz35PMyBSGRC6fjaSPKYTNb4CDQP7XgAAgX+9/WdqCvi6xJ7A zNasBxL3rT+o08Uq0WsFLdHKfnwX3hojUtQGvgiF3Fkr55jNt3GEVzZ1IbUB12KZ5gpU UZ4T7VX/R8/LBIx+YSJp3aLO1XQa90j8egSOFac4FYjdl4GI3t0wU+vr9kvCFnZdTF/3 u/TQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=Mn+iPYhKUkzLkEagQ3G9/BUar6IPk1oKaC9sOJ7Ckxc=; fh=UWiig1s3fmMOlTSMGWrEATJpXuAxUBcuTQXgzYQfeCg=; b=dvGX+fVUzhdFwxMmlnyeHp0d4IOypdthCer/7Blk5EHTgze9r5lJq2Cz5Cug0KIItf IBFiC+2qhoblk4IWIuLAiKbTXa4NFNgfin+mvMHChV7UXfRJxShS36jWOoimn6M2v6Vj HAdDF9DQ/11Wa8Mz51DhSHjXSTn5j/7moGtzTVTDZd5rr0N89Q8ivMPnRWd+oXEtx0YM NkEJue8/h3NJ/nU0y7XH3/nkSZllS1jWap5dlrFUP8/0PM6go834Ri3Rv4HqVi9o/L+k Yx6OBX3H2z3yDgFXebHJhetcyjFUyftrrmhT6ZeVIVm4lNE1SZpfap+KuS4o7uyiJgnD 8TKQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-34530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g7-20020a0ce4c7000000b0067f8279ac5dsi7010364qvm.487.2024.01.22.17.36.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 17:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-34530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 065391C26295 for ; Tue, 23 Jan 2024 01:36:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A7265B5D8; Tue, 23 Jan 2024 00:40:14 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F266459154; Tue, 23 Jan 2024 00:40:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705970413; cv=none; b=fVjv9ev4QIHqAoY/Xst76433zEzCT77y+D5MF7tdB/K6T5FNLuJyKmcHkP67FS7IsLI5iPlNe0A/ElsS6LLaZeQGlBQcdikzSuMyE9GOesjFQ+Rq8OAJtHupEAFV7xa75NRGhJLCfX+5Ut9CrKAAbwCThKvW7AAPgy8UXJMEutU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705970413; c=relaxed/simple; bh=HK1pRkQ0hzPNI4jNHlfS/gFmz3+HSJPrYT+o7/tAoK8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oec1TtzfccGi4gegasrfKK8PTRSpWgXfgVQVV69Ok00XZ14VlyB0sGHfYkIvvqI4JPXGz4uyx2kwT3mupbb/1KXEEV5zXuRXWx+W+dNvn/tpMOXAqWVI6+/uNV99ieGq1VDr11G0+3GWQhPJl+S9mXcSmNKwypnaHh0fKaa/Qk4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1B27BFEC; Mon, 22 Jan 2024 16:40:57 -0800 (PST) Received: from minigeek.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 128A13F73F; Mon, 22 Jan 2024 16:40:08 -0800 (PST) Date: Tue, 23 Jan 2024 00:39:20 +0000 From: Andre Przywara To: Chen-Yu Tsai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-sound@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF Message-ID: <20240123003920.08813e16@minigeek.lan> In-Reply-To: <20240122170518.3090814-6-wens@kernel.org> References: <20240122170518.3090814-1-wens@kernel.org> <20240122170518.3090814-6-wens@kernel.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.2.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Jan 2024 01:05:16 +0800 Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > The SPDIF hardware found on the H6 supports both transmit and receive > functions. However it is missing the RX DMA channel. > > Add the SPDIF hardware block's RX DMA channel. Also remove the > by-default pinmux, since the end device can choose to implement > either or both functionalities. > > Fixes: f95b598df419 ("arm64: dts: allwinner: Add SPDIF node for Allwinner H6") > Signed-off-by: Chen-Yu Tsai Looks alright, just moving lines around, order of rx, tx DMA is correct: Reviewed-by: Andre Przywara Cheers, Andre > --- > arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 ++ > arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi | 2 ++ > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 7 +++---- > 3 files changed, 7 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > index 9ec49ac2f6fd..381d58cea092 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > @@ -291,6 +291,8 @@ sw { > }; > > &spdif { > + pinctrl-names = "default"; > + pinctrl-0 = <&spdif_tx_pin>; > status = "okay"; > }; > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi > index 4903d6358112..855b7d43bc50 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi > @@ -166,6 +166,8 @@ &r_ir { > }; > > &spdif { > + pinctrl-names = "default"; > + pinctrl-0 = <&spdif_tx_pin>; > status = "okay"; > }; > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > index ca1d287a0a01..d11e5041bae9 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > @@ -406,6 +406,7 @@ spi1_cs_pin: spi1-cs-pin { > function = "spi1"; > }; > > + /omit-if-no-ref/ > spdif_tx_pin: spdif-tx-pin { > pins = "PH7"; > function = "spdif"; > @@ -655,10 +656,8 @@ spdif: spdif@5093000 { > clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; > clock-names = "apb", "spdif"; > resets = <&ccu RST_BUS_SPDIF>; > - dmas = <&dma 2>; > - dma-names = "tx"; > - pinctrl-names = "default"; > - pinctrl-0 = <&spdif_tx_pin>; > + dmas = <&dma 2>, <&dma 2>; > + dma-names = "rx", "tx"; > status = "disabled"; > }; >