]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: allwinner: a523: Add SPDIF TX pin on PB and PI pins
authorChen-Yu Tsai <wens@kernel.org>
Mon, 27 Oct 2025 12:56:50 +0000 (20:56 +0800)
committerChen-Yu Tsai <wens@kernel.org>
Tue, 28 Oct 2025 17:07:33 +0000 (01:07 +0800)
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>
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

index cebd8e16e845f49ddad85d21720a3b3958ab6324..42dab01e3f56b2e4699345a1e84eee9cac0d6a26 100644 (file)
                                bias-disable;
                        };
 
+                       /omit-if-no-ref/
+                       spdif_out_pb_pin: spdif-pb-pin {
+                               pins = "PB8";
+                               function = "spdif";
+                               allwinner,pinmux = <2>;
+                       };
+
+                       /omit-if-no-ref/
+                       spdif_out_pi_pin: spdif-pi-pin {
+                               pins = "PI10";
+                               function = "spdif";
+                               allwinner,pinmux = <2>;
+                       };
+
                        uart0_pb_pins: uart0-pb-pins {
                                pins = "PB9", "PB10";
                                allwinner,pinmux = <2>;