Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4902497imu; Tue, 29 Jan 2019 09:22:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7AuwWo0xIbgJnulxK0+pt3W0fTG/L7S5Jq1bvQpRcNvW9NTvsnmXcQRnX8nrH0UUvgZQX+ X-Received: by 2002:a17:902:2a66:: with SMTP id i93mr26366362plb.113.1548782540127; Tue, 29 Jan 2019 09:22:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548782540; cv=none; d=google.com; s=arc-20160816; b=Ts0M+RaP4WweckF8geuk18Q6sAOfhtWDW1485gQgUdFXi+Ev6oJveI5GqFRrajnOOk 6yy2QF+Vgub+JEJWvliSOte5qCqh7ahtSw4k/yIUN9K9/OrjPSrKPg6A/tHPMVw+7Rlu GxuLVbKBOe9p+SaVD4czWsqk2cSLiKZu4b1CF+ikaZxnU57LW4EPOyEbVcWrko6edRIh tiIGj7CQBW4I+ZHc9ihHppNx9HhvvDqmcQCK+LA4oEj+NEXG6C98sa129tVfzfU7U7RN ZERr92o2qGEuustr2XeqJY0jmS2HiyQxUy6z2nAfAX+wFiI3rjWSps7OrwnyUuD0K1Es 4Onw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=q02OT52LJozxNt+IuqQzeAMwZp8ebOhE+fFqvQxJJng=; b=GX6EVX2voc/R1JnAtYR2o0Y/k96k8xvqbu5jfoiO9l1+WbGFeoKhpXRXg4vfZUb/FL lzUGs47XAEjLAVyIvvZ3OxkHMQqYCdRzmiNU8WiMrsRnbNj9zhxNhLyfwTaJMm2ImqzR e4XYsz4J1/bgFh9u5KxZCjRHZnQFk96epdMEnB8ioyn/jB7+eC3cz0nXNhH9fnCEPwgS Yc8z3LKsxFPJ1iAv7hea6fD9iG1GhFHfuAdZYfzassn6DCOh/kN4w3PjwynErrYSihho rYdLJjZDs+pgHTjgHVwIxjtMUwntH1U7N4omsIJQS/72J+iXCC8Hx0ebu1CSTcOP+pjQ Rq9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=XKeuJj2p; 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 n20si16064088plp.294.2019.01.29.09.21.53; Tue, 29 Jan 2019 09:22:20 -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=XKeuJj2p; 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 S1728955AbfA2RVR (ORCPT + 99 others); Tue, 29 Jan 2019 12:21:17 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:37972 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728704AbfA2RVQ (ORCPT ); Tue, 29 Jan 2019 12:21:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=q02OT52LJozxNt+IuqQzeAMwZp8ebOhE+fFqvQxJJng=; b=XKeuJj2pt0XN91RukC2a9Wvojb j0e4x0WlSwU+R8PC00NF38493IH6N1S993QjnPgLBwO+5AJFBPk1t1JcVNB9NGO/AwiyCaOExbDNP Zlkb/Zc+4a4Y0PPySekqZVhdsauNyev6q9nM9CUMnR7FZ8CJ++cVXQUByxpZuysnKXmc=; Received: from p200300ccfbd4d9007ee9d3fffe1fa246.dip0.t-ipconnect.de ([2003:cc:fbd4:d900:7ee9:d3ff:fe1f:a246] helo=localhost) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1goX4N-0007VS-B7; Tue, 29 Jan 2019 18:21:07 +0100 Received: from andi by localhost with local (Exim 4.89) (envelope-from ) id 1goNzE-0003uO-Fo; Tue, 29 Jan 2019 08:39:12 +0100 From: Andreas Kemnade To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Cc: Andreas Kemnade Subject: [PATCH v2] arm: dts: gta04: add gps support Date: Tue, 29 Jan 2019 08:38:43 +0100 Message-Id: <20190129073843.14979-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 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 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 https://git.kernel.org/pub/scm/linux/kernel/git/johan/gnss gnss-next arch/arm/boot/dts/omap3-gta04.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index e53d32691308..d58c117e429f 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -312,6 +312,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 */ @@ -644,6 +650,13 @@ &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>; + }; }; &uart3 { -- 2.11.0