diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2014-10-16 11:24:26 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-22 11:43:14 +0100 |
commit | 5e3363ad1b7b2e1f197a3f56b01e21cb155ad454 (patch) | |
tree | d48dcf9a18002a24588c4f855388d2b7fbbf5452 /Documentation | |
parent | ac884fc47b7750b1e7eaf04f0236610c84ceee54 (diff) | |
download | op-kernel-dev-5e3363ad1b7b2e1f197a3f56b01e21cb155ad454.zip op-kernel-dev-5e3363ad1b7b2e1f197a3f56b01e21cb155ad454.tar.gz |
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')
-rw-r--r-- | Documentation/devicetree/bindings/sound/rt5677.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/rt5677.txt b/Documentation/devicetree/bindings/sound/rt5677.txt index f82f0e9..740ff77 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 */ }; |