]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt
ASoC: davinci-mcasp: Add location for data port registers to DT
[karo-tx-linux.git] / Documentation / devicetree / bindings / sound / davinci-mcasp-audio.txt
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         "ti,omap2-mcasp-audio"  : for OMAP2 platforms (TI81xx, AM33xx)
8
9 - reg : Should contain reg specifiers for the entries in the reg-names property.
10 - reg-names : Should contain:
11          * "mpu" for the main registers (required). For compatibility with
12            existing software, it is recommended this is the first entry.
13          * "dat" for separate data port register access (optional).
14 - interrupts : Interrupt number for McASP
15 - op-mode : I2S/DIT ops mode.
16 - tdm-slots : Slots for TDM operation.
17 - num-serializer : Serializers used by McASP.
18 - serial-dir : A list of serializer pin mode. The list number should be equal
19                 to "num-serializer" parameter. Each entry is a number indication
20                 serializer pin direction. (0 - INACTIVE, 1 - TX, 2 - RX)
21
22 Optional properties:
23
24 - ti,hwmods : Must be "mcasp<n>", n is controller instance starting 0
25 - tx-num-evt : FIFO levels.
26 - rx-num-evt : FIFO levels.
27 - sram-size-playback : size of sram to be allocated during playback
28 - sram-size-capture  : size of sram to be allocated during capture
29
30 Example:
31
32 mcasp0: mcasp0@1d00000 {
33         compatible = "ti,da830-mcasp-audio";
34         #address-cells = <1>;
35         #size-cells = <0>;
36         reg = <0x100000 0x3000>;
37         reg-names "mpu";
38         interrupts = <82 83>;
39         op-mode = <0>;          /* MCASP_IIS_MODE */
40         tdm-slots = <2>;
41         num-serializer = <16>;
42         serial-dir = <
43                         0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */
44                         0 0 0 0
45                         0 0 0 1
46                         2 0 0 0 >;
47         tx-num-evt = <1>;
48         rx-num-evt = <1>;
49 };