Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp473915imm; Wed, 25 Jul 2018 00:03:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeP4C7mIErTr+I6wdrVVU7y7RXwuvXJGb4U7I2K2W5EMIz0YElTGZngDXKsJ+GXRCB+2o9V X-Received: by 2002:a63:4386:: with SMTP id q128-v6mr19367221pga.353.1532502225981; Wed, 25 Jul 2018 00:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532502225; cv=none; d=google.com; s=arc-20160816; b=rWKquXP13bkxDWfslQNav7mZkyfvQJICCKdAr+l8kNxNE+w/M/dgSVEG0toKTjh8Ny j0euApfs7YLyPHdaVS+46Uhgfz63hswH5N60FNhktgv9ApgjPcDCkNuvmkrLbLcC+o+t 9bRn06UMFf11XD4J15P4xnj625Hfnr+NVEq6lQ9ELtrki0/LjWZEX3rQLibqMaIwrMic APgFsnFjB2TPMP9+3Km6wl8LNLkWSpnxWvHHeA6ziha1EAMijYlsL42LYjt19xP2t7bb h1kcU6/cqfDUy8XPmSy65rxeauncrw+L6mOJ6uCpbn/1BpO8wRWeVkR51Safn8QHX+qm kB3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=LxHTC2xU57ftr2hlN9CJDj9QymmEWwz+gUyL2dzp3KM=; b=v/QqHGCbF9w9xPQAa4xuwP3ZtfXw+bRcEs9EWj4GfCWha/0Z4zdMem6g/DG2Q5XHeN I0OW4UeeEwfhv6//jnJMkflGTya/fedBOVSg31C47wiMYyldV7CuiI4nR/FZTXt8WFxh hD4qtPdgfyWpgvH2+eyD74puji+NLwvwcns1qAqbh9zCJ4iadB0pFSLi6CAta8iSzCi2 ZZ3ZQIBo9N95txrZ2IVZ/Wi3FVPKYLY3rWwEAHDJYBNN1ePPsmNFalgTemaj0vjqksii d6YoeU/YlbLLlhti7+1G5tc++TuulqKBUTWmcgf7rA9R1iyL/u8XR732gtZmiUKwmF/b QSPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7-v6si13292968pgf.231.2018.07.25.00.03.31; Wed, 25 Jul 2018 00:03:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728740AbeGYIJh (ORCPT + 99 others); Wed, 25 Jul 2018 04:09:37 -0400 Received: from mo4-p04-ob.smtp.rzone.de ([85.215.255.121]:22373 "EHLO mo4-p04-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728724AbeGYIJh (ORCPT ); Wed, 25 Jul 2018 04:09:37 -0400 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o12DNO4Ij0pB1ZSLA74=" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 43.13 DYNA|AUTH) with ESMTPSA id 6047f4u6P6xBd5f (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 25 Jul 2018 08:59:11 +0200 (CEST) From: "H. Nikolaus Schaller" To: Marek Belisko , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, "H. Nikolaus Schaller" Subject: [PATCH 16/32] ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event Date: Wed, 25 Jul 2018 08:58:48 +0200 Message-Id: <7273508364d7186efc617d64489f5748813de168.1532501910.git.hns@goldelico.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/boot/dts/omap3-gta04.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 5bf95e04392b..4947e635c1af 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 = ; + linux,code = ; + 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"; -- 2.12.2