Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beea147e authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard
Browse files

ARM: sun8i: a83t: cubietruck-plus: Enable SPDIF output



The Cubietruck Plus has an optical SPDIF out connector.
Enable SPDIF audio output for this board.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 54f3b7f0
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -82,6 +82,28 @@
			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 {