summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorZidan Wang <b50113@freescale.com>2014-11-20 19:07:48 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-04-14 14:01:22 -0500
commit9ee0a53f30134e6e21479189896622bd8edae02b (patch)
tree104e4eeb34ca20f382a1adb2b60e495d22bc231e /Documentation
parent4c8e9916128f05f9b4115e1ee1af4a1e7d800c4a (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> (cherry picked from commit e2280c9040d8bc5039617af35ccf7b8ac4abb428)
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/sound/wm8960.txt31
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 @@
+WM8960 audio CODEC
+
+This device supports I2C only.
+
+Required properties:
+
+ - compatible : "wlf,wm8960"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+ - wlf,shared-lrclk: This is a boolean property. If present, the LRCM bit of
+ R24 (Additional control 2) gets set, indicating that ADCLRC and DACLRC pins
+ will be disabled only when ADC (Left and Right) and DAC (Left and Right)
+ are disabled.
+ When wm8960 works on synchronize mode and DACLRC pin is used to supply
+ frame clock, it will no frame clock for captrue unless enable DAC to enable
+ DACLRC pin. If shared-lrclk is present, no need to enable DAC for captrue.
+
+ - wlf,capless: This is a boolean property. If present, OUT3 pin will be
+ enabled and disabled together with HP_L and HP_R pins in response to jack
+ detect events.
+
+Example:
+
+codec: wm8960@1a {
+ compatible = "wlf,wm8960";
+ reg = <0x1a>;
+
+ wlf,shared-lrclk;
+};