arm64: dts: zx296718-evb: use audio-graph-card for HDMI audio
authorShawn Guo <shawn.guo@linaro.org>
Wed, 9 Aug 2017 06:30:49 +0000 (14:30 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Aug 2017 01:51:15 +0000 (09:51 +0800)
Instead of simple-audio-card, audio-graph-card is recommended for audio
bindings.  Let's change to it, so that the HDMI/SPDIF audio card can
align with the new I2S/Codec card which will be added later.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm64/boot/dts/zte/zx296718-evb.dts

index bb900d2bbcfb5e6b9ca88187fc491142f359ed31..d34d4cae38cd42edfaf10f11f3d3331ce2f8aa10 100644 (file)
                reg = <0x40000000 0x40000000>;
        };
 
-       sound0 {
-               compatible = "simple-audio-card";
-               simple-audio-card,name = "zx_snd_spdif0";
-
-               simple-audio-card,cpu {
-                       sound-dai = <&spdif0>;
-               };
-
-               simple-audio-card,codec {
-                       sound-dai = <&hdmi>;
-               };
+       sound-spdif0 {
+               compatible = "audio-graph-card";
+               dais = <&spdif0_port>;
        };
 };
 
 
 &hdmi {
        status = "okay";
+
+       port {
+               hdmi_endpoint: endpoint {
+                       remote-endpoint = <&spdif0_endpoint>;
+               };
+       };
 };
 
 &sd1 {
 
 &spdif0 {
        status = "okay";
+
+       spdif0_port: port {
+               spdif0_endpoint: endpoint {
+                       remote-endpoint = <&hdmi_endpoint>;
+               };
+       };
 };
 
 &uart0 {