diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2013-10-20 13:04:11 -0400 |
---|---|---|
committer | Benoit Cousson <bcousson@baylibre.com> | 2013-10-20 13:16:57 -0400 |
commit | b452985bfa39be27f1eb836cd336f60324eb0be9 (patch) | |
tree | 62a40084112e6918a6e1f68b3e7edd031b54723f /arch/arm/boot/dts/am335x-evmsk.dts | |
parent | f608f8dd31d2b5dc749e91e0f33fdfe44df4347d (diff) |
ARM: dts: am335x-evmsk: Audio support
AM335x EVM-SK have only support for audio playback (stereo jack on the
board) via tlv320aic3106 codec connected to McASP1.
Enable the support for audio playback on the board:
- McASP1 configuration
- tlv320aic3106 configuration
- Machine driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-evmsk.dts')
-rw-r--r-- | arch/arm/boot/dts/am335x-evmsk.dts | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 1a7e0d925965..03febf85fd2f 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x-evmsk.dts | |||
@@ -115,6 +115,17 @@ | |||
115 | brightness-levels = <0 58 61 66 75 90 125 170 255>; | 115 | brightness-levels = <0 58 61 66 75 90 125 170 255>; |
116 | default-brightness-level = <8>; | 116 | default-brightness-level = <8>; |
117 | }; | 117 | }; |
118 | |||
119 | sound { | ||
120 | compatible = "ti,da830-evm-audio"; | ||
121 | ti,model = "AM335x-EVMSK"; | ||
122 | ti,audio-codec = <&tlv320aic3106>; | ||
123 | ti,mcasp-controller = <&mcasp1>; | ||
124 | ti,codec-clock-rate = <24576000>; | ||
125 | ti,audio-routing = | ||
126 | "Headphone Jack", "HPLOUT", | ||
127 | "Headphone Jack", "HPROUT"; | ||
128 | }; | ||
118 | }; | 129 | }; |
119 | 130 | ||
120 | &am33xx_pinmux { | 131 | &am33xx_pinmux { |
@@ -244,6 +255,15 @@ | |||
244 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) | 255 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) |
245 | >; | 256 | >; |
246 | }; | 257 | }; |
258 | |||
259 | mcasp1_pins: mcasp1_pins { | ||
260 | pinctrl-single,pins = < | ||
261 | 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */ | ||
262 | 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rxerr.mcasp1_fsx */ | ||
263 | 0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */ | ||
264 | 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */ | ||
265 | >; | ||
266 | }; | ||
247 | }; | 267 | }; |
248 | 268 | ||
249 | &uart0 { | 269 | &uart0 { |
@@ -291,6 +311,18 @@ | |||
291 | st,max-limit-y = <550>; | 311 | st,max-limit-y = <550>; |
292 | st,max-limit-z = <750>; | 312 | st,max-limit-z = <750>; |
293 | }; | 313 | }; |
314 | |||
315 | tlv320aic3106: tlv320aic3106@1b { | ||
316 | compatible = "ti,tlv320aic3106"; | ||
317 | reg = <0x1b>; | ||
318 | status = "okay"; | ||
319 | |||
320 | /* Regulators */ | ||
321 | AVDD-supply = <&vaux2_reg>; | ||
322 | IOVDD-supply = <&vaux2_reg>; | ||
323 | DRVDD-supply = <&vaux2_reg>; | ||
324 | DVDD-supply = <&vbat>; | ||
325 | }; | ||
294 | }; | 326 | }; |
295 | 327 | ||
296 | &usb { | 328 | &usb { |
@@ -437,3 +469,19 @@ | |||
437 | &gpio0 { | 469 | &gpio0 { |
438 | ti,no-reset-on-init; | 470 | ti,no-reset-on-init; |
439 | }; | 471 | }; |
472 | |||
473 | &mcasp1 { | ||
474 | pinctrl-names = "default"; | ||
475 | pinctrl-0 = <&mcasp1_pins>; | ||
476 | |||
477 | status = "okay"; | ||
478 | |||
479 | op-mode = <0>; /* MCASP_IIS_MODE */ | ||
480 | tdm-slots = <2>; | ||
481 | /* 4 serializers */ | ||
482 | serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ | ||
483 | 0 0 1 2 | ||
484 | >; | ||
485 | tx-num-evt = <1>; | ||
486 | rx-num-evt = <1>; | ||
487 | }; | ||