Message ID | 20240127163247.384439-1-wens@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-41310-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp570743dyb; Sat, 27 Jan 2024 08:34:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjkNZW97xVXPEjCFcvzubcMMO6D9IYKDzo9oNHSs1SbWVIWrpavka5i5SoPnFf9+czi4B5 X-Received: by 2002:a05:622a:45:b0:42a:839e:ea35 with SMTP id y5-20020a05622a004500b0042a839eea35mr2191630qtw.13.1706373259771; Sat, 27 Jan 2024 08:34:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706373259; cv=pass; d=google.com; s=arc-20160816; b=wpvB4sP/DrrPWh6yM/YovavsxOqWD2+PFgVbqC6oszXAfRnixaQsbGkRuf7eQF7UXz SjCWLjXtHLwUrNG4NjMqcS276s/2T1RlDe5ekiPVTiYJv3oD/WOC0aVNhox2qiUueQ9i Fh12HDDS+yCUFf71HIqI1i2Ub9nuZA4zEIXSmeBbW1JfTNBN2c4B6ngAYQUjNEjVMDsD ydtB8vrpXh8D22fL/cvfrzVBvMZ/sPjMxBJVs3olnoMzoARPTfUSOEpJQst7dAOA5Abs vvyP6gu/luuVKgAILrLkV9BpFRTjwFwtv6lDyDAHVN9Z/AU4jH6FUqY8OhK+7sI54IeB Z7ag== 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=jEEHkqq+eGD9iYdo9ep/bVoPcNY0gu1BrWHB4E7XMwI=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=enGJapqh/UTn5eWLAQhXTSJPRFtvufI1sqtOTt5Gu7qVZkDHUOFiJDkdHHCJBP4W1F CpNaNVkfLdS9Xw7SFjgyjMskbJ0aE9+S/1mFnCTId3tEt+BrgVl3AlBArtgJg7Tu5EgW Da0Wl8jplyToI1ZRf9PR8NNtBwUEOZ+rYOg+RV7RYR+B+8N2apDMAeWOSyZMOpQscemt UIjmcxCk52eCDQqpxUw+YDTpo1s2AJclqz1wx/ZIyUhQzjYvuwCtb0JZ6OM6j9CHkHSM rjbiPo/ZRdCUdvz7PS2CaL77WBQTKIAsP0oC6u6+fEK8GZEvEh1nNe0BdLSbL/eWQlH/ LsZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JK7PSKCY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41310-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41310-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b5-20020a05622a020500b00429aeedae59si3740260qtx.537.2024.01.27.08.34.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:34:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41310-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JK7PSKCY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41310-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41310-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 908141C22276 for <ouuuleilei@gmail.com>; Sat, 27 Jan 2024 16:34:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5637731A79; 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="JK7PSKCY" 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 72F901E860; 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=iFws1Wy9ZWkXI5Jkl02ECxinOxMgVHu4GbecFaFEvoXGeya+naIUeICyxShakMmaUV1qlNk01y7sOsEkfumLFz2Cf7GrxnnM9lslFE1jzaHCQ7neDhXtsznsVEnAFtQMk1hfomyOWG3xl+jzP/z0wTIwQ5qAs00KNORminI1ZKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706373175; c=relaxed/simple; bh=KAfVWbrl2OKLT7q1byYXuM4lIKN7zYfbYPsqezgJCYI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oyVUaEuuS41eNNJxJgveIp/Iz2sLonGr7UlUmMKBACy4Fgd2byDpRp75Q5nXp30xc3wr6oeZA6H1r0xR8sS56emZgfW8GZZOT8SSguQ/g3KSLfF6I6UTNtI9Q4BYvYWv3/20dHDqgfTk+klIHqTQwXwJ2KFGtX+Kbtp8yZ4JGLI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JK7PSKCY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1DC0C43394; Sat, 27 Jan 2024 16:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706373175; bh=KAfVWbrl2OKLT7q1byYXuM4lIKN7zYfbYPsqezgJCYI=; h=From:To:Cc:Subject:Date:From; b=JK7PSKCY+LB8W5oAPOptM9zT+5K7HyUnEY5aYJDIP/p0/w6jz1IFHPJ+KBIZZnntC MG/FszS/kR3teA2mSIXCOkMcE/MiyK4TenSc0hlrwB6QrJq+KgDlWtYVnzazFlBq0C HveOSMmwec9DYR7aomCTOroIAKcOc+gKXhrgRBwPnufZg/FzojXFnwMz0f8O67jZhQ Ao+KnuY86B7WkjG8KtqIBSp77OlaehPHkemIbsi72By3nVzwpB0qbdiueZUKg0tizu RztEevpslTMUc2S1r8UnyeM2afCO85LUdAhlM2Cx4wDuazY7wgZuN/GMOYtvOOeO3u dWmWGoImzg+TA== Received: by wens.tw (Postfix, from userid 1000) id 3CAC35FB4D; Sun, 28 Jan 2024 00:32:52 +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 v2 0/7] arm64: sun50i-h616: Add DMA and SPDIF controllers Date: Sun, 28 Jan 2024 00:32:40 +0800 Message-Id: <20240127163247.384439-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: 1789262047038893034 X-GMAIL-MSGID: 1789262047038893034 |
Series |
arm64: sun50i-h616: Add DMA and SPDIF controllers
|
|
Message
Chen-Yu Tsai
Jan. 27, 2024, 4:32 p.m. UTC
From: Chen-Yu Tsai <wens@csie.org>
Hi everyone,
This is v2 of my H616/H618 DMA and SPDIF controller series.
Changes since v1:
- Switch to "contains" for if-properties statement
- Fall back to A100 instead of H6
- Add DMA channels for r_i2c
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 | 12 ++--
.../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 | 61 +++++++++++++++++++
sound/soc/sunxi/sun4i-spdif.c | 5 ++
7 files changed, 85 insertions(+), 9 deletions(-)
Comments
On Sun, Jan 28, 2024 at 12:32:40AM +0800, Chen-Yu Tsai wrote: > Chen-Yu Tsai (7): > dt-bindings: sound: sun4i-spdif: Fix requirements for H6 > dt-bindings: sound: sun4i-spdif: Add Allwinner H616 compatible Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.
On Sun, 28 Jan 2024 00:32:40 +0800, Chen-Yu Tsai wrote: > This is v2 of my H616/H618 DMA and SPDIF controller series. > > Changes since v1: > - Switch to "contains" for if-properties statement > - Fall back to A100 instead of H6 > - Add DMA channels for r_i2c > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/7] dt-bindings: sound: sun4i-spdif: Fix requirements for H6 commit: 57b3c130d97e45b8a07586e0ae113e43776c5ea8 [2/7] dt-bindings: sound: sun4i-spdif: Add Allwinner H616 compatible commit: 7a9dc944f129bb56ef855d9c0b0647bc3e98a56f [3/7] ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616 commit: 0adf963b8463faa44653e22e56ce55f747e68868 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
On Sun, 28 Jan 2024 00:32:40 +0800, Chen-Yu Tsai wrote: > This is v2 of my H616/H618 DMA and SPDIF controller series. > > Changes since v1: > - Switch to "contains" for if-properties statement > - Fall back to A100 instead of H6 > - Add DMA channels for r_i2c > > [...] Applied, thanks! [4/7] dt-bindings: dma: allwinner,sun50i-a64-dma: Add compatible for H616 commit: b32eb97edeb8d69092d57419917b19c909ff962a Best regards,
Dne sobota, 27. januar 2024 ob 17:32:40 CET je Chen-Yu Tsai napisal(a): > From: Chen-Yu Tsai <wens@csie.org> > > Hi everyone, > > This is v2 of my H616/H618 DMA and SPDIF controller series. > > Changes since v1: > - Switch to "contains" for if-properties statement > - Fall back to A100 instead of H6 > - Add DMA channels for r_i2c > > 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 | 12 ++-- > .../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 | 61 +++++++++++++++++++ > sound/soc/sunxi/sun4i-spdif.c | 5 ++ > 7 files changed, 85 insertions(+), 9 deletions(-) > > Applied patches 5-7 to sunxi tree, thanks! Best regards, Jernej