Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2564102lqp; Mon, 25 Mar 2024 02:45:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXK9gHOx8y3EhLVmWUaeP+Gq8bxpx7mwgQItu8OxSipv84iWNYqbTRAQJKF8GbhMTm9bbIOcmJ7ipz+H7d5OTx0g0uIp/NBX4MCAmWFFg== X-Google-Smtp-Source: AGHT+IHpbbaXHCpesv8ggD9F8yKrDCpNkWxlMWeHX/TT5pechPThbMN4tVRe1lwl6dcenJ0dQzOo X-Received: by 2002:ac8:5d10:0:b0:430:b2ea:5d46 with SMTP id f16-20020ac85d10000000b00430b2ea5d46mr9885888qtx.33.1711359925924; Mon, 25 Mar 2024 02:45:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711359925; cv=pass; d=google.com; s=arc-20160816; b=r5+YiFg+vSdQyd8ru5tNaUqnzmu7QOICef5HPW4bnIRpZpcxZF6w4bVvPIKrb4J80g 4WniXuHBC23PYuHJT1+9a175IP0/NircsKUfcWSHQaNKu4pOrIhBH+R5SPKrnIMG3nNZ oN18U7Q9gRzmcyFypCLL7IfsS6RaXk71XdxUR4lErGDYuTOJTiteLpxsCmXHz1s28jBL 3NBkjkj1NpE1wBQbihglPAgQmitxXy0rLwIc/4rNS/57oAu03GBtRG6Olj56Wz6F4ID+ wjGtco53CirCarYQATfbR8s8gb2h1AT07SjLbH2mJKKY4L07BuiuQd4U9pw+tA6p/iOf GHOQ== 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=GtlNulG0E2zhBrdn+9BXvP8bG6Iofvb5ncZWjq5TKDdOpknvYLicBAZWTyu9PoUx4H 7vrZ8b11e3z/ViaXZocVNdtujwCJrF+a9T7Fyq50XBVQ8H8Dw6rGTun2lBeb3+LoSI2a nZ0L8qlhMpdf5yrosfvePIYuMfZ/FDp5KZMj09bJ7xxPwvf6kL8OFXiytwZohGmdBGlK ZCn3BHune9z4rWUqXkQdoraouh+SOD9YHZISQh5aPVG1dJodzFHjSZ7HTjNYeQL5E5q8 ZxP28+qtvdpH+DvXaBAAp3GmjGT8howgQfQepsCO0vrUNDK9qM8GGPXpi9ebudJHumCr CfAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWMJrYnw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 13-20020ac8594d000000b00430c4684d2fsi4906503qtz.284.2024.03.25.02.45.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115915-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWMJrYnw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115915-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7F8901C31DA2 for ; Mon, 25 Mar 2024 09:45:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1DA538A96F; Mon, 25 Mar 2024 03:03:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KWMJrYnw" 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 C444F1482E2; Sun, 24 Mar 2024 23:15:00 +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=1711322101; cv=none; b=WyJDR2jve6IMKqgmtLGgLoilTlHIA1IkyB03J9restsB2fg6cuS+M6/ZJLp8ucZmjvlFqWsATPr8xAgJ6hI5Gnmz98zU9ztld+C1m5PP5mYTZ9wcrbka8KjEzuZOhqjaWsMi1EOSq74ltN20Hjt6jeQgwouVSsnet2VkN7NsIz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322101; c=relaxed/simple; bh=PSfaJaGHfeh9RYxvNOEV3FNhCqWgQCV/Di0zLdoOfeM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DpqDSS79V8GFGPX6Pi6D4xeJrawJiE+ATCwSVSQfbk5/zmBEMGoYRRrtq6+ZqDfkC1eC74qqmrnJ6eLbOvmZ3BtRrB1No01e63zTSyPdkf5mfB6oO892rCeu8xP+dSwPuA2GxEUntZCQObZh9GTouSR5lmNMesMe37x0XrOvW0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KWMJrYnw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB374C433C7; Sun, 24 Mar 2024 23:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322100; bh=PSfaJaGHfeh9RYxvNOEV3FNhCqWgQCV/Di0zLdoOfeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KWMJrYnwYoSV6o5aFJRkD3htWpEPgEkU62uAx3gA1WCr31kwZTqi4ROP1hsADA3QT 4mIe8cmgn3SkF6TGviUS7+PwSMHe7ETU/0Ju5bR/s9O8HKon23oB+VYbzLuiv4/rfS rF3R13EwONV3u9n+o2ivEWa23X+V3d0I+3y6QGtiI/+IFDfAMtAGBcGJ6YENpdUNr9 tcHBlXFXl9szD2IhPYqEcjiv8B1d01HJ4dI4JWbcWDLZLSAQ52RKtvACp6U0eqftn6 Mb1PQnjSJdepmOct59qC72DbOeKj8usSa0wI9CAD1WoS0RRZ+n+0WDllbi6G+wsH4F y56/W6qMHPRCA== 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.1 175/451] arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF Date: Sun, 24 Mar 2024 19:07:31 -0400 Message-ID: <20240324231207.1351418-176-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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