Received: by 10.192.165.148 with SMTP id m20csp1788129imm; Thu, 26 Apr 2018 02:12:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Cr2youHUMbFBYr+JuuFR3CMcJSvScBMLK55g1C+/Mu8WvqjmIPSw90g1yDP2gDLL4CYm9 X-Received: by 10.99.166.10 with SMTP id t10mr27104750pge.357.1524733931928; Thu, 26 Apr 2018 02:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524733931; cv=none; d=google.com; s=arc-20160816; b=o8RPIIi9C9pFrvxJWXVN45fXzIhgpLMmBk/1JF1yaVp9f7npRF2NU1o1DsX2xp6g9J lFH9zKRsMuNBirMMhPMuLMnh3I8CfGsy/FhtStgSZF3CT7djJXlFB49ubzyYvVP0X+Ik gK707zgrLRmRPY3l2DguS5+YzIqB7ON55qe4ysxe2EsuAlfeM3kCbULYUQtt2U8BqiCX kdYCFJIA07x6bZGZKepIpMHmXIy+QIY+r9aNxponn968iiCoqT42ZqaIDe9GG8N63SG6 XXt0um6AnrMZLpzNCQy1WyYyOYFw2XHzUS8XVFvGAP+ZkJ7c8TkYGitRBvj0KiNNbkZR +2bQ== 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:dkim-signature:arc-authentication-results; bh=GSFheHI/pLojwuItXKndv/nWl002mvwVRiD9qe7aqJg=; b=P4FTFryejZ1d7Z8Rs0PIz8Rgvbya3CuYSGr1FEHdNyb5xLcf8b+0uqXhwJyG/wX+Fg ICY9qZjPsDsUGgJPb9JUlQqvMfu9KoDmJ12PPBvKZkxpK/fOo72BRdYrbSEdx1H5L0SK 4EWegs1S2kpWuCASIpqOkxCW0G3FhLJi4zbV8DkAw8+ffOwVWFPz7ea5uVxa2toQRvyk XIm3ze64fpKSsaMO67Z+YHFHM5NXiGWRzB/39y/54iq5BAInHZZGkG9wq5MMcoBEf7YQ v+VNCkVOrVpzz6cr8y7OuTpQlmVK0gKkSVpC1wqW+EEaSNCWPy35Ejh8G7BAEje2sUkb eaog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EkCITlOw; 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 x28si7313583pfa.37.2018.04.26.02.11.57; Thu, 26 Apr 2018 02:12:11 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=EkCITlOw; 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 S1754697AbeDZJKb (ORCPT + 99 others); Thu, 26 Apr 2018 05:10:31 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46143 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754519AbeDZJK1 (ORCPT ); Thu, 26 Apr 2018 05:10:27 -0400 Received: by mail-lf0-f66.google.com with SMTP id v85-v6so8034061lfa.13; Thu, 26 Apr 2018 02:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GSFheHI/pLojwuItXKndv/nWl002mvwVRiD9qe7aqJg=; b=EkCITlOw7vtvCA8tag76c0Xl1uZ70yI363tHEalUNAMyQbPQhjN7fVCI/t6yFqxqLf kdQuCOZcBeSf1qtnyJgt9AG6T0qSRPl6aAGaOLFVjdfdY1cnYx9l4Kpjz57R7e/PcFIk uahDQ3o2cWM00Z8fIBLRxukZOGg4Cs503dN5BjeM93HjD02IiDNt77tpz4tdrDrVEMqk ww6b57Z0no5/gKhAIgH8DYFF7UrkCyeKMx2DgFtS/HGT1JvQaMhZ3TRbyG/q3pv3DfXn aBhpxm9cLHf5qHfk0SMiOEjfBm1Ts8DGS7Yw2zrLNbbrJPbBtrdxDc8dLTnd/p6cFsc6 l2Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=GSFheHI/pLojwuItXKndv/nWl002mvwVRiD9qe7aqJg=; b=Gl3HjWlGJrk/TjpjbQnORvq6uONEEmQTCVU4UtF2shzMQdSgNMwg/G0ivJu91H8xkc FeakxRU+u/+3sd3mTyRhVc/333J1l2DJS2w20JOR98u3Mw39xaYOKvU6jI5OhF9xmzoo reelngtm5He48lDHp4wepUE8UCMy3Qkphu82U3dYrQF/0MeuFF5yo1M/2AZfLSRop08G 8DoJQLSmKOA3xioKT6Dh0nEKsKo8zStqVk8VqXeKNTN2HPaZvY4e9bLZYDlxk42uYW2d h5YGJQrDhtaH8qNE4qu2prmqIo3ASPqREpV4cs/bHFppLOBEQATOGgNQYpU0VYA+5aXW N+sA== X-Gm-Message-State: ALQs6tBJ3HDuNDzwN6K3wLDWkyCwgjUHtxnm3sm06Q6i9PJfSvkNkLFo NWztxuAo4k+yRvPni2P4XGc= X-Received: by 2002:a19:f014:: with SMTP id p20-v6mr3636701lfc.54.1524733825891; Thu, 26 Apr 2018 02:10:25 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id u2sm1189666lji.4.2018.04.26.02.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 02:10:24 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fBcuw-0007jI-D3; Thu, 26 Apr 2018 11:10:18 +0200 Date: Thu, 26 Apr 2018 11:10:18 +0200 From: Johan Hovold To: Rob Herring Cc: Johan Hovold , Greg Kroah-Hartman , Mark Rutland , Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Subject: Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding Message-ID: <20180426091018.GU4615@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180424163458.11947-5-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 01:16:58PM -0500, Rob Herring wrote: > On Tue, Apr 24, 2018 at 11:34 AM, Johan Hovold wrote: > > Add binding for u-blox GNSS receivers. > > > > Note that the u-blox product names encodes form factor (e.g. "neo"), > > chipset (e.g. "8") and variant (e.g. "q"), but that only formfactor and > > chipset is used for the compatible strings (for now). > > > > Signed-off-by: Johan Hovold > > --- > > .../devicetree/bindings/gnss/u-blox.txt | 31 +++++++++++++++++++ > > .../devicetree/bindings/vendor-prefixes.txt | 1 + > > 2 files changed, 32 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txt > > > > diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt b/Documentation/devicetree/bindings/gnss/u-blox.txt > > new file mode 100644 > > index 000000000000..bb54b83a177f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/gnss/u-blox.txt > > @@ -0,0 +1,31 @@ > > +u-blox GNSS Receiver DT binding > > + > > +The u-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. > > + > > +Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic > > +properties. > > + > > +Required Properties: > > + > > +- compatible : Must be one of > > + > > + "u-blox,neo-8" > > + "u-blox,neo-m8" > > + > > +- vcc-supply : Main voltage regulator (VCC) > > What about V_BCKP? That's the backup supply for for the RTC and batter-backed RAM. In configurations where a battery is not used it should be connected to VCC. How would you model that? I can enable a vbckp regulator at probe, but what if someone then accurately describes the corresponding pin as being connected to VCC? I guess we can check if the regulators are identical, and then just have the driver ignore V_BKUP. Knowing whether there is a (hopefully charged) battery connected could be useful. I can't seem to find any other bindings that describe battery supplies, but I'll add it here. > > + > > +Optional Properties: > > reg is required if using I2C, SPI, or USB. I'll add that (even if there is no driver support for these yet). > Datasheet also shows an interrupt pin. Not used currently, but I'll add it to the binding as well. > > + > > +- timepulse-gpios : Timepulse (e.g. 1PPS) GPIO (TIMEPULSE) > > Why the 3rd "TIMEPULSE"? That's the pin name, which in this case is identical to the property name, so I'll drop it here. Take a look at the sirf binding; vendors use different names for their timepulse pins and in that case I added the actual pin names (1PPS, TM) in parenthesis after the description. Note that I mentioned "timepulse-gpios" in the generic binding with the intent of trying to enforce a generic name for pins with such a function (similarly for "enable-gpios", which I guess is already established). Thanks, Johan