Message ID | 20240122170518.3090814-4-wens@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2733920dyb; Mon, 22 Jan 2024 09:50:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKzZMIfkxdvIqQWBCYfMub3lSDzieeLiEotuG+n6ljZ4CBFM6zc9gKRAcn+UjPy3suKj7W X-Received: by 2002:aa7:989d:0:b0:6da:d988:e05d with SMTP id r29-20020aa7989d000000b006dad988e05dmr2226880pfl.67.1705945825402; Mon, 22 Jan 2024 09:50:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945825; cv=pass; d=google.com; s=arc-20160816; b=I22KETwSfBy5PddfxAWeBr/eRh9W21l9NPsA9S0eb2ZX41rt25qqoHnuzzjjVHrYu/ a39alQlratuK9uMMtJq1o2LYnLR+ny/zjae4NF5ja/hbBjRW4lIS1iqQUxfoQ14h5pZn gvM1dLKEQZ+ZcAFc3PQSrquT9UpivD0880ZU/TQUW8HionFn53gaicVeYCQpzHOCoSVl 0jC/g/TvtPjXrDgjr2465qHkoPrEuBQWPNSrOF1OKKNa/NdZBCg1BJMXXKbIivLPCt8W IkRyyhBD/dOJyTQXWsblP/8Uzfzvgoy2BeSxlBeLtazNwKre27nY/2IB9+2UICysKwCd FmYA== 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=4YHPtqpdJAOPrlsxLxjW6neMfENxrqLiLrQGPZiJqXs=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=hAYQWY58N+vT2jjGzH/2A+DyN4R79PeCviauwRZXUbLJMfP14iu7uq6I6jZ1NGm78y q8PS0iYl5cDfPGy2kGsMw2n6orPPQSjGpzK3xu3mrRFuYpWnGsZYsMtiP0lcvVHkaDnR DTTtAyR0qz0FoRdXXrkz8h+Rcm5NVOVtBR1682/uEfNlcJnyykHh9Se+1LY2ms2jhSVw hj0oFoahxI63NjFalhhj6dS6qcK1TqSTAS6LH10Y55hjdgS/bpbTJ4eg7KuDnkGnNEGw aweA+UPrZ3TrYMjihF+bI4ATHG2uO3VRj2cYNKWgsZvHO5m01/EIO5C4bcz4hyTr4tVe 43VA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRGc0ACc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l189-20020a6325c6000000b005c67e10f238si8539251pgl.492.2024.01.22.09.50.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:50:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRGc0ACc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33747-ouuuleilei=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 DB02528D5C5 for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 17:44:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 273CA5D751; Mon, 22 Jan 2024 17:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RRGc0ACc" 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 6A1CA487AF; Mon, 22 Jan 2024 17:05:33 +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=1705943133; cv=none; b=rAi+RSOHlxE7YzpSXIm0MpL+067++i60VkmkYDlusdwCHo5JIrp9QTi94cAgtEZHOTEtmwlYN/6eSO6gJCNy+j+6SmRDSmvfuhJ+KUgnM5NJbOaa6QbpZoC+qe6jcjV5AOFCm5fQAASr5p0lCer7kaId32qo5n9lxOg6xC2o53E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943133; c=relaxed/simple; bh=Xm8PplLtMeyRnn4CAuMxfRssboO0T91G8ByncCA6dSw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DpB2SlA8JasyHJGkZSGq4Ki/TKt0eFsTEkxbMZj1yM89yUCkHqwArhjzDPRq+heEab28PlMyp9PV97jj8at5HLwXG9Ja5JhqaYdy726GbByXuX2aj3QeAkKc5FW7P4OmgfM9+tHmmgRjmABLbq09OAqua0k7/quGIqth4LdpFeI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RRGc0ACc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2026C4166D; Mon, 22 Jan 2024 17:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705943133; bh=Xm8PplLtMeyRnn4CAuMxfRssboO0T91G8ByncCA6dSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RRGc0ACcvQUq1KvnIRCnD8xBhNgvfPM6Wm3Cwb6g14mDxirVCEJY1iBF9DHntZBDj VuQt7JZ0uolIhxb3iH89sx7h5A2XBIm0x4dEs58HYTHY9bH3X+yv6FwOO1xPUdj3tK VOUOT6S1FrQVY9MRTIFe7jhhoz0DVjI1Lf3ScnwGhGgohoUTP9ZdDGjf3n/jv3eSja mZtWKssbmOF4N2DA54NqxB9dxlkpOl3KBvzFbpQ5ZlFkr6auGLAHxOyQ2DDC5pNgi+ uLQPrkLQEH2A1JL9ZEDYHzTmxmEm0yEjxJUo7pzTWZXWRLBeUB13keU2NCajZvGMjy ytMsJurJl4aSQ== Received: by wens.tw (Postfix, from userid 1000) id 0DB9D600B2; Tue, 23 Jan 2024 01:05:29 +0800 (CST) From: Chen-Yu Tsai <wens@kernel.org> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Vinod Koul <vkoul@kernel.org> Cc: Chen-Yu Tsai <wens@csie.org>, 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: [PATCH 3/7] ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616 Date: Tue, 23 Jan 2024 01:05:14 +0800 Message-Id: <20240122170518.3090814-4-wens@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122170518.3090814-1-wens@kernel.org> References: <20240122170518.3090814-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788813849955666441 X-GMAIL-MSGID: 1788813849955666441 |
Series |
arm64: sun50i-h616: Add DMA and SPDIF controllers
|
|
Commit Message
Chen-Yu Tsai
Jan. 22, 2024, 5:05 p.m. UTC
From: Chen-Yu Tsai <wens@csie.org> The SPDIF hardware block found in the H616 SoC has the same layout as the one found in the H6 SoC, except that it is missing the receiver side. Since the driver currently only supports the transmit function, support for the H616 is identical to what is currently done for the H6. Signed-off-by: Chen-Yu Tsai <wens@csie.org> --- sound/soc/sunxi/sun4i-spdif.c | 5 +++++ 1 file changed, 5 insertions(+)
Comments
On Tue, 23 Jan 2024 01:05:14 +0800 Chen-Yu Tsai <wens@kernel.org> wrote: Hi Chen-Yu, thanks for posting this! > From: Chen-Yu Tsai <wens@csie.org> > > The SPDIF hardware block found in the H616 SoC has the same layout as > the one found in the H6 SoC, except that it is missing the receiver > side. > > Since the driver currently only supports the transmit function, support > for the H616 is identical to what is currently done for the H6. I compared the OWA manual sections of the H6 and the H616 manuals, and can confirm that indeed the H616 is the same as the H6, minus the RX part: > Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Cheers, Andre > --- > sound/soc/sunxi/sun4i-spdif.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c > index 702386823d17..f41c30955857 100644 > --- a/sound/soc/sunxi/sun4i-spdif.c > +++ b/sound/soc/sunxi/sun4i-spdif.c > @@ -577,6 +577,11 @@ static const struct of_device_id sun4i_spdif_of_match[] = { > .compatible = "allwinner,sun50i-h6-spdif", > .data = &sun50i_h6_spdif_quirks, > }, > + { > + .compatible = "allwinner,sun50i-h616-spdif", > + /* Essentially the same as the H6, but without RX */ > + .data = &sun50i_h6_spdif_quirks, > + }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, sun4i_spdif_of_match);
Dne ponedeljek, 22. januar 2024 ob 18:05:14 CET je Chen-Yu Tsai napisal(a): > From: Chen-Yu Tsai <wens@csie.org> > > The SPDIF hardware block found in the H616 SoC has the same layout as > the one found in the H6 SoC, except that it is missing the receiver > side. > > Since the driver currently only supports the transmit function, support > for the H616 is identical to what is currently done for the H6. > > Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Best regards, Jernej
diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c index 702386823d17..f41c30955857 100644 --- a/sound/soc/sunxi/sun4i-spdif.c +++ b/sound/soc/sunxi/sun4i-spdif.c @@ -577,6 +577,11 @@ static const struct of_device_id sun4i_spdif_of_match[] = { .compatible = "allwinner,sun50i-h6-spdif", .data = &sun50i_h6_spdif_quirks, }, + { + .compatible = "allwinner,sun50i-h616-spdif", + /* Essentially the same as the H6, but without RX */ + .data = &sun50i_h6_spdif_quirks, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sun4i_spdif_of_match);