diff options
author | Bo Shen <voice.shen@atmel.com> | 2013-10-14 01:38:33 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-10-14 03:43:26 -0400 |
commit | 551a409ca6b6285367669883186f84ea3bc88ecf (patch) | |
tree | 4c41d868355e49f9e86e404adc1641bbb5a62f58 | |
parent | 476090661a03f1ee1dcab9a3b669bfeb57875d0c (diff) |
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>
-rw-r--r-- | arch/arm/boot/dts/at91sam9n12ek.dts | 25 |
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 @@ | |||
91 | <AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; | 91 | <AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
92 | }; | 92 | }; |
93 | }; | 93 | }; |
94 | |||
95 | sound { | ||
96 | pinctrl_pck0_as_audio_mck: pck0_as_audio_mck { | ||
97 | atmel,pins = | ||
98 | <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>; | ||
99 | }; | ||
100 | }; | ||
94 | }; | 101 | }; |
95 | 102 | ||
96 | spi0: spi@f0000000 { | 103 | spi0: spi@f0000000 { |
@@ -151,4 +158,22 @@ | |||
151 | gpio-key,wakeup; | 158 | gpio-key,wakeup; |
152 | }; | 159 | }; |
153 | }; | 160 | }; |
161 | |||
162 | sound { | ||
163 | compatible = "atmel,asoc-wm8904"; | ||
164 | pinctrl-names = "default"; | ||
165 | pinctrl-0 = <&pinctrl_pck0_as_audio_mck>; | ||
166 | |||
167 | atmel,model = "wm8904 @ AT91SAM9N12"; | ||
168 | atmel,audio-routing = | ||
169 | "Headphone Jack", "HPOUTL", | ||
170 | "Headphone Jack", "HPOUTR", | ||
171 | "IN2L", "Line In Jack", | ||
172 | "IN2R", "Line In Jack", | ||
173 | "Mic", "MICBIAS", | ||
174 | "IN1L", "Mic"; | ||
175 | |||
176 | atmel,ssc-controller = <&ssc0>; | ||
177 | atmel,audio-codec = <&wm8904>; | ||
178 | }; | ||
154 | }; | 179 | }; |