forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branches 'asoc/topic/compress', 'asoc/topic/con…
…st' and 'asoc/topic/cs35l34' into asoc-next
- Loading branch information
Showing
26 changed files
with
1,777 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
CS35L34 Speaker Amplifier | ||
|
||
Required properties: | ||
|
||
- compatible : "cirrus,cs35l34" | ||
|
||
- reg : the I2C address of the device for I2C. | ||
|
||
- VA-supply, VP-supply : power supplies for the device, | ||
as covered in | ||
Documentation/devicetree/bindings/regulator/regulator.txt. | ||
|
||
- cirrus,boost-vtge-millivolt : Boost Voltage Value. Configures the boost | ||
converter's output voltage in mV. The range is from VP to 8V with | ||
increments of 100mV. | ||
|
||
- cirrus,boost-nanohenry: Inductor value for boost converter. The value is | ||
in nH and they can be values of 1000nH, 1100nH, 1200nH, 1500nH, and 2200nH. | ||
|
||
Optional properties: | ||
|
||
- reset-gpios: GPIO used to reset the amplifier. | ||
|
||
- interrupt-parent : Specifies the phandle of the interrupt controller to | ||
which the IRQs from CS35L34 are delivered to. | ||
- interrupts : IRQ line info CS35L34. | ||
(See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
for further information relating to interrupt properties) | ||
|
||
- cirrus,boost-peak-milliamp : Boost converter peak current limit in mA. The | ||
range starts at 1200mA and goes to a maximum of 3840mA with increments of | ||
80mA. The default value is 2480mA. | ||
|
||
- cirrus,i2s-sdinloc : ADSP SDIN I2S channel location. Indicates whether the | ||
received mono data is in the left or right portion of the I2S frame | ||
according to the AD0 pin or directly via this configuration. | ||
0x0 (Default) = Selected by AD0 input (if AD0 = LOW, use left channel), | ||
0x2 = Left, | ||
0x1 = Selected by the inversion of the AD0 input (if AD0 = LOW, use right | ||
channel), | ||
0x3 = Right. | ||
|
||
- cirrus,gain-zc-disable: Boolean property. If set, the gain change will take | ||
effect without waiting for a zero cross. | ||
|
||
- cirrus,tdm-rising-edge: Boolean property. If set, data is on the rising edge of | ||
SCLK. Otherwise, data is on the falling edge of SCLK. | ||
|
||
|
||
Example: | ||
|
||
cs35l34: cs35l34@40 { | ||
compatible = "cirrus,cs35l34"; | ||
reg = <0x40>; | ||
|
||
interrupt-parent = <&gpio8>; | ||
interrupts = <3 IRQ_TYPE_LEVEL_LOW>; | ||
|
||
reset-gpios = <&gpio 10 0>; | ||
|
||
cirrus,boost-vtge-milltvolt = <8000>; /* 8V */ | ||
cirrus,boost-ind-nanohenry = <1000>; /* 1uH */ | ||
cirrus,boost-peak-milliamp = <3000>; /* 3A */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* linux/sound/cs35l34.h -- Platform data for CS35l34 | ||
* | ||
* Copyright (c) 2016 Cirrus Logic Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __CS35L34_H | ||
#define __CS35L34_H | ||
|
||
struct cs35l34_platform_data { | ||
/* Set AIF to half drive strength */ | ||
bool aif_half_drv; | ||
/* Digital Soft Ramp Disable */ | ||
bool digsft_disable; | ||
/* Amplifier Invert */ | ||
bool amp_inv; | ||
/* Peak current (mA) */ | ||
unsigned int boost_peak; | ||
/* Boost inductor value (nH) */ | ||
unsigned int boost_ind; | ||
/* Boost Controller Voltage Setting (mV) */ | ||
unsigned int boost_vtge; | ||
/* Gain Change Zero Cross */ | ||
bool gain_zc_disable; | ||
/* SDIN Left/Right Selection */ | ||
unsigned int i2s_sdinloc; | ||
/* TDM Rising Edge */ | ||
bool tdm_rising_edge; | ||
}; | ||
|
||
#endif /* __CS35L34_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.