Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2367502imj; Mon, 11 Feb 2019 01:24:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IbtnGj9x0RJZwo2nCpf4bvrdWKHbSpeBb1QNsy2sTDVSf9GgAeTr2sjTanJeyBYaGKgPdbB X-Received: by 2002:a62:1c86:: with SMTP id c128mr36953109pfc.54.1549877087276; Mon, 11 Feb 2019 01:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549877087; cv=none; d=google.com; s=arc-20160816; b=GDZyblXrBYfm3lxnja+PCCFnWoMnmT+oFVwR5z9wsIh00KrRzN+X77xtpbr1dQjNxW NwDtR6wnv4ozJJFRvdWB3Lo5tNAvu1sYsS3EA198YnjuJcjv6K7Yo1duOPuGRn2XCqnu bS10C8WtovcceYRendyWK0bP92JY/CWNILSpGMLIu9f1ziGgxnZuuG7qO2X2u435HeIO 47QiXAoapHqkeSdIAZVRnwM2I1y6eJUqgVD9ZhlPoFsjdpnUsjXBSW/EWsD1cEnD3TZO 9VpxjbbCbA0/R2KJrqXETQ30g3FSffcNhwXGKjIbaVKGyisDqnVToRfJ9G/WMwvFrcJu 7+TQ== 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=57cf3Lc6S+hV34hW4qWkEqcWBtCzdKYSCNE88tgbwFY=; b=HaJCRj0Qcp3DPnS0mNiY4RlNxScCEV7ACTwXiKzRtFWGnQil6wqUbnAQaRE3SeltoG 0VPB6/HiTlkGq7osBHf81gWdbarN0u8/OErRJxkDERtBBzmDofXPZm8g3aILJ6KpQrKG 2VMkm+gYPhg/tf7tfJ8OPBueUk4z1SQfz4X0BIm8XJkZXxh2LwVT645uo7+/hSJJYKJB c24LbokofBAkiCZYQiX3g2nthewydFe567DDK5xjhlTm43d6md9qM6t0Pa5nnyzQIXXE JP35GZI2VKh96sMCbSjZ3K4QQCxpwNFAH9kJPGYykUiLKn3jjF9U2nNiQHQYvow2jto+ mCPg== 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 j11si2086513pgk.265.2019.02.11.01.24.31; Mon, 11 Feb 2019 01:24:47 -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 S1726796AbfBKJXB (ORCPT + 99 others); Mon, 11 Feb 2019 04:23:01 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45218 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbfBKJXB (ORCPT ); Mon, 11 Feb 2019 04:23:01 -0500 Received: by mail-lj1-f193.google.com with SMTP id s5-v6so8065693ljd.12; Mon, 11 Feb 2019 01:22:59 -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=57cf3Lc6S+hV34hW4qWkEqcWBtCzdKYSCNE88tgbwFY=; b=aGf4dqiB592acHKI4k60laEPg015DvDO8LCtydrzzk0D8XusznPOLnFyuGl/9nGvQX F9O0YHfVSVQ1Ac9iNHeZQwsNQc5yDpRU7PwjcJ7qOVSJiNNui7nVSC4xJokq+/+232ut wGOub++djSlvox+tipPWcmk30VJaV1ZwsVgFS7jDZIqf3nRvXVvsIY7ip+mpqK2DcV3n JNYT6J8JXFNiCf/9nYAL8Jq7ZayMLeBmESjvf8yZX7WS1TLTgoUwcVj5Ouujdx+G4VUW V3MRhdh01BgK7AEyDhxZNWahaXnnRnT7aANJ/Ev/UrWAJQ1SJIS4BebtfS4supS4aTO/ aq7w== X-Gm-Message-State: AHQUAubNiGP4bDLZuyLxQ4GJayJucCRTdCILdCsGiyvzXvQ8GnJn3zaY 65QFXZbUuEYte9zdmFeEc/k= X-Received: by 2002:a05:651c:c4:: with SMTP id 4mr2988166ljr.45.1549876978579; Mon, 11 Feb 2019 01:22:58 -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 a21sm1034696lfk.61.2019.02.11.01.22.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 01:22:57 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gt7nf-00058B-Ak; Mon, 11 Feb 2019 10:22:51 +0100 Date: Mon, 11 Feb 2019 10:22:51 +0100 From: Johan Hovold To: Rob Herring Cc: Loys Ollivier , devicetree@vger.kernel.org, Johan Hovold , 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 Message-ID: <20190211092251.GV4686@localhost> References: <1548693481-1162-1-git-send-email-lollivier@baylibre.com> <1548693481-1162-3-git-send-email-lollivier@baylibre.com> <20190130155016.GA26536@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190130155016.GA26536@bogus> 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 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/ > > + > > +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. I'm not sure how useful the pulsing would be for software, but someone might find a use for it in some form. 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"? Johan