Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp222333ima; Fri, 1 Feb 2019 02:15:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Jv54BwiX5/ufz5JlGVSaM+L0qMFle3yfdBzR7Rz1xpwraAx/sUwox6eVUCvwWoFgW0w+y X-Received: by 2002:a17:902:f20b:: with SMTP id gn11mr37195633plb.274.1549016138221; Fri, 01 Feb 2019 02:15:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549016138; cv=none; d=google.com; s=arc-20160816; b=Ztr+4VrNW2wuhxTAjmBwljq5iEmrZsihuitEYSmBlZVsTofdxMbf7zg/LUIJg7PkyO fSscH6NhjqfUq0+YfZ4nP6bPj/40aYz7QugLZsyLvuu+a5xYwdWlX2UxAQyhpPpAB5kc Gy1vA4Xt+MsHbh1FzHtsi5Tc51vyMQaIoD0a82+YaZLlJEU/7XMiGo6GO8WcMfhWk64z SDQyYdNKtKfQxvxo8NInJEYZWrZKW2MJPWyo4cQcEYZ7e+07xDCm5Ew3+mMgD2B5LF9F IOcCqvrNZskxWlCnyP5OacYY+IZVYoTxcWFL8+CnwAj9r/aI5Rkae0Fx5p9kZIo9Iunt bEew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Z9sO8U2aDjiNWi2qzrewkcmRD8Z0BWz3kI3klO60jXc=; b=b9HywkSz03Nn9StEDV5r3eg2LZAbNlMtBkC0KONoB9zpA0rig3nwhB6DNJZYpreR2h xQV0oMyTeTpsHYfbDssB9BE3kK/I8vfnPbZfS8WKZ93+zo+X7JoUy4sVOdr5lF+J1LVi kTMjmIfJzSd2UccJpkP0k+j57bh3hD5ldP7J+tPTnKg7zDjFADpZeyh0YQqpO98ode53 WtFQOZVLy4w0YI7xv3dJdBhByf1ZXn5IU+ikjjJab6rnG2bkGLnReWjKUzL+Kc/pl3Vi 47gD1Noz1UOXMGguY7Q30TyXTQgbla/jFiIVfIA/AHayhA1g9yFTua/vX4y1sNfdD40b eOhw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si6899327pgo.23.2019.02.01.02.15.22; Fri, 01 Feb 2019 02:15:38 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728698AbfBAKEX (ORCPT + 99 others); Fri, 1 Feb 2019 05:04:23 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34866 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbfBAKEW (ORCPT ); Fri, 1 Feb 2019 05:04:22 -0500 Received: by mail-lj1-f194.google.com with SMTP id x85-v6so5309606ljb.2; Fri, 01 Feb 2019 02:04:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Z9sO8U2aDjiNWi2qzrewkcmRD8Z0BWz3kI3klO60jXc=; b=p4EkMeOYOhNulUlAledRhNkIPA4iPn1N3siNX3EFKhUE1RGWRrKeLKifiABCUfHQSP b4lHWLuN4KMSeLH5E8Gl5chX7amnFrJl6zGsetBg3NIkSnXCH1zQB+5LvCYKNiLGkuyy Mr8xXoR5Mud/n7TviGXoEIe/t/ZHDnk6q3b+813TFFJl3DWJiNS5slRZt+oUkgIw8wG7 mMOOmWcxgFakXl3WBqx5qjXzm+Y3ninfObCoh6SPzBFtDG2YDQwaP0v8BGcoiUwH0sta A+m9qCs3fM8IS5A4mgV7y+DXbofFO/qJkvYNg1Fofo9PdN0fSHNgiaCTsBNwQtSehj/Z Z6OA== X-Gm-Message-State: AJcUukegfgpfRAyFOa2I3APXTzgk0Qqg0JiSpZZ34D3oy6CibGdLGWOw s8feYKzYyK58C+hQ3G12UYA= X-Received: by 2002:a2e:9457:: with SMTP id o23-v6mr30917488ljh.7.1549015459592; Fri, 01 Feb 2019 02:04:19 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id w4sm1264372lfk.83.2019.02.01.02.04.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 02:04:18 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gpVgG-0003bk-50; Fri, 01 Feb 2019 11:04:16 +0100 Date: Fri, 1 Feb 2019 11:04:16 +0100 From: Johan Hovold To: Andreas Kemnade Cc: 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 Subject: Re: [PATCH v3 2/2] arm: dts: gta04: add gps support Message-ID: <20190201100416.GD3691@localhost> References: <20190131180640.14480-1-andreas@kemnade.info> <20190131180640.14480-3-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131180640.14480-3-andreas@kemnade.info> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 07:06:40PM +0100, Andreas Kemnade wrote: > 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 { s/gps/gnss/ would be more consistent, but whatever. > + 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>; > + }; Reviewed-by: Johan Hovold Johan