aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-05-21 19:23:41 -0400
committerMark Brown <broonie@linaro.org>2014-05-21 19:23:41 -0400
commit0f4019e6f4da4e0bcefd38f78d61fe5d0565b3cc (patch)
tree3c54c788587d7988d03dca33d4d5e1da09c8f42d /Documentation
parent228704bbdd5ed452f5db49eecbea9180693d1974 (diff)
parent4da533932dedff930596bc536adaba1e508f9ffa (diff)
Merge remote-tracking branch 'asoc/topic/component' into asoc-next
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/sound/st,sta350.txt107
1 files changed, 107 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/st,sta350.txt b/Documentation/devicetree/bindings/sound/st,sta350.txt
new file mode 100644
index 000000000000..950188891abd
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/st,sta350.txt
@@ -0,0 +1,107 @@
1STA350 audio CODEC
2
3The driver for this device only supports I2C.
4
5Required properties:
6
7 - compatible: "st,sta350"
8 - reg: the I2C address of the device for I2C
9 - reset-gpios: a GPIO spec for the reset pin. If specified, it will be
10 deasserted before communication to the codec starts.
11
12 - power-down-gpios: a GPIO spec for the power down pin. If specified,
13 it will be deasserted before communication to the codec
14 starts.
15
16 - vdd-dig-supply: regulator spec, providing 3.3V
17 - vdd-pll-supply: regulator spec, providing 3.3V
18 - vcc-supply: regulator spec, providing 5V - 26V
19
20Optional properties:
21
22 - st,output-conf: number, Selects the output configuration:
23 0: 2-channel (full-bridge) power, 2-channel data-out
24 1: 2 (half-bridge). 1 (full-bridge) on-board power
25 2: 2 Channel (Full-Bridge) Power, 1 Channel FFX
26 3: 1 Channel Mono-Parallel
27 If parameter is missing, mode 0 will be enabled.
28
29 - st,ch1-output-mapping: Channel 1 output mapping
30 - st,ch2-output-mapping: Channel 2 output mapping
31 - st,ch3-output-mapping: Channel 3 output mapping
32 0: Channel 1
33 1: Channel 2
34 2: Channel 3
35 If parameter is missing, channel 1 is choosen.
36
37 - st,thermal-warning-recover:
38 If present, thermal warning recovery is enabled.
39
40 - st,thermal-warning-adjustment:
41 If present, thermal warning adjustment is enabled.
42
43 - st,fault-detect-recovery:
44 If present, then fault recovery will be enabled.
45
46 - st,ffx-power-output-mode: string
47 The FFX power output mode selects how the FFX output timing is
48 configured. Must be one of these values:
49 - "drop-compensation"
50 - "tapered-compensation"
51 - "full-power-mode"
52 - "variable-drop-compensation" (default)
53
54 - st,drop-compensation-ns: number
55 Only required for "st,ffx-power-output-mode" ==
56 "variable-drop-compensation".
57 Specifies the drop compensation in nanoseconds.
58 The value must be in the range of 0..300, and only
59 multiples of 20 are allowed. Default is 140ns.
60
61 - st,overcurrent-warning-adjustment:
62 If present, overcurrent warning adjustment is enabled.
63
64 - st,max-power-use-mpcc:
65 If present, then MPCC bits are used for MPC coefficients,
66 otherwise standard MPC coefficients are used.
67
68 - st,max-power-corr:
69 If present, power bridge correction for THD reduction near maximum
70 power output is enabled.
71
72 - st,am-reduction-mode:
73 If present, FFX mode runs in AM reduction mode, otherwise normal
74 FFX mode is used.
75
76 - st,odd-pwm-speed-mode:
77 If present, PWM speed mode run on odd speed mode (341.3 kHz) on all
78 channels. If not present, normal PWM spped mode (384 kHz) will be used.
79
80 - st,distortion-compensation:
81 If present, distortion compensation variable uses DCC coefficient.
82 If not present, preset DC coefficient is used.
83
84 - st,invalid-input-detect-mute:
85 If not present, automatic invalid input detect mute is enabled.
86
87
88
89Example:
90
91codec: sta350@38 {
92 compatible = "st,sta350";
93 reg = <0x1c>;
94 reset-gpios = <&gpio1 19 0>;
95 power-down-gpios = <&gpio1 16 0>;
96 st,output-conf = <0x3>; // set output to 2-channel
97 // (full-bridge) power,
98 // 2-channel data-out
99 st,ch1-output-mapping = <0>; // set channel 1 output ch 1
100 st,ch2-output-mapping = <0>; // set channel 2 output ch 1
101 st,ch3-output-mapping = <0>; // set channel 3 output ch 1
102 st,max-power-correction; // enables power bridge
103 // correction for THD reduction
104 // near maximum power output
105 st,invalid-input-detect-mute; // mute if no valid digital
106 // audio signal is provided.
107};