summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/at91sam9n12ek.dts
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-10-14 07:38:33 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-10-14 09:43:26 +0200
commit551a409ca6b6285367669883186f84ea3bc88ecf (patch)
tree4c41d868355e49f9e86e404adc1641bbb5a62f58 /arch/arm/boot/dts/at91sam9n12ek.dts
parentARM: at91: enable ssc on at91sam9n12ek board (diff)
downloadlinux-551a409ca6b6285367669883186f84ea3bc88ecf.tar.xz
linux-551a409ca6b6285367669883186f84ea3bc88ecf.zip
ARM: at91: add sound support on at91sam9n12ek board
Add sound support on at91sam9n12ek board with wm8904 as codec. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/boot/dts/at91sam9n12ek.dts')
-rw-r--r--arch/arm/boot/dts/at91sam9n12ek.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9n12ek.dts b/arch/arm/boot/dts/at91sam9n12ek.dts
index 391c5322248e..e9487f6f0166 100644
--- a/arch/arm/boot/dts/at91sam9n12ek.dts
+++ b/arch/arm/boot/dts/at91sam9n12ek.dts
@@ -91,6 +91,13 @@
<AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
};
};
+
+ sound {
+ pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
+ atmel,pins =
+ <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
+ };
+ };
};
spi0: spi@f0000000 {
@@ -151,4 +158,22 @@
gpio-key,wakeup;
};
};
+
+ sound {
+ compatible = "atmel,asoc-wm8904";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
+
+ atmel,model = "wm8904 @ AT91SAM9N12";
+ atmel,audio-routing =
+ "Headphone Jack", "HPOUTL",
+ "Headphone Jack", "HPOUTR",
+ "IN2L", "Line In Jack",
+ "IN2R", "Line In Jack",
+ "Mic", "MICBIAS",
+ "IN1L", "Mic";
+
+ atmel,ssc-controller = <&ssc0>;
+ atmel,audio-codec = <&wm8904>;
+ };
};