From patchwork Mon Jan 22 17:05:12 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: 190258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2731132dyb; Mon, 22 Jan 2024 09:44:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4K0um+Zr+RAcgtngzT+yuyGVuisv2g4eOlabwb1nllKZ6JBdegqX8HhhEV8a4VOc6ww0+ X-Received: by 2002:a05:6808:bc4:b0:3bd:b503:c641 with SMTP id o4-20020a0568080bc400b003bdb503c641mr2613726oik.11.1705945492350; Mon, 22 Jan 2024 09:44:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945492; cv=pass; d=google.com; s=arc-20160816; b=n1o0CsMpJ6gBQUhVC3YrQ4fyIaVSVHBeMx6/LG+V+5qRsgYZDHUXD6BuSIAQ9fpkYK 5U3280Ww+kd6X/YWo/cdbGfiQmy0zzk647U+JOePXZ9r/RbxU6gk/qP1q6uGoNG/Z4wp WBpnwSXueMS7xzfnVrBFCvuX8oS/W0mFCSsZA336HmsL7LUv/OGT020EddmpxkkLJc2W qB2y78le0TJ22MCYIwRFU9Qm+J5GgmH/2TIVZ5cZqz2cWlOZDfXnLOUod7Bbr7dEZKMF D9nKDs5ymg9DEKMj2ifsfL5tORNfH40BfjyvLD3tZ9w4bofZJjlK9fSFn8MFg5JgBzc8 zjbg== 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=t1djKF3m6U+Af9/ZGWrqaGvBIKuqksw9obAztRj10CA=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=lmzzmJZU6cUJKKeDcQ7PhmGdgE1O+AHaD5uD6dPF6XvUiF/0+j/m5LYgayP/1ACANn GbXVngsm0YxpYDtqewjH4tZSm71H4ThdTsmAlveOwxxBoWbKDVo2YxuqvrRpTrLdLA5n ItyTdqSUjdTL/jmbUHrFGBkuV2BLvVQKXV67UPnoatb0HBPVz1jrrFjE6ct5ItNNLeno EGZ6G/48+QUhg2uIt2X8nX7NEHqjG/Z8ypugekYk88C+Fuvj7fKsXskyDEGrpGzkF8iK MtJ4uZAcRX9J63slyJcz8gkXVOLt+/m1HU4vFVGDCoVpFGU0rWROTO1t+ilOXql0Gb70 nc5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/7p2wvY"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33746-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33746-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n3-20020ac85a03000000b00429ea796bbfsi6148369qta.271.2024.01.22.09.44.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:44:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33746-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/7p2wvY"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33746-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33746-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 256161C26908 for ; Mon, 22 Jan 2024 17:44:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB1285D742; 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="p/7p2wvY" 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 1616B482FF; 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=uwZKOUlfpJR7PyylEiqAcRBa3w5N8CjJ+oes7cpSTIFz+tH+AcaTHg7JVZpRbnMo8IfsUsQLyZ3I4t5aEfA39ovfS5TAcOgMXjVMWDnJYMKhhC3Pf8L9wlsxMHwTV/69U1z+HZ+npW/UPM2rx1+RE902XEnXsTWK2Mdc3HQoFd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943133; c=relaxed/simple; bh=D4Sbqcpeq8NQUiUA6r8dDLIKkjJnY3txceHj/LWQjDU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aTW+zg7adfxQqodeWQOe+RHYNY/IHGHJVCb2jnBlmQxqnfGEjhuzOVA5UR+sMTXhxAQf7WoqiSBbRw4fe+Ku2qlklLkPefU2sCJyKtQjTAdCySoejifM8sLSnPkEVQlZo2PIO7AUUjOXsP0S2AMVorTkN2eCHe3mgxtwVOjfAJI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p/7p2wvY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60C5DC433C7; 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=D4Sbqcpeq8NQUiUA6r8dDLIKkjJnY3txceHj/LWQjDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p/7p2wvYMlTdP94HXxpN1cEiiKF/xUKljKopS2B5leeAYirfrkCYsknZIuSgrRZgv D3sWInZ7PzgCccyg4TnjZrviuZr3ahcpMbeLqRQA1TOQBZbf38BUuSfIts6I9rhZVg Mj5MSDoRrFacqoQd085ezjmy62ud+/OxQc6lJrIaYivMX1ZJXXvJNqG5aHqs/IjULj wkrcsd1GAugkzQlFP5Mj8AQoazXQL5CvER2s3xaOgI0OUTUEBQXhv+vrg/NQJ+njPX 0adOkuWMtzCGnSn8ZUPYSamp9yZ49WERonkl1YoxhMxR6UiUgvFiubzIt5bfaF9MWi Ck4Lgwg52dJ+A== Received: by wens.tw (Postfix, from userid 1000) id BC7A35F725; 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 1/7] dt-bindings: sound: sun4i-spdif: Fix requirements for H6 Date: Tue, 23 Jan 2024 01:05:12 +0800 Message-Id: <20240122170518.3090814-2-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> 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: 1788813500578889217 X-GMAIL-MSGID: 1788813500578889217 From: Chen-Yu Tsai When the H6 was added to the bindings, only the TX DMA channel was added. As the hardware supports both transmit and receive functions, the binding is missing the RX DMA channel and is thus incorrect. Also, the reset control was not made mandatory. Add the RX DMA channel for SPDIF on H6 by removing the compatible from the list of compatibles that should only have a TX DMA channel. And add the H6 compatible to the list of compatibles that require the reset control to be present. Fixes: b20453031472 ("dt-bindings: sound: sun4i-spdif: Add Allwinner H6 compatible") Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: Jernej Skrabec --- .../devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml index 8108c564dd78..98e2e053fa19 100644 --- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml +++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml @@ -62,6 +62,7 @@ allOf: enum: - allwinner,sun6i-a31-spdif - allwinner,sun8i-h3-spdif + - allwinner,sun50i-h6-spdif then: required: @@ -73,7 +74,6 @@ allOf: contains: enum: - allwinner,sun8i-h3-spdif - - allwinner,sun50i-h6-spdif then: properties: From patchwork Mon Jan 22 17:05:13 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: 190265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2733886dyb; Mon, 22 Jan 2024 09:50:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCGPiOJ92ifkww+vRbESn4eBxPjCaOzGdmdUZ8LcOulL2dQ4UHpfdQIFU4IgHz7PeCeYxy X-Received: by 2002:a17:903:58d:b0:1d5:3a24:508f with SMTP id jv13-20020a170903058d00b001d53a24508fmr4520252plb.133.1705945820381; Mon, 22 Jan 2024 09:50:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945820; cv=pass; d=google.com; s=arc-20160816; b=TRcQtCYCyKHXlvMCssitiJd8a8c923xvG8ubuwhtZyfCMQuWdkDiugQQaQGFRL+kBl 5LvT7flkFUmp19jYIc+nQXBjmQGUF8d8feyOfbFYcvVkuzkMxYNpXiSdJVSclb+jWpW3 i/f9jlPzE2HTGn8Qyoc+sJ9Ib+ZBdGkqYzuCzeHtnbjkxgsS+9IWhZcptFhpgD3wf/OZ 0/eGNPeD2x5Vo9i783i63kh+UoEIE9hn1ybe+/RauyBjAoU07Voh55L9PE9iERG0cQzb EmmxJLkl3GF5ssCil+H9jcoFdA8kKvya+zrMr0wkvx1DjsPTxBXeeUasrju91W5DJbIb Dh4A== 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=y5po9U9x+FRY+qLUJFDgZQUNKvM3g6FwaW7r3/pxqoo=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=aDvxmAci0dSrKAKu8x1WiwNH9T04zHrMxbgVcCJSc89wwmdxd/Muuig7NSYFyBxq18 BdMYLvjnQL8woxeRaA4KpWmNhE0Kn8H0eujiKfgDMeWJadVVp7Hly1gtZrsl494Eg73+ el9BEkU9hjeWFrl1dAPI8RwwPQxDzj7DgMg0vjX12fqlTXWZJc2DSVWG8u2f66+FSsiB e9HIOJbeESa44mZNRKToejJvFt/pgJQeE0h0UBid0WZJHEKG1885lTt++4sUuWw8PD55 Y6jHmm3A5xogYDmiM+8E9PpWw3HqG778uxNkW/5ZCcDMqHTg0bfXOHvnXB3+xovGeGjQ tKTQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zipi+Xj+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33745-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33745-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a8-20020a1709027d8800b001d6ff118952si8302549plm.537.2024.01.22.09.50.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:50:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33745-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zipi+Xj+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33745-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33745-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D992928D421 for ; Mon, 22 Jan 2024 17:44:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBC2D5D744; 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="Zipi+Xj+" 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 16134482FC; 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=LZLlTI2IZGM8hF+a5nBD5ZJepuncS1poO+b4rJlq4mas6jBv9rgrtFsR5Fc4MfrvQuW1fOAgxwwD5k/xWDpxdmycCnJOLXvXuXxkqLq7g01+ELuxuozG03P1tpYDG8A0EFM2MnGQ3O8NRUVijmzVpo5O8VOLdcjHsqlVPZLDwmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943133; c=relaxed/simple; bh=JdOHpoopJxRFnjbFQBUm9b3RMTijAagwBCFmoFDWfog=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VlxzEAaIWVPYxjG0y7CDLvh+lDi7A15JI6zPMwppOq/ESdUGeJb6ZEVHkFOKqlgUEyjRdrgyS9QPRY89COdlxq0AS0bvaNz22H5dpvVJ0zsVAWho+/hO8r+iPbmReitQRvruAcNDwRw+2ng4h0fZ6UIV8JGZe0og/8Y3zEgqiI0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Zipi+Xj+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88155C43394; 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=JdOHpoopJxRFnjbFQBUm9b3RMTijAagwBCFmoFDWfog=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zipi+Xj+/jgKkYfY1ZTFr/SWeePZYEaELd9CMz2ZBHo0BJzFH0fsmxI/0g9h5ma5p +UzAyg/pwdYibC7tzW8FhgaFb14pKR6Krc/U2QoLvaNiXZR2OqogtLcryKb7yGd4IO s4rsPh9nT59QIz5ULDfIPlg1ZEYA2zBKIsj/U8M0q19Es2+ZaH8282OJmMVPoLH8KD Mh/hiz6RnV2/9PFhOkooIeGSwxS1ir+L3+MBi251vYM99iBCk11zOHQ9jIzwnbdt0L JchWknEfmyDpo9GkQw84o2izZ1eoMiMVPGuo8MGJnQfl3mLIZ/WGoXZkpiijLRat24 XPCUV1JtCr1OQ== Received: by wens.tw (Postfix, from userid 1000) id D68205FFB2; 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 2/7] dt-bindings: sound: sun4i-spdif: Add Allwinner H616 compatible Date: Tue, 23 Jan 2024 01:05:13 +0800 Message-Id: <20240122170518.3090814-3-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> 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: 1788813844482125216 X-GMAIL-MSGID: 1788813844482125216 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. Add a new compatible string for it. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: Jernej Skrabec --- .../devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml index 98e2e053fa19..aa32dc950e72 100644 --- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml +++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml @@ -22,6 +22,7 @@ properties: - const: allwinner,sun6i-a31-spdif - const: allwinner,sun8i-h3-spdif - const: allwinner,sun50i-h6-spdif + - const: allwinner,sun50i-h616-spdif - items: - const: allwinner,sun8i-a83t-spdif - const: allwinner,sun8i-h3-spdif @@ -63,6 +64,7 @@ allOf: - allwinner,sun6i-a31-spdif - allwinner,sun8i-h3-spdif - allwinner,sun50i-h6-spdif + - allwinner,sun50i-h616-spdif then: required: @@ -74,6 +76,7 @@ allOf: contains: enum: - allwinner,sun8i-h3-spdif + - allwinner,sun50i-h616-spdif then: properties: 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: 190266 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2733920dyb; Mon, 22 Jan 2024 09:50:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKzZMIfkxdvIqQWBCYfMub3lSDzieeLiEotuG+n6ljZ4CBFM6zc9gKRAcn+UjPy3suKj7W X-Received: by 2002:aa7:989d:0:b0:6da:d988:e05d with SMTP id r29-20020aa7989d000000b006dad988e05dmr2226880pfl.67.1705945825402; Mon, 22 Jan 2024 09:50:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945825; cv=pass; d=google.com; s=arc-20160816; b=I22KETwSfBy5PddfxAWeBr/eRh9W21l9NPsA9S0eb2ZX41rt25qqoHnuzzjjVHrYu/ a39alQlratuK9uMMtJq1o2LYnLR+ny/zjae4NF5ja/hbBjRW4lIS1iqQUxfoQ14h5pZn gvM1dLKEQZ+ZcAFc3PQSrquT9UpivD0880ZU/TQUW8HionFn53gaicVeYCQpzHOCoSVl 0jC/g/TvtPjXrDgjr2465qHkoPrEuBQWPNSrOF1OKKNa/NdZBCg1BJMXXKbIivLPCt8W IkRyyhBD/dOJyTQXWsblP/8Uzfzvgoy2BeSxlBeLtazNwKre27nY/2IB9+2UICysKwCd FmYA== 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=4YHPtqpdJAOPrlsxLxjW6neMfENxrqLiLrQGPZiJqXs=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=hAYQWY58N+vT2jjGzH/2A+DyN4R79PeCviauwRZXUbLJMfP14iu7uq6I6jZ1NGm78y q8PS0iYl5cDfPGy2kGsMw2n6orPPQSjGpzK3xu3mrRFuYpWnGsZYsMtiP0lcvVHkaDnR DTTtAyR0qz0FoRdXXrkz8h+Rcm5NVOVtBR1682/uEfNlcJnyykHh9Se+1LY2ms2jhSVw hj0oFoahxI63NjFalhhj6dS6qcK1TqSTAS6LH10Y55hjdgS/bpbTJ4eg7KuDnkGnNEGw aweA+UPrZ3TrYMjihF+bI4ATHG2uO3VRj2cYNKWgsZvHO5m01/EIO5C4bcz4hyTr4tVe 43VA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRGc0ACc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l189-20020a6325c6000000b005c67e10f238si8539251pgl.492.2024.01.22.09.50.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:50:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRGc0ACc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33747-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DB02528D5C5 for ; Mon, 22 Jan 2024 17:44:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 273CA5D751; Mon, 22 Jan 2024 17:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RRGc0ACc" 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 6A1CA487AF; Mon, 22 Jan 2024 17:05:33 +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=rAi+RSOHlxE7YzpSXIm0MpL+067++i60VkmkYDlusdwCHo5JIrp9QTi94cAgtEZHOTEtmwlYN/6eSO6gJCNy+j+6SmRDSmvfuhJ+KUgnM5NJbOaa6QbpZoC+qe6jcjV5AOFCm5fQAASr5p0lCer7kaId32qo5n9lxOg6xC2o53E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943133; c=relaxed/simple; bh=Xm8PplLtMeyRnn4CAuMxfRssboO0T91G8ByncCA6dSw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DpB2SlA8JasyHJGkZSGq4Ki/TKt0eFsTEkxbMZj1yM89yUCkHqwArhjzDPRq+heEab28PlMyp9PV97jj8at5HLwXG9Ja5JhqaYdy726GbByXuX2aj3QeAkKc5FW7P4OmgfM9+tHmmgRjmABLbq09OAqua0k7/quGIqth4LdpFeI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RRGc0ACc; arc=none smtp.client-ip=10.30.226.201 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> 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: 1788813849955666441 X-GMAIL-MSGID: 1788813849955666441 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); From patchwork Mon Jan 22 17:05:15 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: 190259 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2731148dyb; Mon, 22 Jan 2024 09:44:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHBb9guIerAtTTlG4YonOkltJpl4LgysOkSk/YdUY0nCTHY2oMK6jYvWZMU3B5iMZg3TIq X-Received: by 2002:ac8:7f84:0:b0:42a:4586:7ae9 with SMTP id z4-20020ac87f84000000b0042a45867ae9mr1158878qtj.57.1705945492817; Mon, 22 Jan 2024 09:44:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945492; cv=pass; d=google.com; s=arc-20160816; b=XWN2IIaM3OhEtCOnVan54sVFX1r8vtr0PJp+eA3h8jTUU10pigF1wU3TNWhVavcMjI BQ5vEi3M/4xDnAPTq7tZ+ArcfZCAxf5PzxNoY17Fu2P8uUjYXy9Wph34sHgjTHdaMq/7 EZjRm83F7NNU3SnV7XSomGA3LredYpJwnYHZYfNHirOJSg3pxHGpeffW+hz+cg46wwhN 1S9HriGfG4/FvM0cLsS1MSFmwOVHUasKV9QB+dxsvgWL7KF/FNlwWifZNuW5BBgSnAiw JuPluJuKXLjv0UJJgMl9b9k0Zjj8pyM860QbGZcm/0bIX+maMs6y21nKgo2bj3Le4GfZ iWDQ== 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=c8CVW0zwAC4l9tz3jGaX6dHHyhaSBQYLOCqdWa3qKeY=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=TGpATeBuNS1i3TAFRldhlCw9hlc1L5TF3xjOlZMg1YSNyXzG3EVvHtGnNA9iPbWfvL oVsCTJJGFVJZMMUFIcZP8o9GIjRq11RdR5l8Psl/umj71tlE//uYLcwBuWecDpJuJESC 8KJ0cDwHU8pqd0e3/Scr4mY16x6gf7qY9ZdNwKpv9cDU0cVacfo/Rkm5C38pBtvqp5Ye PgVmy2VGFHGyU22CT9PIw74IOUJQmdbbQx94gqqdLtw82Zq9r3Vn0qXPnm7kKUZZa33O LUn5GsZOP8uoA0jLaOwQBJe+BRlt2m2nj+wQXgK7jEk17tAKcPhC2gcZGw1ttPxJvKCZ a7CA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=We0IU1KN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33743-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33743-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f3-20020a05622a104300b0042a468c55edsi1145135qte.38.2024.01.22.09.44.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:44:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33743-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=We0IU1KN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33743-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33743-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 9BCFD1C27571 for ; Mon, 22 Jan 2024 17:44:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB1575D743; 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="We0IU1KN" 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 0CDEB3D990; 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=nQ/nO1M0cHzn05oUl17dTLv0Q2E/Eqgi0UA2e2ITLwhJxXWqex1dCUlE7Sf3RDp2A2FZGMAha+9mx3lmseqgHSgLYxcDzCbcuEFEughPI2lLmTtlRD+P55bmsg/6JMj3P4YJv/qt8Or0IIgLp8yNNFLQb4fBhlkNVcK7+CnPPSU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943133; c=relaxed/simple; bh=S1UkfK4/p0h181iT92j9rPEO3r0iRuL3QMMsPwiuSjY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iqQDlhH2w/n1h0DAXaGyB5Ah02UHJTKhnj/EI+G4ETAbUdf14S0e8NHwBY5+DkHFrITgtmIM2SPzGxfVSWeAyHF9nARNO+mWlyb5oAS0fP3D+/tHXRcUb/LQO8ZVh5aAyKxULXTle4pMlAWBOxDXDM8mQOsFW8cXQOckNEen99o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=We0IU1KN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98346C433A6; 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=S1UkfK4/p0h181iT92j9rPEO3r0iRuL3QMMsPwiuSjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=We0IU1KNz5olxvNKbzGISxymnsCBPYNEmHnBPYe0KSnaa6SFlpW03oES+JnMoq8YC juiRstM9skTINNEATDvPHQnKam5PnTYkgPkjl75W4Uwc+hLPU5ivjvbKSei7e86HMd cZkSDUKl1F8DszivK2iiyOZ6e5c/AnwfwjECbGHRMXOfWGblEi5xvJbOMcq2UEW+PO KMJhRu7hoeT9sdEsnob11MVrjW48vsZA4IhXI8XEIL3mvpUIfrxnHmH8yD/HluAjzN p//aoMFPhYpwaUDmbEdrAfJpIDSz7ZsmyknDJAECmzoscNByaRjXo/2foseJm8Okxs Zf7i0qWj3zg/A== Received: by wens.tw (Postfix, from userid 1000) id F13F66001C; 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 4/7] dt-bindings: dma: allwinner,sun50i-a64-dma: Add compatible for H616 Date: Tue, 23 Jan 2024 01:05:15 +0800 Message-Id: <20240122170518.3090814-5-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> 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: 1788813500835096677 X-GMAIL-MSGID: 1788813500835096677 From: Chen-Yu Tsai The DMA controllers found on the H616 and H618 are the same as the one found on the H6. The only difference is the DMA endpoint (DRQ) layout. Since the number of channels and endpoints are described with additional generic properties, just add a new H616-specific compatible string and fallback to the H6 one. Signed-off-by: Chen-Yu Tsai --- .../bindings/dma/allwinner,sun50i-a64-dma.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml b/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml index ec2d7a789ffe..e5693be378bd 100644 --- a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml +++ b/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml @@ -28,6 +28,9 @@ properties: - items: - const: allwinner,sun8i-r40-dma - const: allwinner,sun50i-a64-dma + - items: + - const: allwinner,sun50i-h616-dma + - const: allwinner,sun50i-h6-dma reg: maxItems: 1 @@ -59,10 +62,14 @@ required: if: properties: compatible: - enum: - - allwinner,sun20i-d1-dma - - allwinner,sun50i-a100-dma - - allwinner,sun50i-h6-dma + oneOf: + - enum: + - allwinner,sun20i-d1-dma + - allwinner,sun50i-a100-dma + - allwinner,sun50i-h6-dma + - items: + - const: allwinner,sun50i-h616-dma + - const: allwinner,sun50i-h6-dma then: properties: From patchwork Mon Jan 22 17:05:16 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: 190268 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2734202dyb; Mon, 22 Jan 2024 09:50:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IExSQ2rM/dfD7r9V+bidqhpYz6KVcYqF7qCgxuhb9SKuXQQUOmT+1uPFKgHyvXVHaaqpU/v X-Received: by 2002:a05:6a20:3d02:b0:19c:4d44:9e65 with SMTP id y2-20020a056a203d0200b0019c4d449e65mr1131935pzi.31.1705945859671; Mon, 22 Jan 2024 09:50:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945859; cv=pass; d=google.com; s=arc-20160816; b=JToPItqDwfqUNswyyL27ZKaZ1v/4WWZEyM/hDfuHAMX9bi8TIEKOykA54HS+zzehu9 kXGeXjQfVsOUnn0JR9+x3c74TY/im7uPRoSDE38Nb2+AUiEEEdYE+lpjiKx/zrfLlnGw DmZzrI4vgn9VgiiAF+XCdhFAoQhZyenCHE6LR2VoprBLyqdRrl7a07wvyZhr5bTKMts5 rjiapt6A0x3QAz5MxbvXhL3Rv3gzHKxrvnJoadr9jKUWKDHdhYqjfQVii1kGoU6lebuN s6Hzl4bDRlw2Y4JP9cOxHE5su1ZNwYcLfPo7KE2ErskRzZHPpHSKfwf0be70IpvsmMOk PnZg== 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=kDQJqr6goYYIkxSRzyTBzCdsdpof2oH+qclBj/rXWwM=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=0Za+mMxl3QMTHs+8Sn3LBML7i2y9g8V79hv/Z3LShwdwQD/99m/6u0Ed2J2Im36QcP MvisXrWe6Y8OycWVj58fuiKuqpHWDLe7auLIROTRgkjT3loHBVOFu+RSUUDZocu2P5fS NG7seWEiLHzJIkn3Wqm3t/3NmkLG2PVrUKUNv7tqoFTK5SoZ+BHP8abOAeFKbsQhpPJ3 7HMenbp/4vO2vwRkwjOIwHA/G8V8QPYE911cokpwkLnqWlR6Bj5z/8VURZZtuK1X4S3I DJMLID1VaVbFgcRvkwnOfZtKjHFJhNdfv2hBhq0g+HCsEV+efoMtvLsWEpBOsCTwQNfB Xqkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vP9acJoB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33749-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33749-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l189-20020a6325c6000000b005c67e10f238si8539251pgl.492.2024.01.22.09.50.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:50:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33749-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vP9acJoB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33749-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33749-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2C2DC28C561 for ; Mon, 22 Jan 2024 17:45:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AC045DF0A; Mon, 22 Jan 2024 17:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vP9acJoB" 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 6C7505C91D; Mon, 22 Jan 2024 17:05:35 +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=1705943135; cv=none; b=XxEac0MWRzhKpPpXoV9lLm7x/ebi+EVHHPauF6W2gFqbAetsBmH1LV1yxz4yYiHjQQ3zoiHDCp9YLaVbot31T6aVXRFJ6wI0zsBf50FZJHCxtrm1a1q7mwHvtTbBoQZ7LyqeUQkjiPPfUWU1Q2VRedF1/YoQ+hAfmtMjlS1LCjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943135; c=relaxed/simple; bh=sdP1r/VhAMaKVNqjhK+hZstufK/WpJeVtEdRqv6k0hU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=a4hh6k4JdlrHGn+uvnuA8D01yE10oIxiT9+Kinsa8FyK48jLuPd85vZzLA6lQmviat6VD+/DGIepLLJpdLo+cs95rGtysgeJLVeXoguDlaHe4eJzzGS4MyvnWX9gl66zOGDVpFvaOnWiyuYfIs5pLld5U1x6UldPQn2LKxL/dpU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vP9acJoB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B53CDC43394; Mon, 22 Jan 2024 17:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705943134; bh=sdP1r/VhAMaKVNqjhK+hZstufK/WpJeVtEdRqv6k0hU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vP9acJoBknBHA3wKShNSxY5CetLpAoQM27SJUaeoHdIOzn8f1z+FdPdh3L6XsQQ3d 7yIrIs8QngJkdEH/0mlNLEvA1OHj0GvzC7j3z1a/7q9UPsIpyF/5/UllFwiFf2h3b6 BGb0RyFDiuDTl/A01CqkKCtCZSVSTThfEOpwegvtrSlWGK4yyjyQh7t7UrubuQczAx eX0GF7KOYgj6kogV/8iYKY+rANrwG+rTe27Wwp1U1qu0nllvqTBskm4X0QabpKWPn7 J6dX3UNrpo028k7I0IUj8WoveB9423thrJYWxp6+l16DKWzPdgQzQMf3ImI5NxUSpl 3FnbmcglNJgVg== Received: by wens.tw (Postfix, from userid 1000) id 1382D6002A; Tue, 23 Jan 2024 01:05:30 +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 5/7] arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF Date: Tue, 23 Jan 2024 01:05:16 +0800 Message-Id: <20240122170518.3090814-6-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> 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: 1788813886006607539 X-GMAIL-MSGID: 1788813886006607539 From: Chen-Yu Tsai The SPDIF hardware found on the H6 supports both transmit and receive functions. However it is missing the RX DMA channel. Add the SPDIF hardware block's RX DMA channel. Also remove the by-default pinmux, since the end device can choose to implement either or both functionalities. Fixes: f95b598df419 ("arm64: dts: allwinner: Add SPDIF node for Allwinner H6") Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 ++ arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi | 2 ++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 7 +++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts index 9ec49ac2f6fd..381d58cea092 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts @@ -291,6 +291,8 @@ sw { }; &spdif { + pinctrl-names = "default"; + pinctrl-0 = <&spdif_tx_pin>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi index 4903d6358112..855b7d43bc50 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi @@ -166,6 +166,8 @@ &r_ir { }; &spdif { + pinctrl-names = "default"; + pinctrl-0 = <&spdif_tx_pin>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index ca1d287a0a01..d11e5041bae9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -406,6 +406,7 @@ spi1_cs_pin: spi1-cs-pin { function = "spi1"; }; + /omit-if-no-ref/ spdif_tx_pin: spdif-tx-pin { pins = "PH7"; function = "spdif"; @@ -655,10 +656,8 @@ spdif: spdif@5093000 { clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; clock-names = "apb", "spdif"; resets = <&ccu RST_BUS_SPDIF>; - dmas = <&dma 2>; - dma-names = "tx"; - pinctrl-names = "default"; - pinctrl-0 = <&spdif_tx_pin>; + dmas = <&dma 2>, <&dma 2>; + dma-names = "rx", "tx"; status = "disabled"; }; From patchwork Mon Jan 22 17:05:17 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: 190262 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2731649dyb; Mon, 22 Jan 2024 09:45:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjvF3zdl7rUIml//Gxf7RSKfbOBKJzXwKmj3PKS1MvQ5s1vXNs7ieT6dH+1yQKZn3j6qCq X-Received: by 2002:a2e:8013:0:b0:2cd:55f1:2518 with SMTP id j19-20020a2e8013000000b002cd55f12518mr1907362ljg.88.1705945546422; Mon, 22 Jan 2024 09:45:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945546; cv=pass; d=google.com; s=arc-20160816; b=XK5Oy59HlsILTdL1yfj3FakArEIKsd/RUBkPHVEFw/e83VFBMpK7HrT6pEIi00Q/kj 9tR0NjoFWYT/5Rf4d97RnHwJi/O1GCkYhSQBDQLhPG6SFqiGZt5s4jZqdgfd7A1NmkjV ChDMCFgbw++sYSOzgP2uxBW2NDF5bm9vDUi39H7VbNTKtaho3Iit4GVpQpkyTbxaNY+4 4pOd4Xg4qZm+FU1lJWzbc14KYD33likesPdNMBr1feSsmLgnsbeekSREwAjd610iq/WP 4zBPlYarlKEZZ40iB9CQCW6E0Vo6Jipuco+mfXTpyVUlbNGlzcMi+lEzVOV6OXn1gtgX Oj5w== 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=sNR6AwvIxI0ASUkhTykwA73cP/Tqi5mYOGHUZhcgxGs=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=qoHRY5b/8tuff2pfzHnkoe0ZaygUoyb2fs02pfkhVGa8bMl7OQXJhnMn3hCqmYMIc6 isug+KUCIioQE1qPGLl/T8LhskqXMTv/ff26C/uh+f804lqvigaFB1WEkwPKze1188er DIdtKi5QChjsqTAXPcfoE3DRtU8FlDKFRAHxc0zSoW9A0QENUAm1rOQV6qLcOoyu3lzh knMSXHL/hlqE4rV0YVCRXOM//K+QZd+ccXvnH2l41l+nl3X+kwVhIdhT0cZOTiuTXoEc nog2f1k8KZMlr+6wBAgMnAkiW6RoJ3n5Ty6hAQpm63qQ6D9oksGD3cC935LntIxjXfRe F5Vg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rB29qSMA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33748-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33748-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 fg12-20020a056402548c00b0055c2fd2bcadsi1414612edb.181.2024.01.22.09.45.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33748-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=rB29qSMA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33748-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33748-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 D1E301F26A36 for ; Mon, 22 Jan 2024 17:45:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 619435DF15; Mon, 22 Jan 2024 17:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rB29qSMA" 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 63D015C918; Mon, 22 Jan 2024 17:05:35 +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=1705943135; cv=none; b=tapLr0xcazgzPyhY8dO8azHyXdJeq0LerZYnf5dzEYmVIGc25yQD/yG74JTm3OGBbB45U61RLAv7lfSzs8pUDLSQApZFAAnyxxss44lBudsrDq97iyqPrPerGPk65MdJIMto6lngrcN+Sy+hdrHSwCqH1m3+aJnrBBPq8sryYhI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943135; c=relaxed/simple; bh=aUTMYzjs78uYTiEQAgGmOm7LBsj4lDRYJ/Ilq8T3RhQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qxKYmURhEZLnEpg/ZkAXz/n+yEZUNmtbT1scjwEMFhuPSPjZ2m1ODp7llZHYJQYhiHN4n900bTs2lmNErtoa4K2D23GNTj8hgAzgoQKTWvNtowToVJMBj8jF5QHQRkQnIY8HoHsRplBlrl4PnEIqMIvFn+ZboOmpUiLAamWTnwI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rB29qSMA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10F92C43601; Mon, 22 Jan 2024 17:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705943135; bh=aUTMYzjs78uYTiEQAgGmOm7LBsj4lDRYJ/Ilq8T3RhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rB29qSMAhfPSXzKG1+4qWSzciEb+EdBeCnD9CUDsyTaFZmnR6srgzEqZXVe58s/CY eQw60vlZoD+EZt5SLzvsiZfkZ8svf6WH4CedqO448K2gJNwcxtYP0U01Ecqm3uC5nN eItWsVbDULugmrunkBcbqsiAegL3laJg6Z5395omqJ3j2Nk4HFWehA7es/d8m93dn5 ztYIfgYYZ/DekH5rIgMHlMUXjvDASwiHy06I3HtY+QTpPHY33yC28mrJytg64uEdpE oyPhSEDTzqKExBUlBJvn1QvbmH354riPLnwdO5vbGRYGJOCowNq6x4Clq8g5PpJDQI 1BmYN0KhW+CuQ== Received: by wens.tw (Postfix, from userid 1000) id 20624600A4; Tue, 23 Jan 2024 01:05:30 +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 6/7] arm64: dts: allwinner: h616: Add DMA controller and DMA channels Date: Tue, 23 Jan 2024 01:05:17 +0800 Message-Id: <20240122170518.3090814-7-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> 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: 1788813557460048340 X-GMAIL-MSGID: 1788813557460048340 From: Chen-Yu Tsai The DMA controllers found on the H616 and H618 are the same as the one found on the H6. The only difference is the DMA endpoint (DRQ) layout. Add a device node for it, and add DMA channels for existing peripherals. Signed-off-by: Chen-Yu Tsai --- .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index d549d277d972..a0268439f3be 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -133,6 +133,19 @@ ccu: clock@3001000 { #reset-cells = <1>; }; + dma: dma-controller@3002000 { + compatible = "allwinner,sun50i-h616-dma", + "allwinner,sun50i-h6-dma"; + reg = <0x03002000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>; + clock-names = "bus", "mbus"; + dma-channels = <16>; + dma-requests = <49>; + resets = <&ccu RST_BUS_DMA>; + #dma-cells = <1>; + }; + sid: efuse@3006000 { compatible = "allwinner,sun50i-h616-sid", "allwinner,sun50i-a64-sid"; reg = <0x03006000 0x1000>; @@ -339,6 +352,8 @@ uart0: serial@5000000 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART0>; + dmas = <&dma 14>, <&dma 14>; + dma-names = "tx", "rx"; resets = <&ccu RST_BUS_UART0>; status = "disabled"; }; @@ -350,6 +365,8 @@ uart1: serial@5000400 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART1>; + dmas = <&dma 15>, <&dma 15>; + dma-names = "tx", "rx"; resets = <&ccu RST_BUS_UART1>; status = "disabled"; }; @@ -361,6 +378,8 @@ uart2: serial@5000800 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART2>; + dmas = <&dma 16>, <&dma 16>; + dma-names = "tx", "rx"; resets = <&ccu RST_BUS_UART2>; status = "disabled"; }; @@ -372,6 +391,8 @@ uart3: serial@5000c00 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART3>; + dmas = <&dma 17>, <&dma 17>; + dma-names = "tx", "rx"; resets = <&ccu RST_BUS_UART3>; status = "disabled"; }; @@ -383,6 +404,8 @@ uart4: serial@5001000 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART4>; + dmas = <&dma 18>, <&dma 18>; + dma-names = "tx", "rx"; resets = <&ccu RST_BUS_UART4>; status = "disabled"; }; @@ -394,6 +417,8 @@ uart5: serial@5001400 { reg-shift = <2>; reg-io-width = <4>; clocks = <&ccu CLK_BUS_UART5>; + dmas = <&dma 19>, <&dma 19>; + dma-names = "tx", "rx"; resets = <&ccu RST_BUS_UART5>; status = "disabled"; }; @@ -405,6 +430,8 @@ i2c0: i2c@5002000 { reg = <0x05002000 0x400>; interrupts = ; clocks = <&ccu CLK_BUS_I2C0>; + dmas = <&dma 43>, <&dma 43>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_I2C0>; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; @@ -420,6 +447,8 @@ i2c1: i2c@5002400 { reg = <0x05002400 0x400>; interrupts = ; clocks = <&ccu CLK_BUS_I2C1>; + dmas = <&dma 44>, <&dma 44>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_I2C1>; status = "disabled"; #address-cells = <1>; @@ -433,6 +462,8 @@ i2c2: i2c@5002800 { reg = <0x05002800 0x400>; interrupts = ; clocks = <&ccu CLK_BUS_I2C2>; + dmas = <&dma 45>, <&dma 45>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_I2C2>; status = "disabled"; #address-cells = <1>; @@ -446,6 +477,8 @@ i2c3: i2c@5002c00 { reg = <0x05002c00 0x400>; interrupts = ; clocks = <&ccu CLK_BUS_I2C3>; + dmas = <&dma 46>, <&dma 46>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_I2C3>; status = "disabled"; #address-cells = <1>; @@ -459,6 +492,8 @@ i2c4: i2c@5003000 { reg = <0x05003000 0x400>; interrupts = ; clocks = <&ccu CLK_BUS_I2C4>; + dmas = <&dma 47>, <&dma 47>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_I2C4>; status = "disabled"; #address-cells = <1>; @@ -472,6 +507,8 @@ spi0: spi@5010000 { interrupts = ; clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; clock-names = "ahb", "mod"; + dmas = <&dma 22>, <&dma 22>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_SPI0>; status = "disabled"; #address-cells = <1>; @@ -485,6 +522,8 @@ spi1: spi@5011000 { interrupts = ; clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; clock-names = "ahb", "mod"; + dmas = <&dma 23>, <&dma 23>; + dma-names = "rx", "tx"; resets = <&ccu RST_BUS_SPI1>; status = "disabled"; #address-cells = <1>; From patchwork Mon Jan 22 17:05:18 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: 190261 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2731622dyb; Mon, 22 Jan 2024 09:45:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/i24w8t9TP8RMTzy0E9MO62OJIanjm5lqT467u9ZBjQdJpk++sLvJVCbLVg7J2xgUWwAr X-Received: by 2002:a2e:9113:0:b0:2cc:77b0:7655 with SMTP id m19-20020a2e9113000000b002cc77b07655mr1832316ljg.8.1705945543686; Mon, 22 Jan 2024 09:45:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945543; cv=pass; d=google.com; s=arc-20160816; b=hkuj2WbyZtNhRVeWyzt54Q44xAnAEH9eaEXXgtw8M+/REeaRhqbSr/+aJxXg0nZi/T CdAiuJVQ7pP64uobJAUaO0Si1fri+xug7itSr7T1++Yan8bdpnwHWjB/uftXVGdHdTDT bxPvM5fV+3kzMhdjdceeCu4hKDeMhHBV7ZXHkybvmh9DjZaUinKSaW+AKE9ar+XmUCsV IpdsGKFDwIXQvuiq86ZDC3w6N3wHtpFdCur1HmpEM85TqbV19QP+qKKA6q1727rCieII ZKY6IMWrkhz545oBMAXlGMMpffP+deArTIvxreh3/VC+/cODoWhcT0t0Pz5Gr3K1Q6I1 CaRw== 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=JDqGiC62U6/lv5nPPmdBA3m8DQLwdlm1r4nq0YjRuGw=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=u/5LkXm1ndxp8xxYfMchS4IayWlxD5NqSN6PLzzwA/5DJ90VlstkPZ8HXn6ZoZTbTu iQ4xfp5fQr3flwcrKq4rD1eLDtWPVbSZw4CYcVL4XUzyP+WI9+R7vyuAeoklHFVstmEm VyNto8qhLsVJeBQvwWhx56OmRp27NPRn0iPlgOjJTn+7/UdNefglClh1DRfFy52l0iAV yqXzhpacyjyGk8d0/bMoNmFTx/+cl4iZG81MFochE+16QknBfogYDunzJ7oFuCPRxr9p Tr188HGGKFGiy20DwA0khZ3vTnJVVASazXgWzj2fMTDm1K7Aa06VWhhsJFUEJ1KwAZ5Q 9WJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTjpP12a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33750-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33750-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 c8-20020a0564021f8800b00559963bde38si7174745edc.556.2024.01.22.09.45.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33750-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=eTjpP12a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33750-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33750-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 4C8271F2714E for ; Mon, 22 Jan 2024 17:45:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3733C5DF0E; Mon, 22 Jan 2024 17:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eTjpP12a" 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 8D3FF5D8E1; Mon, 22 Jan 2024 17:05:36 +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=1705943136; cv=none; b=O3O4RDiMbBNHdcLZMb28WxymhZ+zjcJPOntJ5OO8OdH7wxoGwfpAKz2+Mu66MjqHZdpT4kwdPCYfrv9yapWnTS49GGkm2KOEelNGQsvLl4/sGe1g3dExSvimxAuoQYTv7Ip1GrIukk5a6F9dlMG4ntyR7sOpDH9574/7x5ZXbaU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943136; c=relaxed/simple; bh=plCrDOFxd9CSFR2G/TaoQ8OuyVplm0yUrVWBFc9beG0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S+Wm8JtsC7Lwiaylx39EaqLxQblhyJiYL7HlFTpXQum5SRONN9oUfE0mKLj3ZSTLERn6ESWP/8KnDRrRWEnDLSIF2IJOSVNKv59xlyqS1wHxqPI29svX2nLBsl4Q2/o/V9mRUqd7gD6+fe7KZ9/5L7F4WoVDEbcstYk2fACQucI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eTjpP12a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C65EEC43141; Mon, 22 Jan 2024 17:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705943136; bh=plCrDOFxd9CSFR2G/TaoQ8OuyVplm0yUrVWBFc9beG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eTjpP12aEqbpC9EDTaf7939XgV6o2gVZwL8479UFJS++dJR+QRuJOuFVsDUDiMrXm kKg9rpEb/hkE2EGvRmNITTp21cA0j773Ordlv+twyUbNtPw02tlEMlT+kLqEotK3Ju vWdaDowAOlZ8hUJWnEhVRKJZRFbp8QPFubGuiS6Ebbc36NR7uEfTTaEZrgaoIJH5vf dPIbPww8ez+hibciUxiXaklYhdZnZhDM/39NmSSPNupPqxV4Gzfclp7fYOUECtHFcn qFN7sVEmR6yjcH3vTvrWsL1e9nwto7Elo7K16BywguX097llP5TRrLyeou8fjzFNX9 PT4QACDWJPSOQ== Received: by wens.tw (Postfix, from userid 1000) id 2E367600FD; Tue, 23 Jan 2024 01:05:30 +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 7/7] arm64: dts: allwinner: h616: Add SPDIF device node Date: Tue, 23 Jan 2024 01:05:18 +0800 Message-Id: <20240122170518.3090814-8-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> 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: 1788813554404193572 X-GMAIL-MSGID: 1788813554404193572 From: Chen-Yu Tsai The H616 SoC has an SPDIF transmitter hardware block, which has the same layout as the one in the H6, minus the receiver side. Add a device node for it, and a default pinmux. Signed-off-by: Chen-Yu Tsai --- .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index a0268439f3be..fd4c080b8e62 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -253,6 +253,11 @@ spi1_cs0_pin: spi1-cs0-pin { function = "spi1"; }; + spdif_tx_pin: spdif-tx-pin { + pins = "PH4"; + function = "spdif"; + }; + uart0_ph_pins: uart0-ph-pins { pins = "PH0", "PH1"; function = "uart0"; @@ -550,6 +555,21 @@ mdio0: mdio { }; }; + spdif: spdif@5093000 { + compatible = "allwinner,sun50i-h616-spdif"; + reg = <0x05093000 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; + clock-names = "apb", "spdif"; + resets = <&ccu RST_BUS_SPDIF>; + dmas = <&dma 2>; + dma-names = "tx"; + pinctrl-names = "default"; + pinctrl-0 = <&spdif_tx_pin>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + usbotg: usb@5100000 { compatible = "allwinner,sun50i-h616-musb", "allwinner,sun8i-h3-musb";