]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Enable SPDIF audio on Rock 5 ITX
authorTorsten Duwe <duwe@lst.de>
Mon, 24 Nov 2025 18:30:56 +0000 (19:30 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 15 Dec 2025 11:26:09 +0000 (12:26 +0100)
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>
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts

index 172aeabba72a592fd97dfade3603096e545270be..de154adb14974823306adf9b16ce72bf49f715af 100644 (file)
                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;
        };
 };
 
+&spdif_tx1 {
+       pinctrl-0 = <&spdif1m2_tx>;
+       status = "okay";
+};
+
 &spi2 {
        status = "okay";
        assigned-clocks = <&cru CLK_SPI2>;