aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2013-10-18 11:37:45 -0400
committerMark Brown <broonie@linaro.org>2013-10-23 07:15:03 -0400
commit62561b39ea346ec2e48e01de9fd6f38383b67bd3 (patch)
tree40f6cea4106e99e1effaf1bd17103ee7cc04a29d
parent3af9e0315699b60762157662f721f50fd1fe529b (diff)
ASoC: davinci-mcasp: Improve DT bindings document
Makes interrupts property optional as the interrupts are not currently used by the driver and adds interrupt-names property to name listed interrupts. Currently know interrupt names are "tx" and "rx". - Improve tdm-slots propery description - Improve op-mode property description - Add pinctrl-names and pinctrl-0 properties - Remove #address-cells and #size-cells as they are not needed. - Bracket named interrupts property tuples for uniformity. - Add missing "for" to serial-dir prop in DT bindings doc. Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt24
1 files changed, 15 insertions, 9 deletions
diff --git a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt
index 1945aecf0a3a..b925bf955731 100644
--- a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt
+++ b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt
@@ -11,13 +11,14 @@ Required properties:
11 * "mpu" for the main registers (required). For compatibility with 11 * "mpu" for the main registers (required). For compatibility with
12 existing software, it is recommended this is the first entry. 12 existing software, it is recommended this is the first entry.
13 * "dat" for separate data port register access (optional). 13 * "dat" for separate data port register access (optional).
14- interrupts : Interrupt number for McASP 14- op-mode : I2S/DIT ops mode. 0 for I2S mode. 1 for DIT mode used for S/PDIF,
15- op-mode : I2S/DIT ops mode. 15 IEC60958-1, and AES-3 formats.
16- tdm-slots : Slots for TDM operation. 16- tdm-slots : Slots for TDM operation. Indicates number of channels transmitted
17 or received over one serializer.
17- num-serializer : Serializers used by McASP. 18- num-serializer : Serializers used by McASP.
18- serial-dir : A list of serializer pin mode. The list number should be equal 19- serial-dir : A list of serializer configuration. Each entry is a number
19 to "num-serializer" parameter. Each entry is a number indication 20 indication for serializer pin direction.
20 serializer pin direction. (0 - INACTIVE, 1 - TX, 2 - RX) 21 (0 - INACTIVE, 1 - TX, 2 - RX)
21- dmas: two element list of DMA controller phandles and DMA request line 22- dmas: two element list of DMA controller phandles and DMA request line
22 ordered pairs. 23 ordered pairs.
23- dma-names: identifier string for each DMA request line in the dmas property. 24- dma-names: identifier string for each DMA request line in the dmas property.
@@ -31,16 +32,21 @@ Optional properties:
31- rx-num-evt : FIFO levels. 32- rx-num-evt : FIFO levels.
32- sram-size-playback : size of sram to be allocated during playback 33- sram-size-playback : size of sram to be allocated during playback
33- sram-size-capture : size of sram to be allocated during capture 34- sram-size-capture : size of sram to be allocated during capture
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
40
34 41
35Example: 42Example:
36 43
37mcasp0: mcasp0@1d00000 { 44mcasp0: mcasp0@1d00000 {
38 compatible = "ti,da830-mcasp-audio"; 45 compatible = "ti,da830-mcasp-audio";
39 #address-cells = <1>;
40 #size-cells = <0>;
41 reg = <0x100000 0x3000>; 46 reg = <0x100000 0x3000>;
42 reg-names "mpu"; 47 reg-names "mpu";
43 interrupts = <82 83>; 48 interrupts = <82>, <83>;
49 interrupts-names = "tx", "rx";
44 op-mode = <0>; /* MCASP_IIS_MODE */ 50 op-mode = <0>; /* MCASP_IIS_MODE */
45 tdm-slots = <2>; 51 tdm-slots = <2>;
46 num-serializer = <16>; 52 num-serializer = <16>;