blob: 46bc9829c71aabe7041bbe4af60d586aa590c1ef [file] [log] [blame]
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +05301Texas Instruments McASP controller
2
3Required properties:
4- compatible :
5 "ti,dm646x-mcasp-audio" : for DM646x platforms
6 "ti,da830-mcasp-audio" : for both DA830 & DA850 platforms
Peter Ujfalusia42efd92013-11-14 11:35:19 +02007 "ti,am33xx-mcasp-audio" : for AM33xx platforms (AM33xx, AM43xx, TI81xx)
Peter Ujfalusi453c4992013-11-14 11:35:34 +02008 "ti,dra7-mcasp-audio" : for DRA7xx platforms
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +05309
Jyri Sarha256ba182013-10-18 18:37:42 +030010- 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 Sarha62561b32013-10-18 18:37:45 +030015- 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 Sarha62561b32013-10-18 18:37:45 +030019- 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 Sarha4023fe62013-10-18 18:37:43 +030022- 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, Gururaja3e3b8c32012-08-27 18:56:42 +053027
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +053028Optional 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
Misael Lopez Cruza7a33242014-11-12 16:38:05 +020035- interrupts : Interrupt numbers for McASP
Jyri Sarha62561b32013-10-18 18:37:45 +030036- 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 Ujfalusiae726e92013-11-14 11:35:35 +020040- fck_parent : Should contain a valid clock name which will be used as parent
41 for the McASP fck
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +053042
43Example:
44
45mcasp0: mcasp0@1d00000 {
46 compatible = "ti,da830-mcasp-audio";
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +053047 reg = <0x100000 0x3000>;
Jyri Sarha256ba182013-10-18 18:37:42 +030048 reg-names "mpu";
Jyri Sarha62561b32013-10-18 18:37:45 +030049 interrupts = <82>, <83>;
Geert Uytterhoevenae107d02014-04-22 20:40:25 +020050 interrupt-names = "tx", "rx";
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +053051 op-mode = <0>; /* MCASP_IIS_MODE */
52 tdm-slots = <2>;
Hebbar, Gururaja3e3b8c32012-08-27 18:56:42 +053053 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};