Commit eaf2dbd0 authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller Committed by Tony Lindgren

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: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 39b1c494
......@@ -50,6 +50,21 @@ aux-button {
};
};
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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment