From patchwork Mon Jan 22 17:05:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 13525831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45288C47DD9 for ; Mon, 22 Jan 2024 17:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RHZV+AYcIpcA2MxRuXpmJ2gIgJvvBh9XSapg2EHthw8=; b=0Z7MIlqW0TZYQ/ zglw2iWRqZoEnwaEhzI4Qx25vZOWEC+13PfsT0+1Yaz5lIxCxI1FbkS0XXXGnTdHmJyPosUqCta50 wtePJDF+/6hu/8tZwg1Twa9Nw3wvO3vChA5DPEDx6tEl1DcErkpMNNLV9JVqBBrzvm1Ncd7ytB1Bq HYXbDvWqGfV+1lh7ClyE0nEMqRa5/nlurZecxjiDYnNhp57T4mV8qmeBVCBJb25a9lDnlLEa5m2N5 YcO2DORcbZYmG9VtFD7y08uGFSN9wWcfEe/1OZvSPYBSPNidLib14Ou2DReDkDGSDm9WZ3f4B6KZc 2SIK6F6JxvhK1GY6aRYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRxjw-00D7ar-0F; Mon, 22 Jan 2024 17:05:40 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRxjr-00D7Xh-36 for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 17:05:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 320ECB80ECB; Mon, 22 Jan 2024 17:05:34 +0000 (UTC) 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 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul Cc: 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: [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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_090536_145249_BB89FEA4 X-CRM114-Status: GOOD ( 15.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai 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 Reviewed-by: Andre Przywara Reviewed-by: Jernej Skrabec --- 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);