]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock2 Square
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Thu, 8 Oct 2015 13:31:18 +0000 (15:31 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 13 Oct 2015 08:59:18 +0000 (10:59 +0200)
Enable the SPDIF optical output on Radxa Rock2 square boards

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3288-rock2-square.dts

index d5f6f2665e6c4bb3e23b69acd4fc78788d73bb49..8af35c867a8013e78b278bb6b855e2dc43d62e60 100644 (file)
                stdout-path = "serial2:115200n8";
        };
 
+       sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "SPDIF";
+               simple-audio-card,dai-link@1 {  /* S/PDIF - S/PDIF */
+                       cpu { sound-dai = <&spdif>; };
+                       codec { sound-dai = <&spdif_out>; };
+               };
+       };
+
+       spdif_out: spdif-out {
+               compatible = "linux,spdif-dit";
+               #sound-dai-cells = <0>;
+       };
+
        vcc_usb_host: vcc-host-regulator {
                compatible = "regulator-fixed";
                enable-active-high;
        };
 };
 
+&spdif {
+       status = "okay";
+};
+
 &uart2 {
        status = "okay";
 };