Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp472948rdb; Mon, 22 Jan 2024 09:44:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeHGRjrmWL0wMCN+zpFykcyjnjrhQHCwggaM8VrtaoFGwsOl2G7UbwoZAidY6PX6BqnULU X-Received: by 2002:a17:907:c003:b0:a2b:2de2:8dd4 with SMTP id ss3-20020a170907c00300b00a2b2de28dd4mr4857237ejc.15.1705945451033; Mon, 22 Jan 2024 09:44:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945451; cv=pass; d=google.com; s=arc-20160816; b=MxVhDzf5PRtXNeqdcpxpmawXV7WffutRTTg6lQ8aWnFmDP1SwpRN6tj9GE+d6llX6F w3MMonIy0OWOOwmeBDgVgEfWsFUFs3JbcKJW5lxplWT38vujfjHYxGRssQiq0xa4prqt VmUdnLkEEVlWhb54pzJluBHOe9a/G5EnxGmKJYNKFfq3ZyYFfcASP8isdPOW9r2fspUi fXR/U6pjd109BPwPwtByipASIhtKS7s2zvtb/sRHTFFTaqrRjpOG10vPv3FrGZP27YR6 yoR+RwxF3JFxXfecE8omGdDYieb3Ff09JULPDF4t/W7RtsbTJRJHA+0MrMoashoxUdXJ TReQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 23-20020a170906059700b00a2b9498888esi10855597ejn.405.2024.01.22.09.44.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33744-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33744-linux.lists.archive=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 C5F701F23CFF for ; Mon, 22 Jan 2024 17:44:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03BC748CE8; Mon, 22 Jan 2024 17:05:34 +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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chen-Yu Tsai 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(-) -- 2.39.2