Skip to content

Commit e58dfab

Browse files
Paul Handriganbroonie
authored andcommitted
ASoC: cs35l34: Add device tree bindings file for cs35l34
Add device tree bindings file for the cs35l34 8V boosted class D amplifier. Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1001354 commit e58dfab

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)