Received: by 10.192.165.148 with SMTP id m20csp4974963imm; Tue, 1 May 2018 07:07:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpz72ILBWXifezQUVx0zLuBgg5vHs+6VOyhYGSBxugZRoIqjuFwqgc3r5nYaBFrc5fNErjG X-Received: by 2002:a17:902:ab93:: with SMTP id f19-v6mr15492360plr.392.1525183660914; Tue, 01 May 2018 07:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525183660; cv=none; d=google.com; s=arc-20160816; b=RQfv+jZ2HP21QRmJeP1Ii6j74yzAH7MXm+F4QJZ9rEw1vVg9A4G7Dylex5fFC6z6fN S/5IsHPTEmiVdPrOTzOnBy6d/xxEqeY7FH8dEWoW6NlRPXRPGsNgQJ8Fkl3BkB5SBqio DpwP9PGrorfy425Em8XI1M5q6rl4VtYp3fBUtvdvo7oy2I4RXfunnTC9z0br4z25HKkR dBuRaAYA73/Z+nE7rbCgNIN87l3phP7moP6ZdoCQMaYIofbujNpS6exujUCXk2fEmRJ/ lo7C+jura6kko5egsgJ9eH6Y50RDZYHUAVdG5KgsfDjNnzK+pYi52QHm3DOJ1xQYGT7y sPBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=NloWaau8IXYyP3Ttq6f3t+wH+xSxZw5ztA1bo9l0vLc=; b=zF+ssgxqfVs1fWenpF6jx17KLCIO094pfitF4kxOEqxbnjiBRAK2C2WDgFNTw+HMdq nZ/KQACVIb1AW3hiwU5X8d5h8riFrrK+ggVykoNnaeJxwoEmM16cdRr9fD7xhmX1PySj mYIM8975laL8D6voQ0vy8tL8uyKgi9hTJZepFm8OdcLLdRXRkmCI5Oa2z5SvOWHjF+Lr uwEQJOaXqEjhfqMpbau9gUz2yGXC9AfXqUH/n4EtnnlHGZD0b0HyBKbD0zidYqzCjIbv +bTuWdt4xi+3Bor3wBo16VbphHpfDQj80QB2za8q5Jl9KVA8c5Geru8qPwuyIMvHP7DQ Qvuw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b62-v6si7749726pgc.505.2018.05.01.07.07.26; Tue, 01 May 2018 07:07:40 -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; 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 S1755831AbeEAOGG (ORCPT + 99 others); Tue, 1 May 2018 10:06:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:57924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754841AbeEAOGE (ORCPT ); Tue, 1 May 2018 10:06:04 -0400 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C06823698; Tue, 1 May 2018 14:06:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C06823698 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qk0-f172.google.com with SMTP id x22so8924198qkb.12; Tue, 01 May 2018 07:06:04 -0700 (PDT) X-Gm-Message-State: ALQs6tDwGdH2EX8KTMmmWNzdsj70X4YMDI991mA4IKUpgez0d6hY3Xa6 qPl5PaI5+Uw4agt6lGYD2ueCYxHpAG+RvbO5nQ== X-Received: by 10.55.64.80 with SMTP id n77mr6077158qka.213.1525183563097; Tue, 01 May 2018 07:06:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.155.2 with HTTP; Tue, 1 May 2018 07:05:42 -0700 (PDT) In-Reply-To: <20180426091018.GU4615@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180424163458.11947-5-johan@kernel.org> <20180426091018.GU4615@localhost> From: Rob Herring Date: Tue, 1 May 2018 09:05:42 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding To: Johan Hovold Cc: Greg Kroah-Hartman , Mark Rutland , Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 4:10 AM, Johan Hovold wrote: > 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? You mean how to model a battery? It would just be a 'regulator' because the regulator binding covers any supply really. Then you just set both rails to the same supply phandle. > 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. Regulators are ref counted, so just enable it twice. Or the driver can just ignore it until it supports battery backup. > I can't seem to find any other bindings that describe battery supplies, > but I'll add it here. There must be some. But then the battery and charger bindings are not in the best shape. >> > + >> > +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. Then what is the 2nd "Timepulse"? Maybe just a "pin name: X" prefix so it is clear. > 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). Yes, I think that's good. Though with the enable-gpios I was debating the name for sirfstar a bit because it isn't the normal drive it active to enable, but rather a pulse to enable or disable. Rob