Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 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 |
Peter Ujfalusi | a42efd9 | 2013-11-14 11:35:19 +0200 | [diff] [blame] | 7 | "ti,am33xx-mcasp-audio" : for AM33xx platforms (AM33xx, AM43xx, TI81xx) |
Peter Ujfalusi | 453c499 | 2013-11-14 11:35:34 +0200 | [diff] [blame] | 8 | "ti,dra7-mcasp-audio" : for DRA7xx platforms |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 9 | |
Jyri Sarha | 256ba18 | 2013-10-18 18:37:42 +0300 | [diff] [blame] | 10 | - reg : Should contain reg specifiers for the entries in the reg-names property. |
| 11 | - reg-names : Should contain: |
| 12 | * "mpu" for the main registers (required). For compatibility with |
| 13 | existing software, it is recommended this is the first entry. |
| 14 | * "dat" for separate data port register access (optional). |
Jyri Sarha | 62561b3 | 2013-10-18 18:37:45 +0300 | [diff] [blame] | 15 | - op-mode : I2S/DIT ops mode. 0 for I2S mode. 1 for DIT mode used for S/PDIF, |
| 16 | IEC60958-1, and AES-3 formats. |
| 17 | - tdm-slots : Slots for TDM operation. Indicates number of channels transmitted |
| 18 | or received over one serializer. |
Jyri Sarha | 62561b3 | 2013-10-18 18:37:45 +0300 | [diff] [blame] | 19 | - serial-dir : A list of serializer configuration. Each entry is a number |
| 20 | indication for serializer pin direction. |
| 21 | (0 - INACTIVE, 1 - TX, 2 - RX) |
Jyri Sarha | 4023fe6 | 2013-10-18 18:37:43 +0300 | [diff] [blame] | 22 | - dmas: two element list of DMA controller phandles and DMA request line |
| 23 | ordered pairs. |
| 24 | - dma-names: identifier string for each DMA request line in the dmas property. |
| 25 | These strings correspond 1:1 with the ordered pairs in dmas. The dma |
| 26 | identifiers must be "rx" and "tx". |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 27 | |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 28 | Optional properties: |
| 29 | |
| 30 | - ti,hwmods : Must be "mcasp<n>", n is controller instance starting 0 |
| 31 | - tx-num-evt : FIFO levels. |
| 32 | - rx-num-evt : FIFO levels. |
| 33 | - sram-size-playback : size of sram to be allocated during playback |
| 34 | - sram-size-capture : size of sram to be allocated during capture |
Jyri Sarha | 62561b3 | 2013-10-18 18:37:45 +0300 | [diff] [blame] | 35 | - interrupts : Interrupt numbers for McASP, currently not used by the driver |
| 36 | - interrupt-names : Known interrupt names are "tx" and "rx" |
| 37 | - pinctrl-0: Should specify pin control group used for this controller. |
| 38 | - pinctrl-names: Should contain only one value - "default", for more details |
| 39 | please refer to pinctrl-bindings.txt |
Peter Ujfalusi | ae726e9 | 2013-11-14 11:35:35 +0200 | [diff] [blame] | 40 | - fck_parent : Should contain a valid clock name which will be used as parent |
| 41 | for the McASP fck |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 42 | |
| 43 | Example: |
| 44 | |
| 45 | mcasp0: mcasp0@1d00000 { |
| 46 | compatible = "ti,da830-mcasp-audio"; |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 47 | reg = <0x100000 0x3000>; |
Jyri Sarha | 256ba18 | 2013-10-18 18:37:42 +0300 | [diff] [blame] | 48 | reg-names "mpu"; |
Jyri Sarha | 62561b3 | 2013-10-18 18:37:45 +0300 | [diff] [blame] | 49 | interrupts = <82>, <83>; |
| 50 | interrupts-names = "tx", "rx"; |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 51 | op-mode = <0>; /* MCASP_IIS_MODE */ |
| 52 | tdm-slots = <2>; |
Hebbar, Gururaja | 3e3b8c3 | 2012-08-27 18:56:42 +0530 | [diff] [blame] | 53 | serial-dir = < |
| 54 | 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */ |
| 55 | 0 0 0 0 |
| 56 | 0 0 0 1 |
| 57 | 2 0 0 0 >; |
| 58 | tx-num-evt = <1>; |
| 59 | rx-num-evt = <1>; |
| 60 | }; |