From patchwork Mon Jul 20 17:42:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Larsson X-Patchwork-Id: 2697 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mxe881.netcup.net (Postfix) with ESMTPS id E0BEF1C09D9 for ; Mon, 20 Jul 2026 19:57:56 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=palvencia.se; spf=pass (sender IP is 104.64.211.4) smtp.mailfrom=linux-sunxi+bounces-24547-noreply=patchwork.local@lists.linux.dev smtp.helo=sin.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4 as permitted sender) client-ip=104.64.211.4; envelope-from=linux-sunxi+bounces-24547-noreply=patchwork.local@lists.linux.dev; helo=sin.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id B150D300C8AD for ; Mon, 20 Jul 2026 17:43:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C82B4499AF; Mon, 20 Jul 2026 17:43:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=palvencia.se header.i=@palvencia.se header.b="Fx7y2FWX" X-Original-To: linux-sunxi@lists.linux.dev Received: from m101-out-mua-6.websupport.se (m101-out-mua-6.websupport.se [109.235.175.106]) (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 C81A54499A2 for ; Mon, 20 Jul 2026 17:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.235.175.106 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784569429; cv=none; b=osbv7yXZy2QL7nN0RB94C0+pmwhFduYhoiLNHeI1BzHsL0uwURv+XblXjUQkCurTAb1tujyosn7WsHDKNpi3e2t3xSqEjasSKKCRiJbd4CdRoVr8hA46TTZhhho/ouhKJffX8UDmobYGdClerrokQfLBscLwBrDGipzDuibOcsk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784569429; c=relaxed/simple; bh=JsHQyksXAECz4hOT/t7xqDeBq0k7ZG3gkiPaX1orTi0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EFOuxebj9IsYDygSfvjoT3ZJG3IWbSM32b5+WQnLCfw9tKTMNlEp3u/2XJvPz+uMg6Itsh4KOSXFu4zDa34QHhI9ObN2V4uK69aEqdr6HefMdgiy7pZWmfdbZmhbJ2y7bcKS7UmbdVDY3zt/CUi197XAFyzvBAgDDE0g2G29++Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=palvencia.se; spf=pass smtp.mailfrom=palvencia.se; dkim=pass (2048-bit key) header.d=palvencia.se header.i=@palvencia.se header.b=Fx7y2FWX; arc=none smtp.client-ip=109.235.175.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=palvencia.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=palvencia.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palvencia.se; s=mail; t=1784569422; bh=UiZDU+zwqlhCb8NClI+UcJBF+04owitay8cguXiw8Ww=; h=From:To:Cc:Subject:Date:From; b=Fx7y2FWXp9wedQG4Uc+Xp2zzHVj26clK2A+1nFgTlvacoscXIAAYiyHkSB00ofO71 4DxVq2gpAR9/G25wasUWTp1iDSufTZ2FFJLA5dTNEt12aEEVtUWdTNYRCKRo9y7kjM z6buMjLsRYRqKqg9hzVs0h91bR9LVqjO+fRbjOn1+fdGBz0rc2hynLsy0VZDeGslC3 IOiMsr91ClFBdED0HlDp1FPNGQY03AeH3Yn+HuR2PIrNtt47YwctclKXNHZHrgq6Ft c7QtnDr6oFT49IJzvtrZhdo6zIv8V366Y09KpjX6HYJEh9P3IzX74WztkbsDAnwmwp eJGngRYH8vKmw== Received: from m101-u5-ing.websupport.se (unknown [10.30.5.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by m101-out-mua-6.websupport.se (Postfix) with ESMTPS id 4h3ntj6hkszSqf; Mon, 20 Jul 2026 19:43:41 +0200 (CEST) X-Authenticated-Sender: per@palvencia.se Authentication-Results: m101-u5-ing.websupport.se; auth=pass smtp.auth=per@palvencia.se smtp.mailfrom=per@palvencia.se Received: from palvencia.se (unknown [193.180.91.63]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: per@palvencia.se) by m101-u5-ing.websupport.se (Postfix) with ESMTPSA id 4h3nth2pbwz2wjk; Mon, 20 Jul 2026 19:43:40 +0200 (CEST) From: Per Larsson To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support), linux-sunxi@lists.linux.dev (open list:ARM/Allwinner sunXi SoC support), linux-kernel@vger.kernel.org (open list) Cc: Per Larsson Subject: [PATCH 1/2] arm64: dts: allwinner: a523: Add missing SPDIF pin Date: Mon, 20 Jul 2026 19:42:42 +0200 Message-ID: <20260720174253.7686-1-per@palvencia.se> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Out-Spamd-Result: default: False [2.90 / 1000.00]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org,vger.kernel.org,lists.infradead.org,lists.linux.dev]; TAGGED_RCPT(0.00)[dt]; ASN(0.00)[asn:35790, ipnet:193.180.91.0/24, country:SE]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[11]; HAS_X_AS(0.00)[]; ALIAS_RESOLVED(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; LOCAL_OUTBOUND(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com] X-Rspamd-Action: no action X-Out-Rspamd-Queue-Id: 4h3nth2pbwz2wjk X-Out-Rspamd-Server: m101-rspamd-out-4 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) https://www.eleven.de X-purgate: This mail is considered clean (visit https://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1154 X-purgate-ID: 155908::1784569421-3D7071C6-B1A24F28/0/0 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-0.66 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[104.64.211.4:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MAILLIST(-0.15)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; PRECEDENCE_BULK(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[palvencia.se]; DBL_BLOCKED_OPENRESOLVER(0.00)[sin.lore.kernel.org:rdns,sin.lore.kernel.org:helo,palvencia.se:email,palvencia.se:dkim]; R_DKIM_ALLOW(0.00)[palvencia.se:s=mail]; RCVD_COUNT_FIVE(0.00)[6]; TAGGED_FROM(0.00)[bounces-24547-noreply=patchwork.local]; RCPT_COUNT_SEVEN(0.00)[11]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org,vger.kernel.org,lists.infradead.org,lists.linux.dev]; DKIM_TRACE(0.00)[palvencia.se:+]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:104.64.211.4]; FORGED_SENDER_MAILLIST(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:63949, ipnet:104.64.192.0/19, country:SG]; MIME_TRACE(0.00)[0:+]; HAS_X_AS(0.00)[]; FROM_NEQ_ENVFROM(0.00)[per@palvencia.se,linux-sunxi@lists.linux.dev]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: E0BEF1C09D9 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= When spdif support was added for the Allwinner A523 family of SoCs, only two of the three possible pins were added to the dtsi, since the third would clash with the first ethernet port (emac0) However, some devices don't use emac0 and instead use emac1 for the only available ethernet port, leaving the pin free to use for spdif. Add the missing pin to the dtsi so such devices can (later) use it Signed-off-by: Per Larsson Reviewed-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi index ca6a16807049..7370e8ed24ec 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi @@ -216,6 +216,13 @@ spdif_out_pb_pin: spdif-pb-pin { allwinner,pinmux = <2>; }; + /omit-if-no-ref/ + spdif_out_ph_pin: spdif-ph-pin { + pins = "PH7"; + function = "spdif"; + allwinner,pinmux = <4>; + }; + /omit-if-no-ref/ spdif_out_pi_pin: spdif-pi-pin { pins = "PI10"; From patchwork Mon Jul 20 17:42:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Larsson X-Patchwork-Id: 2696 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id D9C321C3E03 for ; Mon, 20 Jul 2026 19:46:52 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=palvencia.se; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-24548-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-24548-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 4391730391C3 for ; Mon, 20 Jul 2026 17:44:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 724B944B696; Mon, 20 Jul 2026 17:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=palvencia.se header.i=@palvencia.se header.b="uRE/tTHm" X-Original-To: linux-sunxi@lists.linux.dev Received: from m101-out-mua-6.websupport.se (m101-out-mua-6.websupport.se [109.235.175.106]) (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 5887D44C660 for ; Mon, 20 Jul 2026 17:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.235.175.106 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784569437; cv=none; b=LV3RehjJg+4gAdwL0SmfTPBjX8d3uISnrEQqlq835hs76q6o5Md/cucfkKlpynM4x1b6ov07ZQwnPEaOjFX/r1rcOzY6s1hTWvpfmIgnutFIMOmb9MhZm2fu5JmNBf9N4daVeOAPvRE8e3UP9eLmRelZc4fVlXmcyra0otGKGxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784569437; c=relaxed/simple; bh=QuORo6BNu6ikljo1K5M0WR5Xlkz4UgqYu+AlSLxO9As=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WrwbNb97UzcglFiNxn61/1rYZI5Wv2eN83hzwdbmC43FRiCqpcf7pxRBc6Sqg0RAPuvqCcuMzqeZWvZcZVOjZx1O3Rc6FPRtFAs6/2uQOZsiBH2sauj+dPuLrlvZoYxsLAEdZ4FM2vkY9tPw3EY4W8DSGz31lmbGnd2AeknC3fM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=palvencia.se; spf=pass smtp.mailfrom=palvencia.se; dkim=pass (2048-bit key) header.d=palvencia.se header.i=@palvencia.se header.b=uRE/tTHm; arc=none smtp.client-ip=109.235.175.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=palvencia.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=palvencia.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palvencia.se; s=mail; t=1784569430; bh=a6K3JoQ/La7gglTSywyKmCSq3qYTAVbtDQfL9xWyo6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uRE/tTHmCL6OMXyzABtlR6iHJJluQr/DgUbHrnzemJ7dyb+eRnbFvUG2uA9/1y4UF zR7kn+0OSQgMzzPmwjQLZlXIjK5tDdX4Qvw6q7GqNauLf2SanNE/8XNYIMf4LxVG9B EHNPmqJuLvnhFjFeYU5w8fzdtaOjZXj6h8PcRBv7MaJb3iJllp5PFuH/JTP2NqF1V8 zroBCHdhrvvPoXCJyd497KnuIY2OgDLSWhFlUsLnRMLlB5JhUDJC3Brq0ud3DRC6+M nsDtGeZpb3ReQ4kdyk0qePn5Jqv3X0W5X/4XWqP0R9GYrSfnx4FVsi/Oxw7YmetIJD 4dubC8bFVQBkQ== Received: from m101-u5-ing.websupport.se (unknown [10.30.5.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by m101-out-mua-6.websupport.se (Postfix) with ESMTPS id 4h3nts714szRD7; Mon, 20 Jul 2026 19:43:49 +0200 (CEST) X-Authenticated-Sender: per@palvencia.se Authentication-Results: m101-u5-ing.websupport.se; auth=pass smtp.auth=per@palvencia.se smtp.mailfrom=per@palvencia.se Received: from palvencia.se (unknown [193.180.91.63]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: per@palvencia.se) by m101-u5-ing.websupport.se (Postfix) with ESMTPSA id 4h3ntr3rKVz2p3h; Mon, 20 Jul 2026 19:43:48 +0200 (CEST) From: Per Larsson To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support), linux-sunxi@lists.linux.dev (open list:ARM/Allwinner sunXi SoC support), linux-kernel@vger.kernel.org (open list) Cc: Per Larsson Subject: [PATCH 2/2] arm64: dts: allwinner: a523: Add SPDIF to x96qpro+ device Date: Mon, 20 Jul 2026 19:42:43 +0200 Message-ID: <20260720174253.7686-2-per@palvencia.se> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260720174253.7686-1-per@palvencia.se> References: <20260720174253.7686-1-per@palvencia.se> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Out-Rspamd-Queue-Id: 4h3ntr3rKVz2p3h X-Out-Rspamd-Server: m101-rspamd-out-6 X-Rspamd-Action: no action X-Out-Spamd-Result: default: False [2.90 / 1000.00]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org,vger.kernel.org,lists.infradead.org,lists.linux.dev]; TAGGED_RCPT(0.00)[dt]; ASN(0.00)[asn:35790, ipnet:193.180.91.0/24, country:SE]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[11]; HAS_X_AS(0.00)[]; ALIAS_RESOLVED(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; LOCAL_OUTBOUND(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com] X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) https://www.eleven.de X-purgate: This mail is considered clean (visit https://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1315 X-purgate-ID: 155908::1784569429-3D7071C6-507E0540/2/76550713453 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The X96QPro+ TV box uses the PH7 pin for its SPDIF output Add the relevant bits to the dts now that the dtsi knows about the pin Signed-off-by: Per Larsson --- .../dts/allwinner/sun55i-h728-x96qpro+.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts b/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts index a96927fbdadd..b172985583f8 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts +++ b/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts @@ -44,6 +44,24 @@ reg_vcc3v3: vcc3v3 { vin-supply = <®_vcc5v>; regulator-always-on; }; + + sound-spdif { + compatible = "simple-audio-card"; + simple-audio-card,name = "spdif-out"; + + simple-audio-card,cpu { + sound-dai = <&spdif>; + }; + + simple-audio-card,codec { + sound-dai = <&spdif_out>; + }; + }; + + spdif_out: spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; }; &ehci0 { @@ -275,6 +293,12 @@ &r_pio { vcc-pm-supply = <®_aldo3>; }; +&spdif { + pinctrl-names = "default"; + pinctrl-0 = <&spdif_out_ph_pin>; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;