From patchwork Sat Jan 27 16:32:43 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: 193065 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp572244dyb; Sat, 27 Jan 2024 08:38:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYlrUMRt3ZFrPLMcF4yLl1OHGeswTQeM8plEvuSBOl0zMgd6OkApikwy+ewxhPMZ49+yQW X-Received: by 2002:a05:6358:5d95:b0:175:ed6b:802c with SMTP id s21-20020a0563585d9500b00175ed6b802cmr1944417rwm.19.1706373494424; Sat, 27 Jan 2024 08:38:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706373494; cv=pass; d=google.com; s=arc-20160816; b=GmUVYLDN/NlYj1pgMJ4Ot4Y0ypV02jffWotdCsUtokrl0PjLzzN7O9532TF4Bkj3+X 38DRxRhyTtB3/Lvkqa8EItyXUHqXVxevgYjmsNGzEJOlNZzMwFnu++rOL5zlkyKekqfn aoS47yQ3jsVlK2uyI6bqqtmJZIke7jVmgIHnSsEfop8LSBcA1nDYIUhmp+g30/3oHRFK 5iTqaso9z9NN4U5a2OXmZuKLISqxhtR31DuIjXDTkWtuKVxAtu7tcPdgiHfpVAi8IlRt lFCchfd58mADcb1OqhhDBMttwKVdnhkHJqH/Jtea35nX55yKbyPWb9JauqVIBrK9vFeU jiTQ== 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=5dW0FyleE7aaT1qHhQefPXUcR88kt+NmdEd2kdd0cnM=; fh=7heQgEq06SRj3M5jJj/3xEMmsrcIaj+c3B/LX1Wa5n4=; b=p6kptO/Yrlk7xcINT63LhiQNwLRQxuH4AplEEX4hvYxxkpWVc5CUnoqmqYqupoe6B9 vei4d1JRtyO33dTPOYvMbgWhW0BFmSFdi09BWjiTtjBPnzaP4FddtyJQhSgpJG0qjTUW uyXR95OCrsGsaFhZHFfkXlfcjtT8YcThwFBmhShZ9rX6tKc5VqARjszaXAYXwj1gaWE8 OnwHYojzAStGH4vHSTjd45yrGmCdGfs9HvtUIfZclYt7cqoqL9B16ROLuqtSjT9D5Soi 8e5vr3Eqovi5ncO7bmquJenpQMw0btr+Pyh2CmQSEPt6NvYL1su8dx2hkg0UqoZfs0Bk 2SCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ECaen3DG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41309-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41309-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d3-20020a056a00198300b006dde31b3c82si2933147pfl.350.2024.01.27.08.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41309-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ECaen3DG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41309-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41309-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2D53BB23163 for ; Sat, 27 Jan 2024 16:34:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3980331759; Sat, 27 Jan 2024 16:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ECaen3DG" 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 61C1B1E531; Sat, 27 Jan 2024 16:32:55 +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=1706373175; cv=none; b=l6O+yyFpEe5rPcCTTOrKYoRYpctBJcrQ2HvMp43yQEYW9QfwbjKgDCTYRsxqC6G4eBSbyHxHU/gejxLGM84+aViai5X3eTUew5zk9GQ5xbQG6AXkErvSStj9CcwaPoakJTLVsZZAJqyytzaVw3/f0hiaHfdEHmKFrlW3pxm2yGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706373175; c=relaxed/simple; bh=Kh4LgU41ucmqLDiWgVW2g3izu0jN4Zn5A+1gSaj5/7Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X0EDAh4oEORhBeX9nD4VdwM/NSRwDrXDtcoVDMgbgWW20K6tDBqx7gJKJ1yHzc+waG+Zos9u16zZPUut+hIyoaYVprs1zYxY0hVE50pbIzdNcVICbdNABneE7OVwI5Axd5Thdl+POHYL2lYIE2PYpCWutNHvLNcxU2cAhLuJrkw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ECaen3DG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0953FC433B1; Sat, 27 Jan 2024 16:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706373175; bh=Kh4LgU41ucmqLDiWgVW2g3izu0jN4Zn5A+1gSaj5/7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ECaen3DGTCwiDfEdSEhDXDOCJGuemFmKJspx8UTpp6bKZdHf7jLXsocEl551KtgbN TdRlg/y15p9f6mBBkiZi+h1v/vXCbHAxBro51mI9TSz7O/ckhcdckFWlR1tEZgVKJ/ 0LogHQQp+/FBvRMYMHLPiVGWzWoPMdMPawwNcn5weK4p781dCdisDFikAQlor2IVQL MEPYpXV6VA2PwnNDUfzSp0qo9dZPMTzOBqPSxf/vypMyjBazHnyzotGGnoNbRM6jW5 /ZHZCwffvyIWgNjRiOkPk1m22SuyU1PB2unZUJZ/kacpLhuzRfsGWdUISq5QJQF0Xa SX8C1PnHBao/g== Received: by wens.tw (Postfix, from userid 1000) id 611C55FBBD; Sun, 28 Jan 2024 00:32:52 +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, Andre Przywara Subject: [PATCH v2 3/7] ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616 Date: Sun, 28 Jan 2024 00:32:43 +0800 Message-Id: <20240127163247.384439-4-wens@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240127163247.384439-1-wens@kernel.org> References: <20240127163247.384439-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789262293414986530 X-GMAIL-MSGID: 1789262293414986530 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);