aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm/boot/dts/omap3-gta04.dtsi
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2018-07-31 09:11:19 +0200
committerTony Lindgren <tony@atomide.com>2018-09-07 10:10:56 -0700
commiteaf2dbd0d2483496e7c96d8605835d1a03bd9e48 (patch)
treebcf88523bca4acc2dfbbff67b5402f722af1ca13 /arch/arm/boot/dts/omap3-gta04.dtsi
parentARM: dts: omap3-gta04: make use of input event include file and constants (diff)
downloadwireguard-linux-eaf2dbd0d2483496e7c96d8605835d1a03bd9e48.tar.xz
wireguard-linux-eaf2dbd0d2483496e7c96d8605835d1a03bd9e48.zip
ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event
GTA04 can detect presence/absence or plug-in of an external GPS antenna through a gpio. The best match for an event code is SW_LINEIN_INSERT. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/omap3-gta04.dtsi')
-rw-r--r--arch/arm/boot/dts/omap3-gta04.dtsi15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 98f31f1814d0..28e041ec4e98 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -50,6 +50,21 @@
};
};
+ antenna-detect {
+ compatible = "gpio-keys";
+
+ gps_antenna_button: gps-antenna-button {
+ label = "GPS_EXT_ANT";
+ linux,input-type = <EV_SW>;
+ linux,code = <SW_LINEIN_INSERT>;
+ gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* GPIO144 */
+ interrupt-parent = <&gpio5>;
+ interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
+ debounce-interval = <10>;
+ wakeup-source;
+ };
+ };
+
sound {
compatible = "ti,omap-twl4030";
ti,model = "gta04";