18c2ecf20Sopenharmony_ciCS35L34 Speaker Amplifier
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci  - compatible : "cirrus,cs35l34"
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci  - reg : the I2C address of the device for I2C.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci  - VA-supply, VP-supply : power supplies for the device,
108c2ecf20Sopenharmony_ci    as covered in
118c2ecf20Sopenharmony_ci    Documentation/devicetree/bindings/regulator/regulator.txt.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci  - cirrus,boost-vtge-millivolt : Boost Voltage Value.  Configures the boost
148c2ecf20Sopenharmony_ci    converter's output voltage in mV. The range is from VP to 8V with
158c2ecf20Sopenharmony_ci    increments of 100mV.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci  - cirrus,boost-nanohenry: Inductor value for boost converter. The value is
188c2ecf20Sopenharmony_ci    in nH and they can be values of 1000nH, 1100nH, 1200nH, 1500nH, and 2200nH.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciOptional properties:
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci  - reset-gpios: GPIO used to reset the amplifier.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci  - interrupts : IRQ line info CS35L34.
258c2ecf20Sopenharmony_ci    (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
268c2ecf20Sopenharmony_ci    for further information relating to interrupt properties)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci  - cirrus,boost-peak-milliamp : Boost converter peak current limit in mA. The
298c2ecf20Sopenharmony_ci    range starts at 1200mA and goes to a maximum of 3840mA with increments of
308c2ecf20Sopenharmony_ci    80mA. The default value is 2480mA.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci  - cirrus,i2s-sdinloc : ADSP SDIN I2S channel location. Indicates whether the
338c2ecf20Sopenharmony_ci    received mono data is in the left or right portion of the I2S frame
348c2ecf20Sopenharmony_ci    according to the AD0 pin or directly via this configuration.
358c2ecf20Sopenharmony_ci    0x0 (Default) = Selected by AD0 input (if AD0 = LOW, use left channel),
368c2ecf20Sopenharmony_ci    0x2 = Left,
378c2ecf20Sopenharmony_ci    0x1 = Selected by the inversion of the AD0 input (if AD0 = LOW, use right
388c2ecf20Sopenharmony_ci    channel),
398c2ecf20Sopenharmony_ci    0x3 = Right.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci  - cirrus,gain-zc-disable: Boolean property. If set, the gain change will take
428c2ecf20Sopenharmony_ci    effect without waiting for a zero cross.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci  - cirrus,tdm-rising-edge: Boolean property. If set, data is on the rising edge of
458c2ecf20Sopenharmony_ci    SCLK. Otherwise, data is on the falling edge of SCLK.
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciExample:
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_cics35l34: cs35l34@40 {
518c2ecf20Sopenharmony_ci	compatible = "cirrus,cs35l34";
528c2ecf20Sopenharmony_ci	reg = <0x40>;
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci	interrupt-parent = <&gpio8>;
558c2ecf20Sopenharmony_ci	interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci	reset-gpios = <&gpio 10 0>;
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	cirrus,boost-vtge-milltvolt = <8000>; /* 8V */
608c2ecf20Sopenharmony_ci	cirrus,boost-ind-nanohenry = <1000>; /* 1uH */
618c2ecf20Sopenharmony_ci	cirrus,boost-peak-milliamp = <3000>; /* 3A */
628c2ecf20Sopenharmony_ci};
63