ARM: dts: sun6i: sina31s: Enable SPDIF out
authorChen-Yu Tsai <wens@csie.org>
Wed, 22 Mar 2017 05:47:10 +0000 (13:47 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 27 Mar 2017 11:40:02 +0000 (13:40 +0200)
The SinA31s has a coaxial SPDIF output. Enable it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun6i-a31s-sina31s.dts

index 7ff68bdd71098afcbc65f713b457d5e9b9744eed..b3d98222bd8134700addbef18b22b57464999e07 100644 (file)
                        gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */
                };
        };
+
+       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";
+       };
 };
 
 &codec {
        regulator-name = "vcc-gmac-phy";
 };
 
+&spdif {
+       pinctrl-names = "default";
+       pinctrl-0 = <&spdif_pins_a>;
+       status = "okay";
+};
+
 &usb_otg {
        dr_mode = "peripheral";
        status = "okay";