ARM64: dts: rk3366-tb: add spdif sound
authorSugar Zhang <sugar.zhang@rock-chips.com>
Fri, 4 Mar 2016 09:44:34 +0000 (17:44 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 4 Mar 2016 10:50:33 +0000 (18:50 +0800)
Change-Id: I21e2879b94844b48282ff9aaa41c3f9d1ef89982
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3366-tb.dts

index 9ce246f5044e3c6e9be3a27d31d629eeccd2b382..0de50e8fb17fd95ae98c132f6d591f376e5cf0fe 100644 (file)
                };
        };
 
-       sound {
+       rt5640-sound {
                compatible = "simple-audio-card";
                simple-audio-card,format = "i2s";
                simple-audio-card,name = "rockchip,rt5640-codec";
                };
        };
 
+       spdif-sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "rockchip,spdif";
+               simple-audio-card,cpu {
+                       sound-dai = <&spdif>;
+               };
+               simple-audio-card,codec {
+                       sound-dai = <&spdif_out>;
+               };
+       };
+
+       spdif_out: spdif-out {
+               compatible = "linux,spdif-dit";
+               #sound-dai-cells = <0>;
+       };
+
        vcc_sys: vcc-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc_sys";
        #sound-dai-cells = <0>;
 };
 
+&spdif {
+       status = "okay";
+       #sound-dai-cells = <0>;
+};
+
 &pwm0 {
        status = "okay";
 };