]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: add SPDIF audio to Beelink A1
authorAlex Bee <knaerzche@gmail.com>
Thu, 28 Aug 2025 16:43:00 +0000 (16:43 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 2 Sep 2025 06:32:24 +0000 (08:32 +0200)
Add the required nodes to enable SPDIF audio output on
the Beelink A1 set-top-box.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://lore.kernel.org/r/20250828164300.3829488-1-christianshewitt@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3328-a1.dts

index f7c4578865c5531e65d52f12f65780d506c70fdc..e0f0e5791a57a44ab442cd32d9add31f1e000cd4 100644 (file)
                gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
                linux,rc-map-name = "rc-beelink-gs1";
        };
+
+       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>;
+               };
+
+               simple-audio-card,codec {
+                       sound-dai = <&spdif_dit>;
+               };
+       };
 };
 
 &analog_sound {
        status = "okay";
 };
 
+&spdif {
+       pinctrl-0 = <&spdifm0_tx>;
+       status = "okay";
+};
+
 &tsadc {
        rockchip,hw-tshut-mode = <0>;
        rockchip,hw-tshut-polarity = <0>;