Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2647714imj; Mon, 11 Feb 2019 06:26:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IaNsj54Ho7Mp6SBKJzojTZrtSG6sHxA3PDHRaBBx6vgISRFgI93Xs22kqcsxmFdMqYrUkcx X-Received: by 2002:a63:2bc6:: with SMTP id r189mr8445070pgr.201.1549895174869; Mon, 11 Feb 2019 06:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895174; cv=none; d=google.com; s=arc-20160816; b=B1aK7DoQlJ6R9VFIZ73/iamQAGBWAgCWBvO3wmuZ3thGei/cscolPLGQTzQmrGrxz0 AqUuEAXGAcfQBPb9yNIMb+X4zOztDE9ScpqPc9Zk4WyEoO6R+hOYC9QCFh78QghlVBiq J4RtKpL6u/8KWcd8kJDqkdVmcgHyiOLNnquV6jYlQGWoYvMUEnZX/okf2lti+kIO1HbR DlPGxZWSAb+f/xQUo3qDbV7BxPk0pYoIJSCWlA0jZv/r6nzahRluncW7Z1sljidcvrTF jVksuy1a/0XXckkC5HBfcPwVPSxpiJTCPmPcloYN1nVdurJMmoX+subIqI3TKGaRrekb Xqog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=6up0/2CWLW2mHT8pB2BYsiR1F95jgx3Z8tSp/xeu/rY=; b=nMuX8XWtHL0PuvJuKVN8BE1bNy5GVgmvB2G7Wo7LlBH7XRl0aq/d76W2WUebXhpemU IvHOSdkLt9pmuvI6pvUcxaTGkQmwTQX54mI3fYQ5GeVLgpXc987RLP7VHr/Plg6deZqt np8UDC5OvFwIKY4/Gg9XoIm/+Tsq9xr/i6F6Jgb+H81CdIhjeHPjqZ713vypky9mEIag PI5hvXV1AwtX7OGGjeQCRR+qciPYKejWSfMfaaFEyoPsG12okVI+n4EcsLRumDLJQ8TZ pjzPcxi78CFkhtq87hNI9KXLaOmRk3zv4WMuJ+9/sxVqZkmTwjwFUPk/81kcwbXIYROi S2Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QuHAGxx0; 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 e192si10089337pfc.28.2019.02.11.06.25.58; Mon, 11 Feb 2019 06:26:14 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QuHAGxx0; 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 S1727330AbfBKOGz (ORCPT + 99 others); Mon, 11 Feb 2019 09:06:55 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39337 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbfBKOGz (ORCPT ); Mon, 11 Feb 2019 09:06:55 -0500 Received: by mail-ed1-f66.google.com with SMTP id b14so8971375edt.6 for ; Mon, 11 Feb 2019 06:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=6up0/2CWLW2mHT8pB2BYsiR1F95jgx3Z8tSp/xeu/rY=; b=QuHAGxx0C8NpYb7B2IIFj8pXvOVbJUU98LmlerVAlK4SEzDyUf+EzsLKZwZDPHb0j7 u52euAa/Nl5Azxyzib9EowUim8sdwTS3dHT9Qi35e2+hujzYuCfN45HTaU5cvqCrfShP nEA1cc8F2yKoLAolMcHjSJHuuDQlP7nZDqmAFLJg3G0wX6u629jXNaL8pQiGJ93kMo9q w+BIOlj3ditkPr+cJEgFP6/+z68UfHcZGoz+hITYVwuCgblRY50qqeIgLeubmAJOZ6ku NWDZRdnLdpumiiy3/nGuZ8+jafiQf6rLvwCZCTM4V3/PWL9UF+PvS1iTvL9A7CfgEQot Y/hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=6up0/2CWLW2mHT8pB2BYsiR1F95jgx3Z8tSp/xeu/rY=; b=hOoRr8P1LN6pUl16xna13rnRBsa07UgQ/kK5kiVutdh1rhyqoQhOKD0yPxiJ/UwtzX JsNO0575iJ+68iXh3MRvQijfDnGIjPD+C6nr83CbuXfzTli5SkppxcjlmAbp8gwMf0Fv QxTKn0F/vCYKqbyu6crdK3Do5TKPF1JdjdnfZQIScjvrQx+8ahkM2+TrwOeNPpHa2ruu 7QcRTG838HNBK7m6rTorE9NhiP6BnTEXgh3xPozAQnTrnGvjYGI0CPbc5N2z3Gv4havO UTo9/kKpZ7vcVRiqV/oaeCBtUJiRwATNMa93FFnSGBmFJR0yb3pC2UvrvHXGq+u7jbz6 jSEw== X-Gm-Message-State: AHQUAub1PGSPn3zlJ9hEFB3RhF/xx3sGJjIg6RRF28GfJpigmZLXmuul PgV5QETvazUoJAxrQ1fNf3cGQg== X-Received: by 2002:aa7:d487:: with SMTP id b7mr28130054edr.256.1549894013672; Mon, 11 Feb 2019 06:06:53 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:7e84]) by smtp.gmail.com with ESMTPSA id t12sm856202ejk.37.2019.02.11.06.06.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 06:06:52 -0800 (PST) References: <1548693481-1162-1-git-send-email-lollivier@baylibre.com> <1548693481-1162-3-git-send-email-lollivier@baylibre.com> <20190130155016.GA26536@bogus> <20190211092251.GV4686@localhost> User-agent: mu4e 1.0; emacs 25.3.2 From: Loys Ollivier To: Johan Hovold Cc: Rob Herring , Loys Ollivier , devicetree@vger.kernel.org, Mark Rutland , linux-kernel@vger.kernel.org, Kevin Hilman , linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: Re: [PATCH v3 2/4] dt-bindings: gnss: add mediatek binding In-reply-to: <20190211092251.GV4686@localhost> Date: Mon, 11 Feb 2019 15:06:50 +0100 Message-ID: <86o97iv2px.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 11 Feb 2019 at 09:22, Johan Hovold wrote: > On Wed, Jan 30, 2019 at 09:50:16AM -0600, Rob Herring wrote: >> On Mon, Jan 28, 2019 at 05:37:59PM +0100, Loys Ollivier wrote: >> > Add binding for Mediatek-based GNSS receivers. >> > >> > Signed-off-by: Loys Ollivier >> > --- >> > >> > v3: >> > Removed the I2C and SPI interfaces references. >> > Removed the "mediatek,mt3339" compatible line. >> > Added the optional propertied (reset, fix) >> > Added the pin names for the optional properties. >> > >> > v2: >> > Renamed bindings from Globaltop/gtop to Mediatek/mtk. >> > Moved current-speed as an optional propertie. >> > Removed the status line in the example. >> > Added "mediatek,mt3339" compatible. >> > >> > .../devicetree/bindings/gnss/mediatek.txt | 37 ++++++++++++++++++++++ >> > 1 file changed, 37 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/gnss/mediatek.txt >> > >> > diff --git a/Documentation/devicetree/bindings/gnss/mediatek.txt b/Documentation/devicetree/bindings/gnss/mediatek.txt >> > new file mode 100644 >> > index 000000000000..00650d81c5c8 >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/gnss/mediatek.txt >> > @@ -0,0 +1,37 @@ >> > +Mediatek-based GNSS Receiver DT binding >> > + >> > +Mediatek chipsets are used in GNSS-receiver modules produced by several >> > +vendors and can use an UART interface. > > s/an/a/ > ok >> > + >> > +Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic >> > +properties. >> > + >> > +Required properties: >> > + >> > +- compatible : Must be >> > + >> > + "globaltop,pa6h" >> > + >> > +- vcc-supply : Main voltage regulator (pin name: VCC) >> > + >> > +Optional properties: >> > + >> > +- gtop,reset-gpios : GPIO used to reset the device >> > + (pin name: RESET, NRESET) >> >> reset-gpios is the standard name. >> >> > +- gtop,fix-gpios : GPIO used to determine device position fix state >> > + (pin name: FIX, 3D_FIX) > > I'm thinking we might need a standard name for fix-gpios as well. This > isn't a feature that is globaltop (or mediatek) specific, and other > manufacturers provide similar functionality through pins named UI_FIX, > or even LCKIND (lock indicator). > > The pin is typically used to drive an indicator LED AFAIU, but the > characteristics of the signal varies from device to device (fw to fw), > for example, pulse when no lock and low otherwise, or pulse when a 2d or > 3d-fix is acquired, etc. > Yes most GNSS recevivers provide a similar feature even if behavior of the line differs. > I'm not sure how useful the pulsing would be for software, but someone > might find a use for it in some form. > Well it is useful to know when you start acquiring "valid" positionning data. I'm using this as a trigger to start recording position. > Rob, is this something we want to keep in the binding, and if so, how > about using a generic name such as "gnss-fix-gpios"? > Name "gnss-fix-gpios" sounds good to me. Loys > Johan -- -L