]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: gr8: evb: Add i2s codec
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 29 Aug 2016 19:59:46 +0000 (21:59 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 22 Nov 2016 14:34:04 +0000 (15:34 +0100)
The GR8-EVB comes with a wm8978 codec connected to the i2s bus.

Add a card in order to have it working

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun5i-gr8-evb.dts

index e58c8ea3c692926dc03b03ce8df5d9ed5193def0..030605aa80656bb3fdb1ee1c4d767f92c6ecc736 100644 (file)
@@ -76,7 +76,22 @@ backlight: backlight {
                default-brightness-level = <8>;
        };
 
-       spdif {
+       sound-analog {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "gr8-evb-wm8978";
+               simple-audio-card,format = "i2s";
+               simple-audio-card,mclk-fs = <512>;
+
+               simple-audio-card,cpu {
+                       sound-dai = <&i2s0>;
+               };
+
+               simple-audio-card,codec {
+                       sound-dai = <&wm8978>;
+               };
+       };
+
+       sound-spdif {
                compatible = "simple-audio-card";
                simple-audio-card,name = "On-board SPDIF";