arm64: dts: allwinner: h6: tanix-tx6: Add SPDIF
authorJernej Skrabec <jernej.skrabec@gmail.com>
Mon, 15 Nov 2021 20:11:12 +0000 (21:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 16 Nov 2021 15:14:30 +0000 (16:14 +0100)
Tanix TX6 board has SPDIF connector in form of 3.5 mm jack.

Add support for it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211115201112.452696-1-jernej.skrabec@gmail.com
arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts

index 8f2a80f..6c10ff7 100644 (file)
                regulator-min-microvolt = <1135000>;
                regulator-max-microvolt = <1135000>;
        };
+
+       sound-spdif {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "sun50i-h6-spdif";
+
+               simple-audio-card,cpu {
+                       sound-dai = <&spdif>;
+               };
+
+               simple-audio-card,codec {
+                       sound-dai = <&spdif_out>;
+               };
+       };
+
+       spdif_out: spdif-out {
+               #sound-dai-cells = <0>;
+               compatible = "linux,spdif-dit";
+       };
 };
 
 &cpu0 {
        status = "okay";
 };
 
+&spdif {
+       status = "okay";
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_ph_pins>;