aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSongjun Wu2015-10-08 05:13:32 -0500
committerMark Brown2015-10-22 11:48:33 -0500
commit391ac3ef50b9ec575c4d5c6f055efe5096ac1957 (patch)
treee630d57508fa7697f53b49ccf005846a3fa1b054 /Documentation/devicetree/bindings/sound
parente0a25b6d18624140905d79775f9e1b05c12502f5 (diff)
downloadti-linux-kernel-391ac3ef50b9ec575c4d5c6f055efe5096ac1957.tar.gz
ti-linux-kernel-391ac3ef50b9ec575c4d5c6f055efe5096ac1957.tar.xz
ti-linux-kernel-391ac3ef50b9ec575c4d5c6f055efe5096ac1957.zip
ASoC: atmel-classd: DT binding for Class D audio amplifier driver
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun.wu@atmel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound')
-rw-r--r--Documentation/devicetree/bindings/sound/atmel-classd.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/atmel-classd.txt b/Documentation/devicetree/bindings/sound/atmel-classd.txt
new file mode 100644
index 000000000000..0018451c4351
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/atmel-classd.txt
@@ -0,0 +1,52 @@
1* Atmel ClassD driver under ALSA SoC architecture
2
3Required properties:
4- compatible
5 Should be "atmel,sama5d2-classd".
6- reg
7 Should contain ClassD registers location and length.
8- interrupts
9 Should contain the IRQ line for the ClassD.
10- dmas
11 One DMA specifiers as described in atmel-dma.txt and dma.txt files.
12- dma-names
13 Must be "tx".
14- clock-names
15 Tuple listing input clock names.
16 Required elements: "pclk", "gclk" and "aclk".
17- clocks
18 Please refer to clock-bindings.txt.
19
20Optional properties:
21- pinctrl-names, pinctrl-0
22 Please refer to pinctrl-bindings.txt.
23- atmel,model
24 The user-visible name of this sound complex.
25 The default value is "CLASSD".
26- atmel,pwm-type
27 PWM modulation type, "single" or "diff".
28 The default value is "single".
29- atmel,non-overlap-time
30 Set non-overlapping time, the unit is nanosecond(ns).
31 There are four values,
32 <5>, <10>, <15>, <20>, the default value is <10>.
33 Non-overlapping will be disabled if not specified.
34
35Example:
36classd: classd@fc048000 {
37 compatible = "atmel,sama5d2-classd";
38 reg = <0xfc048000 0x100>;
39 interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
40 dmas = <&dma0
41 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
42 | AT91_XDMAC_DT_PERID(47))>;
43 dma-names = "tx";
44 clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>;
45 clock-names = "pclk", "gclk", "aclk";
46
47 pinctrl-names = "default";
48 pinctrl-0 = <&pinctrl_classd_default>;
49 atmel,model = "classd @ SAMA5D2-Xplained";
50 atmel,pwm-type = "diff";
51 atmel,non-overlap-time = <10>;
52};