Commit | Line | Data |
---|---|---|
3e3b8c34 HG |
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 | |
3af9e031 | 7 | "ti,am33xx-mcasp-audio" : for AM33xx platforms (AM33xx, TI81xx) |
3e3b8c34 | 8 | |
256ba181 JS |
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). | |
62561b39 JS |
14 | - op-mode : I2S/DIT ops mode. 0 for I2S mode. 1 for DIT mode used for S/PDIF, |
15 | IEC60958-1, and AES-3 formats. | |
16 | - tdm-slots : Slots for TDM operation. Indicates number of channels transmitted | |
17 | or received over one serializer. | |
62561b39 JS |
18 | - serial-dir : A list of serializer configuration. Each entry is a number |
19 | indication for serializer pin direction. | |
20 | (0 - INACTIVE, 1 - TX, 2 - RX) | |
4023fe6f JS |
21 | - dmas: two element list of DMA controller phandles and DMA request line |
22 | ordered pairs. | |
23 | - dma-names: identifier string for each DMA request line in the dmas property. | |
24 | These strings correspond 1:1 with the ordered pairs in dmas. The dma | |
25 | identifiers must be "rx" and "tx". | |
3e3b8c34 | 26 | |
3e3b8c34 HG |
27 | Optional properties: |
28 | ||
29 | - ti,hwmods : Must be "mcasp<n>", n is controller instance starting 0 | |
30 | - tx-num-evt : FIFO levels. | |
31 | - rx-num-evt : FIFO levels. | |
32 | - sram-size-playback : size of sram to be allocated during playback | |
33 | - sram-size-capture : size of sram to be allocated during capture | |
62561b39 JS |
34 | - interrupts : Interrupt numbers for McASP, currently not used by the driver |
35 | - interrupt-names : Known interrupt names are "tx" and "rx" | |
36 | - pinctrl-0: Should specify pin control group used for this controller. | |
37 | - pinctrl-names: Should contain only one value - "default", for more details | |
38 | please refer to pinctrl-bindings.txt | |
39 | ||
3e3b8c34 HG |
40 | |
41 | Example: | |
42 | ||
43 | mcasp0: mcasp0@1d00000 { | |
44 | compatible = "ti,da830-mcasp-audio"; | |
3e3b8c34 | 45 | reg = <0x100000 0x3000>; |
256ba181 | 46 | reg-names "mpu"; |
62561b39 JS |
47 | interrupts = <82>, <83>; |
48 | interrupts-names = "tx", "rx"; | |
3e3b8c34 HG |
49 | op-mode = <0>; /* MCASP_IIS_MODE */ |
50 | tdm-slots = <2>; | |
3e3b8c34 HG |
51 | serial-dir = < |
52 | 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */ | |
53 | 0 0 0 0 | |
54 | 0 0 0 1 | |
55 | 2 0 0 0 >; | |
56 | tx-num-evt = <1>; | |
57 | rx-num-evt = <1>; | |
58 | }; |