Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7459555imu; Thu, 31 Jan 2019 10:25:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5kY1LrstiV/AmGSOxEONm5IO2f5f2+TFCMVzsbO/95LeMFIdKgrEk1ch3ptrybgVdGmHhU X-Received: by 2002:a63:295:: with SMTP id 143mr31573581pgc.362.1548959147030; Thu, 31 Jan 2019 10:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548959146; cv=none; d=google.com; s=arc-20160816; b=xPh6GxKuyGPeI6ftOt725QahMnVYMftj90avU9LmB9uR/cpE8uwHSht7VxSaioe9ik Cn4VnYWNOHabliYjWCWPeHH6oiQgqxablM9CZZUVKv/NU9qL1vJl7QD9C5wMPHjIFfHM wFHA/8olemUCVG9/HFWKceWYynF8R/9zRBlTa2kXKaHyVJOm8uKgve/yO+5aJZ2C+MsP pbcSZWWbpQ1T2Rjc8v054wB6ZjiLT1enCG586F4fcCB86ZL41Odq7WX5pTViraEpQ7mL HaUKATj8L2Wwx9EOdqE97s+zDBRNvGIzXKI1dMUPYnrP2a8qizsFiwpXwDkMQH6MUeM1 c9Qw== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=H0Tis6IjbQNc+fhhasNQsHQgzjddKfbMGzHek0faQ9U=; b=JTYk1MsCk6tyoI+ey6HpftoWr+6I9AyGd1/em+9IaLBfWa/eSpjwWTbhNgIF8uhyQh thX+LmkmDWu16UeHHnjxAg/wJl9Pctj1Nm/7rH+YGVMWikCekESP1b1F610ohDShfRR+ ArHxdzh+n5bkSyeag5QH3sM1o501eKenjIl+93yU4UpDq92t3UtnfYd0WB71pY22Aqaa RDXRYr6UQudG9XTjnF1MLNR8SsB5/mbleFB5G88MtGpXtzLLu6EGD5F5L9xeAf7cVnck tpSGeMrNwVN0B3vvUW74+k5EtFqtGy1nZXb+fsl18JVscuQN3qBUXD8gF1TXqTkBm8/w Kv2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=PKFP6OYg; 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 c3si3554570pgi.370.2019.01.31.10.25.31; Thu, 31 Jan 2019 10:25:46 -0800 (PST) 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; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=PKFP6OYg; 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 S1728076AbfAaSHH (ORCPT + 99 others); Thu, 31 Jan 2019 13:07:07 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:43826 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbfAaSG5 (ORCPT ); Thu, 31 Jan 2019 13:06:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=References:In-Reply-To:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=H0Tis6IjbQNc+fhhasNQsHQgzjddKfbMGzHek0faQ9U=; b=PKFP6OYgLX+jlR/z6zZ4EXzp7 VAEvzL+1gPSG1X5mBhvxAQk+723N8YdpnSRBb7bLO73wXqVrzzVyuk4A+lJnr9vjapEkp9g/DXJwp Elc3D4HTtekr/s0GewuRMy0xDlEOEtaxfslPw617o83plyoWmxTYIa5xFrlBYnXt0XxiM=; Received: from p5dcc395f.dip0.t-ipconnect.de ([93.204.57.95] helo=localhost) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gpGjf-0001J0-5k; Thu, 31 Jan 2019 19:06:47 +0100 Received: from andi by localhost with local (Exim 4.89) (envelope-from ) id 1gpGje-0003mc-Cm; Thu, 31 Jan 2019 19:06:46 +0100 From: Andreas Kemnade To: Johan Hovold , mark.rutland@arm.com, devicetree@vger.kernel.org, letux-kernel@openphoenux.org, tony@atomide.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, bcousson@baylibre.com, linux-omap@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH v3 2/2] arm: dts: gta04: add gps support Date: Thu, 31 Jan 2019 19:06:40 +0100 Message-Id: <20190131180640.14480-3-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190131180640.14480-1-andreas@kemnade.info> References: <20190131180640.14480-1-andreas@kemnade.info> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable which one is mounted so use the compatibility entry for w2sg0004 for all which will work for both. Signed-off-by: Andreas Kemnade --- Changes in v3: - converted to a patchset - added vcc-supply Changes in v2: - some s/gps/gnss/ - not added vcc-supply because the regulator is not modelled in dts at all w2sg0004 bindings are in next-20190129 arch/arm/boot/dts/omap3-gta04.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 02d8274a2f47..4ea0f7dc37c6 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -320,6 +320,12 @@ >; }; + gps_pins: pinmux_gps_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* gpio145 */ + >; + }; + hdq_pins: hdq_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */ @@ -652,6 +658,14 @@ &uart2 { pinctrl-names = "default"; pinctrl-0 = <&uart2_pins>; + gnss: gnss { + compatible = "wi2wi,w2sg0004"; + pinctrl-names = "default"; + pinctrl-0 = <&gps_pins>; + sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; + lna-supply = <&vsim>; + vcc-supply = <&ldo_3v3>; + }; }; &uart3 { -- 2.11.0