aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/rt5677.txt
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2014-10-10 20:46:36 -0700
committerMark Brown <broonie@kernel.org>2014-10-20 12:22:20 +0100
commit40eb90a18e93fbd4fd0e6892b31241356c3c8e43 (patch)
tree401f2d17cb15f745d8f31a7045bff61be7315f15 /Documentation/devicetree/bindings/sound/rt5677.txt
parentASoC: rt5677: Include gpio driver header (diff)
downloadlinux-dev-40eb90a18e93fbd4fd0e6892b31241356c3c8e43.tar.xz
linux-dev-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:
Boolean. Indicate MIC1/2 input and LOUT1/2/3 outputs are differential,
rather than single-ended.
+- realtek,gpio-config
+ Array of six 8bit elements that configures GPIO.
+ 0 - floating (reset value)
+ 1 - pull down
+ 2 - pull up
+
Pins on the device (for linking into audio routes):
* IN1P
@@ -56,4 +62,5 @@ rt5677 {
realtek,pow-ldo2-gpio =
<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
realtek,in1-differential = "true";
+ realtek,gpio-config = /bits/ 8 <0 0 0 0 0 2>; /* pull up GPIO6 */
};