xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/cs35l34.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunCS35L34 Speaker Amplifier
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun  - compatible : "cirrus,cs35l34"
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun  - reg : the I2C address of the device for I2C.
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun  - VA-supply, VP-supply : power supplies for the device,
10*4882a593Smuzhiyun    as covered in
11*4882a593Smuzhiyun    Documentation/devicetree/bindings/regulator/regulator.txt.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun  - cirrus,boost-vtge-millivolt : Boost Voltage Value.  Configures the boost
14*4882a593Smuzhiyun    converter's output voltage in mV. The range is from VP to 8V with
15*4882a593Smuzhiyun    increments of 100mV.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun  - cirrus,boost-nanohenry: Inductor value for boost converter. The value is
18*4882a593Smuzhiyun    in nH and they can be values of 1000nH, 1100nH, 1200nH, 1500nH, and 2200nH.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOptional properties:
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun  - reset-gpios: GPIO used to reset the amplifier.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun  - interrupts : IRQ line info CS35L34.
25*4882a593Smuzhiyun    (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
26*4882a593Smuzhiyun    for further information relating to interrupt properties)
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  - cirrus,boost-peak-milliamp : Boost converter peak current limit in mA. The
29*4882a593Smuzhiyun    range starts at 1200mA and goes to a maximum of 3840mA with increments of
30*4882a593Smuzhiyun    80mA. The default value is 2480mA.
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun  - cirrus,i2s-sdinloc : ADSP SDIN I2S channel location. Indicates whether the
33*4882a593Smuzhiyun    received mono data is in the left or right portion of the I2S frame
34*4882a593Smuzhiyun    according to the AD0 pin or directly via this configuration.
35*4882a593Smuzhiyun    0x0 (Default) = Selected by AD0 input (if AD0 = LOW, use left channel),
36*4882a593Smuzhiyun    0x2 = Left,
37*4882a593Smuzhiyun    0x1 = Selected by the inversion of the AD0 input (if AD0 = LOW, use right
38*4882a593Smuzhiyun    channel),
39*4882a593Smuzhiyun    0x3 = Right.
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun  - cirrus,gain-zc-disable: Boolean property. If set, the gain change will take
42*4882a593Smuzhiyun    effect without waiting for a zero cross.
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun  - cirrus,tdm-rising-edge: Boolean property. If set, data is on the rising edge of
45*4882a593Smuzhiyun    SCLK. Otherwise, data is on the falling edge of SCLK.
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunExample:
49*4882a593Smuzhiyun
50*4882a593Smuzhiyuncs35l34: cs35l34@40 {
51*4882a593Smuzhiyun	compatible = "cirrus,cs35l34";
52*4882a593Smuzhiyun	reg = <0x40>;
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	interrupt-parent = <&gpio8>;
55*4882a593Smuzhiyun	interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun	reset-gpios = <&gpio 10 0>;
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun	cirrus,boost-vtge-milltvolt = <8000>; /* 8V */
60*4882a593Smuzhiyun	cirrus,boost-ind-nanohenry = <1000>; /* 1uH */
61*4882a593Smuzhiyun	cirrus,boost-peak-milliamp = <3000>; /* 3A */
62*4882a593Smuzhiyun};
63