aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2014-10-10 22:46:36 -0500
committerMark Brown2014-10-20 06:22:20 -0500
commit40eb90a18e93fbd4fd0e6892b31241356c3c8e43 (patch)
tree401f2d17cb15f745d8f31a7045bff61be7315f15 /Documentation/devicetree/bindings/sound/rt5677.txt
parent80fff6bf65dcae62255bdb592603dfc247c8cacf (diff)
downloadti-linux-kernel-40eb90a18e93fbd4fd0e6892b31241356c3c8e43.tar.gz
ti-linux-kernel-40eb90a18e93fbd4fd0e6892b31241356c3c8e43.tar.xz
ti-linux-kernel-40eb90a18e93fbd4fd0e6892b31241356c3c8e43.zip
ASoC: rt5677: Add option to configure gpio as floating/pullup/pulldown
gpio_config is array of 6 elements that allows to set GPIO as floating, pullup, pulldown. Sponsored: Google ChromeOS Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound/rt5677.txt')
-rw-r--r--Documentation/devicetree/bindings/sound/rt5677.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/rt5677.txt b/Documentation/devicetree/bindings/sound/rt5677.txt
index 0701b834fc73..f82f0e906cd9 100644
--- a/Documentation/devicetree/bindings/sound/rt5677.txt
+++ b/Documentation/devicetree/bindings/sound/rt5677.txt
@@ -27,6 +27,12 @@ Optional properties:
27 Boolean. Indicate MIC1/2 input and LOUT1/2/3 outputs are differential, 27 Boolean. Indicate MIC1/2 input and LOUT1/2/3 outputs are differential,
28 rather than single-ended. 28 rather than single-ended.
29 29
30- realtek,gpio-config
31 Array of six 8bit elements that configures GPIO.
32 0 - floating (reset value)
33 1 - pull down
34 2 - pull up
35
30Pins on the device (for linking into audio routes): 36Pins on the device (for linking into audio routes):
31 37
32 * IN1P 38 * IN1P
@@ -56,4 +62,5 @@ rt5677 {
56 realtek,pow-ldo2-gpio = 62 realtek,pow-ldo2-gpio =
57 <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; 63 <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
58 realtek,in1-differential = "true"; 64 realtek,in1-differential = "true";
65 realtek,gpio-config = /bits/ 8 <0 0 0 0 0 2>; /* pull up GPIO6 */
59}; 66};