aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/rt5677.txt
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2014-10-16 11:24:26 -0700
committerMark Brown <broonie@kernel.org>2014-10-22 11:43:14 +0100
commit5e3363ad1b7b2e1f197a3f56b01e21cb155ad454 (patch)
treed48dcf9a18002a24588c4f855388d2b7fbbf5452 /Documentation/devicetree/bindings/sound/rt5677.txt
parentASoC: rt5677: add build dependency to spi (diff)
downloadlinux-dev-5e3363ad1b7b2e1f197a3f56b01e21cb155ad454.tar.xz
linux-dev-5e3363ad1b7b2e1f197a3f56b01e21cb155ad454.zip
ASoC: rt5677: add GPIO IRQ support
This allows to enable Mic Jack detection feature Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Modified-by: Anatol Pomozov <anatol.pomozov@gmail.com> 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.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/rt5677.txt b/Documentation/devicetree/bindings/sound/rt5677.txt
index f82f0e906cd9..740ff771aa8b 100644
--- a/Documentation/devicetree/bindings/sound/rt5677.txt
+++ b/Documentation/devicetree/bindings/sound/rt5677.txt
@@ -33,6 +33,15 @@ Optional properties:
1 - pull down
2 - pull up
+- realtek,jd1-gpio
+ Configures GPIO Mic Jack detection 1.
+ Select 0 ~ 3 as OFF, GPIO1, GPIO2 and GPIO3 respectively.
+
+- realtek,jd2-gpio
+- realtek,jd3-gpio
+ Configures GPIO Mic Jack detection 2 and 3.
+ Select 0 ~ 3 as OFF, GPIO4, GPIO5 and GPIO6 respectively.
+
Pins on the device (for linking into audio routes):
* IN1P
@@ -63,4 +72,5 @@ rt5677 {
<&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 */
+ realtek,jd2-gpio = <3>; /* Enables Jack detection for GPIO6 */
};