Received: by 10.192.165.148 with SMTP id m20csp2846989imm; Mon, 7 May 2018 02:08:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoSo8t+ueaSIq8YVK0cHmhMAauaDA5xzFinghJeHWFoDxy1Lx+eIv46NV94Ret0R/inmO/f X-Received: by 10.167.133.15 with SMTP id v15mr22182532pfn.144.1525684124538; Mon, 07 May 2018 02:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525684124; cv=none; d=google.com; s=arc-20160816; b=iF+nXOoyi6YufR8ZpB0Frao0fPEsJ778hzfJ+TlhDTnUbBHqFUi+eNtui0UV3UN9lJ UvhXmA2c3PtsHY8iigkXRQuwY7U9gQ5pigESNXKaV+5aQK5gzx33JFY0GHfLm3kr0f3J Su28h425CO3wMrc8X4Hstm5UXVW9of/lDK3Li3D9FLriKaPE7T87cyEEkHpblIIFG355 XPZJ3QudC+zop5k9zacuQiTy+cBQ4Sw6NZA21CIqd8AZbhtw/M3nbsSAIhpMZfln/LB/ l5fOPbeBFIcFIVCBg6tgiCdxDjG81cYwghMpo4z8Oc6/9155cJfKukPHYe6GCSYF476s 1UwA== 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=IPce/gs12OpBxT8yk+7c3ZU1c7Xi0hLOJJNt6SEOlOk=; b=brlAt5P2L81BWa/JQJd+5cS7V9ihktbmObI6RmjBH8QP/z7ETeiFM1W+cGvxo5Rk4f ZX4dNn+I6bbVNB21ZfR6HwVL7R9lS9UrOM5RUqjFb1PCj7mDgSjr+XCjkHN0Rwa6jrIU BhiYeWH7Zf2KGWasPJXK2bk33X47tP6Apt1mEzMjAETejQZQd47UVk/Vvw0t53lG9QJS FB+RUfo5fdhxsyCl0tLDjoqfDud0TVJAuOcEdK6VEzFJpRR3IGFxh3sTkIJVE5O3BgYM 8ESM/hbDhh9JM0F3J8XzwiOt6oYJloyBWNFTmETSNkGuNj1IIdrNJZbLlhX8ojFsoako MsAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JinwYXWW; 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 j33-v6si11773912pld.151.2018.05.07.02.08.29; Mon, 07 May 2018 02:08:44 -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=JinwYXWW; 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 S1752144AbeEGJGG (ORCPT + 99 others); Mon, 7 May 2018 05:06:06 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:44131 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751940AbeEGJGE (ORCPT ); Mon, 7 May 2018 05:06:04 -0400 Received: by mail-lf0-f43.google.com with SMTP id h197-v6so39435439lfg.11; Mon, 07 May 2018 02:06:03 -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=IPce/gs12OpBxT8yk+7c3ZU1c7Xi0hLOJJNt6SEOlOk=; b=JinwYXWWkZsxORkT4LvFIQM8WJhNeZMva3n+mQaBvP4mAX54vAH8RCI0faVVgYNB1L 7Ptahg0ZaRRxtPwDVcNAy/NROqwPy0KafVgTkwlsiMLRSyg9DrtQv+c8EBBV3C80iPUq Oe+rCNgeL3/5CK+BKq54c8H1DmBT20fvPRJU+Vyb9G8LMfiQqJ3lm68aULNjK664+BBQ RmQEGXgg3rvOq5/uOVl3CG+KHCr5rZGVBuXdxODU51HVawAOVjfAkc33ldjDf00sxrtC yrH/WoUswDsy6g5mQ3zNyaJcM5OunuOg4Y5CUVq6hqR2J5KqD305E1/diGE42snEtG/f Nptw== 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=IPce/gs12OpBxT8yk+7c3ZU1c7Xi0hLOJJNt6SEOlOk=; b=uJBXEgbtxbhX3l3GBrb7EQEtBIOBTOZC+2mGXmkM1Ip1dnu07wcD+fDT2EcekWXAia dlp1gD0QgvBkYX4EWvGHGqQrsG5iH/37BigJFfOOMP0W7LhdjK/20HfJNI0qHn7LGK4Z rSGFbMTCldWuudaRiSSNPoL9aHEMSEr1u2KV+tcXthuP5MXmcjrj8buUxd8O9/tVx5tT ITGx6/icQBTiiTHcAT8oU3RzQPlSUkTMS44vZUaId88YZPFVTBpHbUvDJ9N41uSu5GHj i+NZjBtpFLTSBN6IZlDiowEdmC8UuV+q+ABvC/gMkyieQm6zYRJBSq5Ga5Jjk2VWJxUv RiSA== X-Gm-Message-State: ALKqPwdAkA6ny769rrlwhzG9UzQaMNfOcEx1lT+IRT2VVsYG/85wk0WQ b4RvBcStjXaW4TRQ0PgPqAA= X-Received: by 2002:a19:c48f:: with SMTP id u137-v6mr2699025lff.2.1525683962443; Mon, 07 May 2018 02:06:02 -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 g17-v6sm3479866lfe.92.2018.05.07.02.06.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 02:06:01 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fFc5o-0006Bh-Lv; Mon, 07 May 2018 11:06:00 +0200 Date: Mon, 7 May 2018 11:06:00 +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: <20180507090600.GP2285@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180424163458.11947-5-johan@kernel.org> <20180426091018.GU4615@localhost> <20180502081637.GE2285@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 Wed, May 02, 2018 at 08:16:11AM -0500, Rob Herring wrote: > On Wed, May 2, 2018 at 3:16 AM, Johan Hovold wrote: > > 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. > >> >> > +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? > > ...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). > > Wouldn't that result in very long acquisition times? I guess I was > thinking Vcc would be always on when running and V_bckp was just for > suspend. Yes, the acquisition times would certainly be longer, but for a GNSS receiver which is rarely used that might still be preferred. And since I'm using runtime pm to manage the supply, this policy decision can be deferred to user space and controlled through the power/control attribute. > > 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). > > I guess if that's the intended operation, then making it optional is fine. Ok. > >> > 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. > > Okay, just add a vendor prefix. And note that using '_' is discouraged. Ok, I'll name it "sirf,onoff-gpios". Thanks, Johan