aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Austin2014-08-04 15:11:17 -0500
committerMark Brown2014-08-16 17:03:22 -0500
commit9cf44690204db563ba065ed856546dc8a8b742a1 (patch)
tree174dadb2d87d63e487fe0f39053e43ffc4836dc2 /Documentation/devicetree/bindings/sound/cs35l32.txt
parenteef5bb2445ca49911c93c08ed0fb2ea7363ea945 (diff)
downloadti-linux-kernel-9cf44690204db563ba065ed856546dc8a8b742a1.tar.gz
ti-linux-kernel-9cf44690204db563ba065ed856546dc8a8b742a1.tar.xz
ti-linux-kernel-9cf44690204db563ba065ed856546dc8a8b742a1.zip
ASoC: cs35l32: Add bindings for CS35L32
The patch adds device tree bindings file for the Cirrus Logic CS35L32 Signed-off-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound/cs35l32.txt')
-rw-r--r--Documentation/devicetree/bindings/sound/cs35l32.txt62
1 files changed, 62 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/cs35l32.txt b/Documentation/devicetree/bindings/sound/cs35l32.txt
new file mode 100644
index 000000000000..1417d3f5cc22
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/cs35l32.txt
@@ -0,0 +1,62 @@
1CS35L32 audio CODEC
2
3Required properties:
4
5 - compatible : "cirrus,cs35l32"
6
7 - reg : the I2C address of the device for I2C. Address is determined by the level
8 of the AD0 pin. Level 0 is 0x40 while Level 1 is 0x41.
9
10 - VA-supply, VP-supply : power supplies for the device,
11 as covered in Documentation/devicetree/bindings/regulator/regulator.txt.
12
13Optional properties:
14
15 - reset-gpios : a GPIO spec for the reset pin. If specified, it will be
16 deasserted before communication to the codec starts.
17
18 - cirrus,boost-manager : Boost voltage control.
19 0 = Automatically managed. Boost-converter output voltage is the higher
20 of the two: Class G or adaptive LED voltage.
21 1 = Automatically managed irrespective of audio, adapting for low-power
22 dissipation when LEDs are ON, and operating in Fixed-Boost Bypass Mode
23 if LEDs are OFF (VBST = VP).
24 2 = (Default) Boost voltage fixed in Bypass Mode (VBST = VP).
25 3 = Boost voltage fixed at 5 V.
26
27 - cirrus,sdout-datacfg : Data configuration for dual CS35L32 applications only.
28 Determines the data packed in a two-CS35L32 configuration.
29 0 = Left/right channels VMON[11:0], IMON[11:0], VPMON[7:0].
30 1 = Left/right channels VMON[11:0], IMON[11:0], STATUS.
31 2 = (Default) left/right channels VMON[15:0], IMON [15:0].
32 3 = Left/right channels VPMON[7:0], STATUS.
33
34 - cirrus,sdout-share : SDOUT sharing. Determines whether one or two CS35L32
35 devices are on board sharing SDOUT.
36 0 = (Default) One IC.
37 1 = Two IC's.
38
39 - cirrus,battery-recovery : Low battery nominal recovery threshold, rising VP.
40 0 = 3.1V
41 1 = 3.2V
42 2 = 3.3V (Default)
43 3 = 3.4V
44
45 - cirrus,battery-threshold : Low battery nominal threshold, falling VP.
46 0 = 3.1V
47 1 = 3.2V
48 2 = 3.3V
49 3 = 3.4V (Default)
50 4 = 3.5V
51 5 = 3.6V
52
53Example:
54
55codec: codec@40 {
56 compatible = "cirrus,cs35l32";
57 reg = <0x40>;
58 reset-gpios = <&gpio 10 0>;
59 cirrus,boost-manager = <0x03>;
60 cirrus,sdout-datacfg = <0x02>;
61 VA-supply = <&reg_audio>;
62};