Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2383671lqp; Sun, 24 Mar 2024 17:02:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5a6r7m/5/oLMeBa8bxWdWHcSZ+HIkpxdN1mtCFBXcP6+SNeRN04KbNa+YqSTo6AEsQmEeuaYPkjngrUTQM5oDXgzqSb3gCJB+Q3tugg== X-Google-Smtp-Source: AGHT+IEUbElGfTDwPDt6BMfhnq0Zog+xTgm3YWzJfkSXOTN/ZHwHFXbxZDuU5NzToQ40Ap5c708L X-Received: by 2002:a05:6870:414d:b0:229:ecfa:f226 with SMTP id r13-20020a056870414d00b00229ecfaf226mr7037040oad.53.1711324922420; Sun, 24 Mar 2024 17:02:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711324922; cv=pass; d=google.com; s=arc-20160816; b=uUehdUGXTmtjK9zNzgG3isRn2klo/c6hkZ4PhwLTyTXfIM/1Ebg0RV2RMY0W8CX0j0 Vi+3DvJr4a3dDA3OGNg/FdTa/4pP3b1KVXVdJmajxnvj8JGSHPWkQjuQ9yJKzyNcJnMV ulclOpNvNtofBAK+T3+xuy7R9WOHhmVqSpUmYTreG1yGz/Kv1lMYsXDOiHFO07Jg2n1P MDnWoaQMpcgiaBrX98WevdGNLApCi+bcQOXO7O9yLmRZwzw8EU/sb5brZSiemqA6anSS 5+YbZQotj8HPeF0ah7Jigh/zPXy02oMjIEN2rvAxnvtKWwPykd1t9o+gdcBkLlISn/w3 bGpQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Oy5rOA26odQQUXMkv5no9icOsJfvSuf6LRpHHW6/Mmk=; fh=NTFAz0+5KRm3rC/Zx26wiF1gToFZFSMADXsYyQYnQR4=; b=wn5+ei0O/2HMAdqLXrV1w8oP9xNCxHDQv0/vQ2QF6BQgxhlJY3t8AOYFIu0G8e51k0 ePKalJxx49LN587XyschzpR8fUwQVPfE5FrRntsMhMPRm+e6SBZ552u5FvU8a9LY9GBK a9l+8GbxlAU7lRHIhUGnkhsPpy4d811cjji9fLoI6ziDG/TTNiq02zBIKB/yd/bDqXbE VnwKEhUf53o/w8WuiknFKII1kUPgPMwxKW+L1912lq1lBV1b1up6FtPsi3zniNelm3JE gaZDQLxm++jj1/Wyy/ylLvH8ckwm4xXCtUcm4PNNIiq0jCHRgrnPaec2G/+F/Qr+qVP4 4m9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c5XBNmww; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a8-20020a056a001d0800b006eaaec37ce0si293824pfx.76.2024.03.24.17.02.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c5XBNmww; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 35F662826C0 for ; Sun, 24 Mar 2024 23:32:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CEA8172622; Sun, 24 Mar 2024 22:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c5XBNmww" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F258171E6D; Sun, 24 Mar 2024 22:39:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319957; cv=none; b=c2NTHh4xrMFixFu5BMuwAp8aSDVmvyJf4TrWVjli8EImzCNWOFoAwGpgFkxGrIDu50Zu3Xws8sXYnkMUSWE53WvPOHyNyCv+bY2rkMsexqiK14N6nTgS9pGujIgNGu5Zwy0uHL+c6/761P3m+1+JGPdCq/gaESUyhp/VFU5TN6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319957; c=relaxed/simple; bh=PSfaJaGHfeh9RYxvNOEV3FNhCqWgQCV/Di0zLdoOfeM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hi53VkEsuRisT0jLxe/i+0OgE+2K33XdDagXbo19EiDd7+e1rl0ctcDz23yscTDTF6oIiqc+vdRjZwdkNGY+Rh8bDkfwfhtm2Fiu4igwN7lPcV+eEjMtg2xcwBdcNvCHoSSSDUtyzOjn+6PCsrAJ+TaXS/wdoK8zOgxZvzyq+sQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c5XBNmww; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05496C433A6; Sun, 24 Mar 2024 22:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319956; bh=PSfaJaGHfeh9RYxvNOEV3FNhCqWgQCV/Di0zLdoOfeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c5XBNmww75W2Lkl/E6NK+LmmFY9UYqDSxQk2n2yJ44lgtAUTHaF3gjV7CIeKgQWGu w16R3Cb3GAUVITSUPbCldUNfWIZyfzbzMKafIlvlLIUN6dDYjyhzgHe+Gwj6cYZOAT e8ZwXrcARFjOG1cJrFZmINP4/rRGhQOBzjK/KEW5TEMSW2cH0B9Al4SqGIAIMstop4 b7uYKK+afXKTa28iGaJCcEV+rz4AvXosKJo58DMqrRl6IQlQEqwa1Vv9c0lo5rGYhc jFbqAu1kVAMcGTd5UOLqoL0vvEn9P3iIfyhyJcnBjdR6+M2zTWx3yRwQ/Z6GfhMcde ejVFewfbOIZ0A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chen-Yu Tsai , Andre Przywara , Jernej Skrabec , Sasha Levin Subject: [PATCH 6.8 263/715] arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF Date: Sun, 24 Mar 2024 18:27:22 -0400 Message-ID: <20240324223455.1342824-264-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Chen-Yu Tsai [ Upstream commit 7b59348c11f3355e284d77bbe3d33632ddadcfc2 ] 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 Reviewed-by: Andre Przywara Reviewed-by: Jernej Skrabec Link: https://lore.kernel.org/r/20240127163247.384439-6-wens@kernel.org Signed-off-by: Jernej Skrabec Signed-off-by: Sasha Levin --- 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 9ec49ac2f6fd5..381d58cea092d 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 4903d6358112d..855b7d43bc503 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 ca1d287a0a01d..d11e5041bae9a 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"; }; -- 2.43.0