Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: allwinner: a523: Add SPDIF TX pin on PB and PI pins

The SPDIF TX (called OWA OUT in the datasheet) is available on three
pins. Of those, the PH pin is unlikely to be used since it conflicts
with the first Ethernet controller.

The Radxa Cubie A5E exposes SPDIF TX through the PI pin group on the
40-pin GPIO header.

The Orange Pi 4A exposes SPDIF TX through both the PB and PI pin
groups on the 40-pin GPIO header. The PB pin alternatively would be
used for I2S0 though.

Add pinmux settings for both options so potential users can directly
reference either one.

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20251027125655.793277-10-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>

+14
+14
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
··· 200 200 bias-disable; 201 201 }; 202 202 203 + /omit-if-no-ref/ 204 + spdif_out_pb_pin: spdif-pb-pin { 205 + pins = "PB8"; 206 + function = "spdif"; 207 + allwinner,pinmux = <2>; 208 + }; 209 + 210 + /omit-if-no-ref/ 211 + spdif_out_pi_pin: spdif-pi-pin { 212 + pins = "PI10"; 213 + function = "spdif"; 214 + allwinner,pinmux = <2>; 215 + }; 216 + 203 217 uart0_pb_pins: uart0-pb-pins { 204 218 pins = "PB9", "PB10"; 205 219 allwinner,pinmux = <2>;