diff options
| author | Hebbar, Gururaja <gururaja.hebbar@ti.com> | 2012-08-27 09:26:42 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-27 14:12:09 -0400 |
| commit | 3e3b8c3415b15adb5a7ffcbfbeb360e7c9f5f4f7 (patch) | |
| tree | 92c7bd6e3fe950d0aa521545d884bf19a55b663c /Documentation | |
| parent | 896f66b7de293644e65cf62600e4933af954dcf2 (diff) | |
ASoC: Davinci: McASP: add device tree support for McASP
Add device tree probe for McASP driver.
Note:
DMA parameters are not populated from DT and will be done later.
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt new file mode 100644 index 000000000000..e6148eca2942 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | Texas Instruments McASP controller | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible : | ||
| 5 | "ti,dm646x-mcasp-audio" : for DM646x platforms | ||
| 6 | "ti,da830-mcasp-audio" : for both DA830 & DA850 platforms | ||
| 7 | |||
| 8 | - reg : Should contain McASP registers offset and length | ||
| 9 | - interrupts : Interrupt number for McASP | ||
| 10 | - op-mode : I2S/DIT ops mode. | ||
| 11 | - tdm-slots : Slots for TDM operation. | ||
| 12 | - num-serializer : Serializers used by McASP. | ||
| 13 | - serial-dir : A list of serializer pin mode. The list number should be equal | ||
| 14 | to "num-serializer" parameter. Each entry is a number indication | ||
| 15 | serializer pin direction. (0 - INACTIVE, 1 - TX, 2 - RX) | ||
| 16 | |||
| 17 | |||
| 18 | Optional properties: | ||
| 19 | |||
| 20 | - ti,hwmods : Must be "mcasp<n>", n is controller instance starting 0 | ||
| 21 | - tx-num-evt : FIFO levels. | ||
| 22 | - rx-num-evt : FIFO levels. | ||
| 23 | - sram-size-playback : size of sram to be allocated during playback | ||
| 24 | - sram-size-capture : size of sram to be allocated during capture | ||
| 25 | |||
| 26 | Example: | ||
| 27 | |||
| 28 | mcasp0: mcasp0@1d00000 { | ||
| 29 | compatible = "ti,da830-mcasp-audio"; | ||
| 30 | #address-cells = <1>; | ||
| 31 | #size-cells = <0>; | ||
| 32 | reg = <0x100000 0x3000>; | ||
| 33 | interrupts = <82 83>; | ||
| 34 | op-mode = <0>; /* MCASP_IIS_MODE */ | ||
| 35 | tdm-slots = <2>; | ||
| 36 | num-serializer = <16>; | ||
| 37 | serial-dir = < | ||
| 38 | 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */ | ||
| 39 | 0 0 0 0 | ||
| 40 | 0 0 0 1 | ||
| 41 | 2 0 0 0 >; | ||
| 42 | tx-num-evt = <1>; | ||
| 43 | rx-num-evt = <1>; | ||
| 44 | }; | ||
