diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2014-09-17 13:14:20 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-24 09:59:03 +0100 |
commit | f9f6a592cf4f35e7b614f1fb2e8d73969ee39a6d (patch) | |
tree | 60a1b73c67ffa679a5cc1ad9e9a839fc1d6a2617 /Documentation | |
parent | 90bdbb46f41c9fa670d7b0709e0c8a92ad82bdfe (diff) | |
download | op-kernel-dev-f9f6a592cf4f35e7b614f1fb2e8d73969ee39a6d.zip op-kernel-dev-f9f6a592cf4f35e7b614f1fb2e8d73969ee39a6d.tar.gz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/sound/rt5677.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/rt5677.txt b/Documentation/devicetree/bindings/sound/rt5677.txt new file mode 100644 index 0000000..98509fb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rt5677.txt @@ -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>; +}; |