]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: sun8i: a83t: cubietruck-plus: Enable SPDIF output
authorChen-Yu Tsai <wens@csie.org>
Mon, 22 May 2017 06:25:52 +0000 (14:25 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 22 May 2017 07:26:46 +0000 (09:26 +0200)
The Cubietruck Plus has an optical SPDIF out connector.
Enable SPDIF audio output for this board.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts

index 9e10cc6f39d4eeb1abaa24a3651bd8ada7203806..cff33454fc2458bf0e1fee5110ab8dd86c88cc21 100644 (file)
                        gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
                };
        };
+
+       sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "On-board 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";
+       };
+};
+
+&spdif {
+       status = "okay";
 };
 
 &uart0 {