Message ID | 20240122170518.3090814-1-wens@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-33744-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2731158dyb; Mon, 22 Jan 2024 09:44:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnPBYd84XXLgnJ4SKltnAVlpvAemz+3EoB9jBJEQzRfYCNQLNeSMLXByWkFc8TEcsAI17d X-Received: by 2002:aa7:d790:0:b0:558:b5d0:e77a with SMTP id s16-20020aa7d790000000b00558b5d0e77amr316704edq.36.1705945494913; Mon, 22 Jan 2024 09:44:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945494; cv=pass; d=google.com; s=arc-20160816; b=n2vuFxdWww7pZQW3axFHYy4xnUZeWwERVbjM6IzpzzcEPkYaVi55SxZEwGj95xgpoQ kA0V8A2SBrgRMj2JA7vURIJjwRXkcKK1s4Qa1zlQ/hBxb5GefOtO0uvi3syX8ztcXAds CU6UIYPMeg6mis9xDPAsVwh4XBPM+OVSA7LWQPt/034s1F8JvDFBWEYeOZFn13Ugqjbb hUkswtOEs4SzvjiRs+lCCUA2CaOs8S5OXL2HjjmKojXl4UayOspidKI5fUkcUaU3WhCo yiPDIYdf564UH7I134yJxH1YBgisKC3ca13UV9EdlgsQcFMV3s/dJQ2jzeBrKZuXwvu4 mXsA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=Vyhkyubc8gLOyztz5VJkfRSVCYXVzvV+ubAMD/aWg5w=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=yPRKLNDBEFop6A6sfJEjDKUGVt55CEwXW+uv7JmdRFjnJeXpX3Jg0oMOVf4pZLVHlA ZcsBsyLBLxLY9SuT/bkwGoNJxSWqaKZ0/ycRDffiaf84Y8HYYbiB6gqQUBbUojpUZx98 XYqE4G0D++2+WrUMg6GWtBt6MW0+uTvb5tKFvZSU+HN07y7dsovqSOzQlr6qXMFXKMhN ez3v3vRe0TCXD1zqZR32EFoMqRl9kDd75po97XCpfOr5rsRtxEEkIqrGvymlGNuoS2k+ kq63xeH8h89ph9RcEBg4Y3WjGqxF4kZ05QZZ0gB2hrCqqSfVQ9KTwr9En7cu3723NZ3q 7UUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ls8LeXzS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33744-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33744-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n30-20020a50935e000000b0055c2d7ed0b1si1413915eda.97.2024.01.22.09.44.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:44:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33744-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ls8LeXzS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33744-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33744-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 875BE1F254D0 for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 17:44:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBE475D745; Mon, 22 Jan 2024 17:05:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ls8LeXzS" 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 160F73D99C; Mon, 22 Jan 2024 17:05:32 +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=h7OyCLU7BYUEddkFubkYcwlRT+Cedh92mjYSZKW/84hW/jHongEt0Ge9AsfRzw1hQ4rDivwgMaehtu91lEDgZGdXzwPNkwcR5Cs6Ikpj97FwRjenJGXOj23gZZOhRrsbt5gBNfmJElXxECuXs3v/B5NZ9t97LRoCFSHl5mmAMSo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943133; c=relaxed/simple; bh=u+x2WqX+nY6J7+OJiu4BqOVl1NPhZVvy6votpSfLE0c=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=BwWz6O7sMcoHKvdy3qLBOSiTwBo3vgXIbT+eoN+Okj0dL8ld1ABtbvQATD7pBayMQZkIUXsIuPt6pJkqIAhvO4Rs1mKstpK1lfw4DsKwyat73nf2ChN2sP7mdG45XIv4rKy7oadfAquKLF5CPiAXExAAHptHRP5wevtGsxhSwsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ls8LeXzS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A419C43399; 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=1705943132; bh=u+x2WqX+nY6J7+OJiu4BqOVl1NPhZVvy6votpSfLE0c=; h=From:To:Cc:Subject:Date:From; b=Ls8LeXzSsBDex36hOEm07Q1pH2lApQFpET1O3m9R72GJwx1Ny2qNTo810BCKU+yzd bzrCLfNBiukHr+NuXvRx4K9kTrH923dwcUHlEBlLKxYEQrakBMezpZkcVOaDgGICBe UilMbxPHOYAc70nxLnyvu8p2DqrPD71PzCEUDR+u61C6jfWK6YIejcVjkh7StG2S7S sl/SvB8ODCV5YN0LXLJy6na0/Tdtl9vS+UBaTaNlLsNEW7ysJm0S2rvDu4UemTGZp2 /O8rLlOvGN67ym9iYYkIIaSHGfpPLKa6sGNrvsjhFd8Vl1enslebadYsKmMTFWkTEa nOsqzR2ypckBQ== Received: by wens.tw (Postfix, from userid 1000) id 8E58C5FEE9; 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 0/7] arm64: sun50i-h616: Add DMA and SPDIF controllers Date: Tue, 23 Jan 2024 01:05:11 +0800 Message-Id: <20240122170518.3090814-1-wens@kernel.org> X-Mailer: git-send-email 2.39.2 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: 1788813503272975254 X-GMAIL-MSGID: 1788813503272975254 |
Series |
arm64: sun50i-h616: Add DMA and SPDIF controllers
|
|
Message
Chen-Yu Tsai
Jan. 22, 2024, 5:05 p.m. UTC
From: Chen-Yu Tsai <wens@csie.org>
Hi everyone,
This series adds DMA and SPDIF controllers for the H616 and H618.
There's also a fix for SPDIF on H6: the controller also has a
receiver that was not correctly modeled.
Patch 1 fixes the binding for the SPDIF controller on the H6 by adding
the RX DMA channel.
Patch 2 adds a compatible string for the H616's SPDIF transmitter to the
binding.
Patch 3 adds a compatible string for the H616's SPDIF transmitter to the
driver.
Patch 4 adds a compatible string for the H616's DMA controller.
Patch 5 adds the RX DMA channel to the SPDIF controller on the H6.
Patch 6 adds a device node for the H616's DMA controller.
Patch 7 adds a device node for the H616's SPDIF controller.
This was tested on the Orange Pi Zero 3 with SPI flash transfers and
SPDIF audio output. The H6 SPDIF change is superficial as the driver
does not support receiving / capturing an audio stream.
Please have a look. I expect the first three patches to go through the
ASoC tree, the fourth patch to either go through the DMA tree, or
through the sunxi tree with an Ack, and the last three through the sunxi
tree.
Thanks
ChenYu
Chen-Yu Tsai (7):
dt-bindings: sound: sun4i-spdif: Fix requirements for H6
dt-bindings: sound: sun4i-spdif: Add Allwinner H616 compatible
ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616
dt-bindings: dma: allwinner,sun50i-a64-dma: Add compatible for H616
arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF
arm64: dts: allwinner: h616: Add DMA controller and DMA channels
arm64: dts: allwinner: h616: Add SPDIF device node
.../dma/allwinner,sun50i-a64-dma.yaml | 15 +++--
.../sound/allwinner,sun4i-a10-spdif.yaml | 5 +-
.../dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 +
.../boot/dts/allwinner/sun50i-h6-tanix.dtsi | 2 +
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 7 +--
.../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 59 +++++++++++++++++++
sound/soc/sunxi/sun4i-spdif.c | 5 ++
7 files changed, 86 insertions(+), 9 deletions(-)