summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-08-29 21:59:46 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-11-22 15:34:04 +0100
commitb9b8daa203d85f50366b4dcfd985f51987daae57 (patch)
treee85b7bec6cd602fc5f7b4a5176930a3790476a5f /arch/arm
parentARM: dts: sun6i: sina31s: Enable internal audio codec (diff)
downloadlinux-b9b8daa203d85f50366b4dcfd985f51987daae57.tar.xz
linux-b9b8daa203d85f50366b4dcfd985f51987daae57.zip
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 <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/sun5i-gr8-evb.dts17
1 files changed, 16 insertions, 1 deletions
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";