From b9b8daa203d85f50366b4dcfd985f51987daae57 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Mon, 29 Aug 2016 21:59:46 +0200 Subject: [PATCH] ARM: gr8: evb: Add i2s codec 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 --- arch/arm/boot/dts/sun5i-gr8-evb.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun5i-gr8-evb.dts b/arch/arm/boot/dts/sun5i-gr8-evb.dts index e58c8ea3c692..030605aa8065 100644 --- a/arch/arm/boot/dts/sun5i-gr8-evb.dts +++ b/arch/arm/boot/dts/sun5i-gr8-evb.dts @@ -76,7 +76,22 @@ 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";