From: Sjoerd Simons Date: Thu, 8 Oct 2015 13:31:18 +0000 (+0200) Subject: ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock2 Square X-Git-Tag: firefly_0821_release~176^2~728^2~31^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fea37552600872368a23019aef4bf8c09e0f0380;p=firefly-linux-kernel-4.4.55.git ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock2 Square Enable the SPDIF optical output on Radxa Rock2 square boards Signed-off-by: Sjoerd Simons Signed-off-by: Heiko Stuebner --- diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index d5f6f2665e6c..8af35c867a80 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts @@ -49,6 +49,20 @@ 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; @@ -136,6 +150,10 @@ }; }; +&spdif { + status = "okay"; +}; + &uart2 { status = "okay"; };