-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: rt5677: Add a configuration option for LDO2_POW pin
Some boards have this pin statically tied and do not require any configuration, some other boards allow to enable chip using GPIO. Add an option that tells which GPIO is used to power the audio codec. Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Anatol Pomozov
authored and
Mark Brown
committed
Sep 24, 2014
1 parent
90bdbb4
commit f9f6a59
Showing
3 changed files
with
96 additions
and
0 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,41 @@ | ||
RT5677 audio CODEC | ||
|
||
This device supports I2C only. | ||
|
||
Required properties: | ||
|
||
- compatible : "realtek,rt5677". | ||
|
||
- reg : The I2C address of the device. | ||
|
||
- interrupts : The CODEC's interrupt output. | ||
|
||
Optional properties: | ||
|
||
- realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin. | ||
|
||
Pins on the device (for linking into audio routes): | ||
|
||
* IN1P | ||
* IN1N | ||
* IN2P | ||
* IN2N | ||
* MICBIAS1 | ||
* DMIC1 | ||
* DMIC2 | ||
* DMIC3 | ||
* DMIC4 | ||
* LOUT1 | ||
* LOUT2 | ||
* LOUT3 | ||
|
||
Example: | ||
|
||
rt5677 { | ||
compatible = "realtek,rt5677"; | ||
reg = <0x2c>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>; | ||
realtek,pow-ldo2-gpio = | ||
<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; | ||
}; |
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