Received: by 10.192.165.148 with SMTP id m20csp358044imm; Wed, 2 May 2018 01:17:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrYzoh/cUGSkWXzbAZ5IPoWcmjEPjCobR7Y9qjKQ6+PRRleTOP8S+Uu3FyUMzzNXsB7M4xg X-Received: by 10.98.58.148 with SMTP id v20mr5690076pfj.90.1525249036469; Wed, 02 May 2018 01:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525249036; cv=none; d=google.com; s=arc-20160816; b=QeT7CPI8ZBX7hRg1qQp3wLjOj75USDIBYvrCn+aahw63h5kGjJo+6S84nX5WLdrHrq fVXZa2M9UDCWxdQQLXWupimMlYSn+mXTY2cwY/nsbBBk2cidxShxamw5EOsz+r97zNuO Q+pbErWUIR6AimQYgnDYfEqlLVOwVVMBmVHweBnnW/wu6hbq4kwEEhXWgl/GisXEiNv9 TYeCIvCyzvVs7IBirIvA+KLgREsb8042A0MOn+MYjxm8t4MMBmsf5NzsYxIjKZ7c9cUV U5G/w9B/nOtvTbMhHOW2ccn5Z3h3ioF65/Cn+vnW8xpK61qxi23LBuCAJm4X8vAgc5rd 2hTQ== 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=YcYJ1YGO1ae7Pc871FHTaoKvMVYTby8Y5ifSXj8Tw4g=; b=ogS3L+R/rbFQxdviK/MqZirfO+mICUh26m3cLtFGW0l4cCrYAZ6Ydi4MM+EBwfSO51 ZXmt9MRBoXUF9wzu6zbMuZe0kRqpAkcguHJdlIX7B6SePG4Pj4mcVw4dBviIQcmq6OK8 whXlRT+9qhx+eMhfscs14Dp0Yq/CVE4a/kqutY5N5KCEqzeW+6EkR5GldPMjayp7kRcg 8KLDqAZgvJg7noq8lCRVFFMd5cqH1oYn8L+GJFjrALzAnL133hGitAgj9/bJrgZCglti NabQ0si0fsC4N7lkQnX4uDltgvWKvilf10hZfmhgGUH+74FHhUq+Qb0bjv1zGgHXfMk3 mAdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hBsM/YtT; 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=QUARANTINE sp=QUARANTINE 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 w4-v6si9874742plp.130.2018.05.02.01.17.02; Wed, 02 May 2018 01:17:16 -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=hBsM/YtT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751420AbeEBIQm (ORCPT + 99 others); Wed, 2 May 2018 04:16:42 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:43732 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbeEBIQj (ORCPT ); Wed, 2 May 2018 04:16:39 -0400 Received: by mail-lf0-f68.google.com with SMTP id g12-v6so19553710lfb.10; Wed, 02 May 2018 01:16:38 -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=YcYJ1YGO1ae7Pc871FHTaoKvMVYTby8Y5ifSXj8Tw4g=; b=hBsM/YtT03xsq7xWurQ9sMeH9RnstDcKdrAKZchxoy+spjvpJavPfc796Vl9cegYW7 kDQpRyW3GDoGwgzyWfIkCl/tpejaAVx4zTqMbhqsJGCuxE8ILGgYHFYRJEY9cPa+8t/0 D1121OO/GKuXvjfNmZw2uud4H2jRK1UkuqBsmtRd8uqmXRC4Od52GxtR6FJlm4gOVGL8 XAhJ0c5TSU5+lj3TTu0bPQvf8Thiyp8WEFA2yCmvJqGQO+V3Ki8gF3lW9brjWePrAT3V Gz2gXH8pjQZ8ODJpXHidiiRI9r1uMrVgp0OM2HWKO7QLJKWJWNm9zJole/4YeTrjOL4o 6thw== 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=YcYJ1YGO1ae7Pc871FHTaoKvMVYTby8Y5ifSXj8Tw4g=; b=hnnaM2d+7gKiAldbShDofg61q/vjs5CsqW8X93TplodSPwnfO0D1NNPW2M1GdNUyjE roMmo2cYc2S3f/rh+qztW4k2wRv/4okeeWz+h4y2Z0dhKvc06i9N4pH1RoQ2ng2i6lxm f1sN41Xiyehq6Dry84ouKuiAa9TZHXzOKwS+bSRJcu9PSyHvnUsZg9CQcyjQBy+8sVit WZZ7PL8tcWR28beOSphkB5iiA8hyA04koPwL6l3wnq8Ga+g179NdIC1t3HYraodKq0Ir Du4yZpn2NL4+i2zIWi8AUhhR67GxnCDC+1n8OoJnfqUTVdauYsQGNFoLUGEAz329ZcJl dxZg== X-Gm-Message-State: ALQs6tBjZ3cgAFiweWl2Sxulh3IFhajVqO8D3g1kCQBWEZvz4ggu+S0n UuYv0bwDJAs0Q/+bXhfbEm4= X-Received: by 2002:a19:6a10:: with SMTP id u16-v6mr9854928lfu.77.1525248997414; Wed, 02 May 2018 01:16:37 -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 i6-v6sm2277772lji.49.2018.05.02.01.16.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 01:16:36 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fDmwH-0000qV-8w; Wed, 02 May 2018 10:16:37 +0200 Date: Wed, 2 May 2018 10:16:37 +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: <20180502081637.GE2285@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180424163458.11947-5-johan@kernel.org> <20180426091018.GU4615@localhost> 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 Tue, May 01, 2018 at 09:05:42AM -0500, Rob Herring wrote: > 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. Yes, but... > > 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. ...my point was that in case there's no backup battery, you don't want to enable vcc (via v_bckp) at probe (and instead have the device cold boot whenever it's used). Hence, the driver would need to check if the v_bckp-supply is identical to vcc and not enable the former at probe in that case (i.e. similar to if no v_bckp had been specified and we considered it optional). > >> > +- 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"? That's the generic function name. > Maybe just a "pin name: X" prefix so it is clear. For u-blox devices, where property-, function- and pin name coincide, I could just change this to: +- timepulse-gpios : Timepulse GPIO and then for the sirfstar binding, which will be used by devices from multiple vendors which have decided to name their pins differently, I can add a "pin name: " prefix for clarity? > > 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. I had some concerns along those lines as well, and if you agree I'll change the property name to on_off-gpios (or onoff-gpios) which matches the vendor data sheets for this pin, and which I think would be better. Thanks, Johan