Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp826858imu; Fri, 25 Jan 2019 11:44:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OP2y3GIB5ygTBhlvy8ZAjI/Ix+OTVvB+gDoVo5KwmjHgJZ8UM1X94E1WYAhBizwjwUq1s X-Received: by 2002:a62:59c9:: with SMTP id k70mr12182768pfj.243.1548445480217; Fri, 25 Jan 2019 11:44:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548445480; cv=none; d=google.com; s=arc-20160816; b=q3YaNJaERs4lPMmhW9RZSt6UBd+3l/HrY7qR/9raULu4A//A/ubrKWAy10o3PWPFcg 4AAYnTZXjt95gxDTInLMKkA7SWUxpUcUgMHI1n8pF0KUUojTPwGs/cuaBLc08c8HIovf 1K2BWUnmmV20mm2BueAxwU1JeP8O/GnDa06kNJRUX27FQgAgzHJ7VAdUAyCm/Ceaanf5 ZvOBvuZKnkrCwzAwBK2UEFh553hGJzv8/xIUh9ou/w/MtrgGbhWROS16nmzDg29v1FUE c+9LzChCvdLDUhbWdCZS69gIVJC2XEMwkbsn2n8gytXLLWKmuHrmY9HIhm8xLFfVi3PG NNMg== 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=9O4uSXRhxsaAuCQYyls6kJ4Kf7OlEXEjJHiwxeI3NYU=; b=unGcgnd74zM82VfjVflfgn6GfnIuvY7ifS+hk/KqJwXlHc6pZK9QnIPpjdm5Sj3rPX rjDFcJu5Rapz+k7wtNKLBaXtPw5eudFs1esNkzQ+/6rNyIWI4CyIKzqRHDWFDaor028w 3EVlGX9hHgtbLlLRbtPhRTgwjsLrDw0/eOT2ibuG547SjjWepP5j2JW0MkCO6VcjrvuY EdaH2oHR4CzF+6zQC9vEdYgcrWHpQQeokr0M6oqS+rBzeiojO9ImqI2frOqj61I78swi H7mKBvuqHX/WO5pkF3vFB4+ISHZg9uZcFrZsiAtVL7ec4CXsBP1ddFd6Q/35KUOPJ3n4 V//Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Z7E5sMFP; 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 b2si2732620pgh.475.2019.01.25.11.44.24; Fri, 25 Jan 2019 11:44:40 -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=Z7E5sMFP; 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 S1727869AbfAYTna (ORCPT + 99 others); Fri, 25 Jan 2019 14:43:30 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:54218 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfAYTna (ORCPT ); Fri, 25 Jan 2019 14:43:30 -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=9O4uSXRhxsaAuCQYyls6kJ4Kf7OlEXEjJHiwxeI3NYU=; b=Z7E5sMFPwDGSGYZaLmXwoE566b uzywu6uqO3fZ2+1bvvNjp4/e0WMs4Mdwbl8NQMP3x56vg4o0o7/bvkwz+5dJmizgTUwamjc5glkO1 fSIjNeUHcRnn6fWkIY4jRU6cf5O73rVsU68NZstTkHwPvC+vjOUnPdOkYuZvat9IwEgA=; Received: from p200300ccfbcb43007ee9d3fffe1fa246.dip0.t-ipconnect.de ([2003:cc:fbcb:4300:7ee9:d3ff:fe1f:a246] helo=eeepc) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gn7Nn-0001K3-U7; Fri, 25 Jan 2019 20:43:20 +0100 Received: from andi by eeepc with local (Exim 4.89) (envelope-from ) id 1gn7Nm-0002us-KC; Fri, 25 Jan 2019 20:43:19 +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] arm: dts: gta04: add gps support Date: Fri, 25 Jan 2019 20:43:10 +0100 Message-Id: <20190125194310.11170-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 --- w2sg0004 bindings (together with the corresponding support is in 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>; + gps: gps { + 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