arm64: dts: rockchip: Enable SPDIF audio on Rock 5 ITX

The Rock5 ITX has an S/PDIF (TOSLINK) socket in its I/O-shield, whose
TX signal is wired to GPIO4 C1. Activate SPDIF TX unit 1 and select
the proper pinmux (M2).

Signed-off-by: Torsten Duwe <duwe@lst.de>
Link: https://patch.msgid.link/20251124183056.B853068C4E@verein.lst.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
Torsten Duwe 2025-11-24 19:30:56 +01:00 committed by Heiko Stuebner
parent 47b5d3697f
commit 2cc30da80a

View File

@ -147,6 +147,24 @@ sdio_pwrseq: sdio-pwrseq {
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
};
spdif_dit: spdif-dit {
compatible = "linux,spdif-dit";
#sound-dai-cells = <0>;
};
spdif_sound: spdif-sound {
compatible = "simple-audio-card";
simple-audio-card,name = "SPDIF";
simple-audio-card,cpu {
sound-dai = <&spdif_tx1>;
};
simple-audio-card,codec {
sound-dai = <&spdif_dit>;
};
};
typec_vin: regulator-typec-vin {
compatible = "regulator-fixed";
enable-active-high;
@ -854,6 +872,11 @@ spi_flash: flash@0 {
};
};
&spdif_tx1 {
pinctrl-0 = <&spdif1m2_tx>;
status = "okay";
};
&spi2 {
status = "okay";
assigned-clocks = <&cru CLK_SPI2>;