Merge tag 'v4.17-rc6' into next
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / sound / sgtl5000.txt
1 * Freescale SGTL5000 Stereo Codec
2
3 Required properties:
4 - compatible : "fsl,sgtl5000".
5
6 - reg : the I2C address of the device
7
8 - #sound-dai-cells: must be equal to 0
9
10 - clocks : the clock provider of SYS_MCLK
11
12 - VDDA-supply : the regulator provider of VDDA
13
14 - VDDIO-supply: the regulator provider of VDDIO
15
16 Optional properties:
17
18 - VDDD-supply : the regulator provider of VDDD
19
20 - micbias-resistor-k-ohms : the bias resistor to be used in kOmhs
21         The resistor can take values of 2k, 4k or 8k.
22         If set to 0 it will be off.
23         If this node is not mentioned or if the value is unknown, then
24         micbias resistor is set to 4K.
25
26 - micbias-voltage-m-volts : the bias voltage to be used in mVolts
27         The voltage can take values from 1.25V to 3V by 250mV steps
28         If this node is not mentioned or the value is unknown, then
29         the value is set to 1.25V.
30
31 - lrclk-strength: the LRCLK pad strength. Possible values are:
32 0, 1, 2 and 3 as per the table below:
33
34 VDDIO           1.8V            2.5V            3.3V
35 0 =             Disable
36 1 =             1.66 mA         2.87 mA         4.02  mA
37 2 =             3.33 mA         5.74 mA         8.03  mA
38 3 =             4.99 mA         8.61 mA         12.05 mA
39
40 Example:
41
42 codec: sgtl5000@a {
43         compatible = "fsl,sgtl5000";
44         reg = <0x0a>;
45         #sound-dai-cells = <0>;
46         clocks = <&clks 150>;
47         micbias-resistor-k-ohms = <2>;
48         micbias-voltage-m-volts = <2250>;
49         VDDA-supply = <&reg_3p3v>;
50         VDDIO-supply = <&reg_3p3v>;
51 };