diff options
author | Zidan Wang <b50113@freescale.com> | 2014-11-20 06:07:48 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-21 13:19:35 -0500 |
commit | e2280c9040d8bc5039617af35ccf7b8ac4abb428 (patch) | |
tree | 6991e31dad342f53f6dc7d417991f4d7925eb194 /Documentation/devicetree/bindings/sound | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
ASoC: wm8960: Add device tree support
Document the device tree binding for the WM8960 codec, and modify the
driver to extract the platform data from device tree, if present.
Signed-off-by: Zidan Wang <b50113@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound')
-rw-r--r-- | Documentation/devicetree/bindings/sound/wm8960.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/wm8960.txt b/Documentation/devicetree/bindings/sound/wm8960.txt new file mode 100644 index 000000000000..2deb8a3da9c5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8960.txt | |||
@@ -0,0 +1,31 @@ | |||
1 | WM8960 audio CODEC | ||
2 | |||
3 | This device supports I2C only. | ||
4 | |||
5 | Required properties: | ||
6 | |||
7 | - compatible : "wlf,wm8960" | ||
8 | |||
9 | - reg : the I2C address of the device. | ||
10 | |||
11 | Optional properties: | ||
12 | - wlf,shared-lrclk: This is a boolean property. If present, the LRCM bit of | ||
13 | R24 (Additional control 2) gets set, indicating that ADCLRC and DACLRC pins | ||
14 | will be disabled only when ADC (Left and Right) and DAC (Left and Right) | ||
15 | are disabled. | ||
16 | When wm8960 works on synchronize mode and DACLRC pin is used to supply | ||
17 | frame clock, it will no frame clock for captrue unless enable DAC to enable | ||
18 | DACLRC pin. If shared-lrclk is present, no need to enable DAC for captrue. | ||
19 | |||
20 | - wlf,capless: This is a boolean property. If present, OUT3 pin will be | ||
21 | enabled and disabled together with HP_L and HP_R pins in response to jack | ||
22 | detect events. | ||
23 | |||
24 | Example: | ||
25 | |||
26 | codec: wm8960@1a { | ||
27 | compatible = "wlf,wm8960"; | ||
28 | reg = <0x1a>; | ||
29 | |||
30 | wlf,shared-lrclk; | ||
31 | }; | ||