Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp679379imm; Thu, 31 May 2018 07:35:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJR8FdArCy2dbFDO6DPamOzXTQClNzDYI9/iOG/XOR1Vt2czL5rkB4y9IQoHIOi2xTs9f9o X-Received: by 2002:a63:8048:: with SMTP id j69-v6mr5825985pgd.429.1527777315378; Thu, 31 May 2018 07:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527777315; cv=none; d=google.com; s=arc-20160816; b=cHb+QVSDGGgMtZyUUAVsiDUw1BqGv+aqvSsrC5PfvteGSJ4RVWGRZMIMIt234MGJZl f+FvB+hM/dqHyYWPYT7DM1CbxnQ5n5XN2rFQM4ibiGSY79lE7Lw+39M39+umgHxuhYpf 1k+Fvf12dkdPArurKQot9DF0HVnbHh9scBRE9fkEaBzkHOGijGKcvfC/UBi6WMYo1K1U b9VxNz57nV3AZEnKcmsZJB/ffHtIzTAXcwQ9fPOEDxyBKV0V2NwfcUYj/9LTVDLN9Y+h XBwZ3913cgG8J+ChHwJNpkMQco3dSlGoQkShZhMCKOwWs4I8TR5KnTKzrAbcn3ooqKKE BQ/Q== 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=rmFy1eyxG+GZ0smys2Zfo+pJZ5CDiFiIZaA4ts3Xboc=; b=SONZLDBD9uueD65uBXtsKD3Q9WVvCmwymqMuov7PeasGqIQgXXFyF5piPz4myPGj0O WruwWlHjuvTA+hVErMz+hk3AW3nGlD5GFACMVB2hBWr1G9u3S/rkCofiC+IUXWYXdiUI q2TwHY4fOOnShSicOhpzuaDW8nbQhO03+pTiEo6AYDkt9FdFbp5YTzCmuUwCI9bBMRJ6 G/mUPdgKIrCMQvTcRDioXA6mIiqDmwsLje8MMSQ0DTDttm0rWUDPYinAU8lalXNUlZeF R3plTIeDAhz1cFi9ABOS0YKX9makK+idBIYOKantdfQeQUxNmiTWJnPPrF92/a7FUjKv fToQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qkkV+z37; 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 d3-v6si25635221pgv.562.2018.05.31.07.35.01; Thu, 31 May 2018 07:35:15 -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=qkkV+z37; 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 S1755369AbeEaOeg (ORCPT + 99 others); Thu, 31 May 2018 10:34:36 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:37591 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755297AbeEaOed (ORCPT ); Thu, 31 May 2018 10:34:33 -0400 Received: by mail-lf0-f65.google.com with SMTP id r2-v6so10083733lff.4; Thu, 31 May 2018 07:34:32 -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=rmFy1eyxG+GZ0smys2Zfo+pJZ5CDiFiIZaA4ts3Xboc=; b=qkkV+z37ep1qeW8Qca1I6Eq91b+irFP4iseEle50Jwdhr//uwEYdCIxJMny+BKJTI8 /6KQQzSxcQ8ro7cMWfjz8Aca9AxKwcyaWTlNtl4dCrmNUvUO0KNNAl/Bgek5ZyO7j0Kb fy9AjekY+7NfWtkEIltsr71llIN6XqsleQsxCJnn9gI/lvtTTjKWvydc9a9lRLka2sSw SFS2sl0r5Nv9L0RkA0HdeDH13BtinonOFe94hedZJxBzYcDM8MKuF5G0Yxvk3C9nb9wT 1SnpALUqj8jloTbBGGXaTatEovJ0oeLZcunLjZmhjGCsYYVH5GDpNkwJe6iOoAqK0T4G CE3w== 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=rmFy1eyxG+GZ0smys2Zfo+pJZ5CDiFiIZaA4ts3Xboc=; b=awdtpQUTj6xAOr6ic2PpkGf7jCaWz1E4XyjVjLlIgf6U9xWZk94gfI116dDkopumVg VMC8GBXh8y9b4g0/DCfqcFwZ5E7f4VbFQHS5gOyJI2VksjvRvLkDQiHnGrY+jaYC75St y56TlDAN+GWqv44eBcqTRGA5spdYN4SSPHbYXhXY3dCdH+V0OyAB05ooaWoQ/pYGerHy li5/J4xS59x2uzbiK1KDJBIvFyGIReEdYpLCrFQIeKf09HQO5ScGsbpvUetso5EUY4VK kpd8/AmIRS0HJNXuKFraCrnNI6JLM5xNVEyFUC88B64ZGXz2xCFGpwPa6+Yqw65IMmDl O9Dw== X-Gm-Message-State: ALKqPwcj5Zwk1FJbMPOPAr1cHP6yZDfRudorQCH1/WFZkIL6q++dMewt 82WVZUNVrbsjdtdilvIg79I= X-Received: by 2002:a2e:2948:: with SMTP id u69-v6mr5388423lje.130.1527777271966; Thu, 31 May 2018 07:34:31 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id n63-v6sm3308162lfb.46.2018.05.31.07.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 07:34:31 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fOOeq-0006HC-I5; Thu, 31 May 2018 16:34:28 +0200 Date: Thu, 31 May 2018 16:34:28 +0200 From: Johan Hovold To: Rob Herring Cc: Johan Hovold , Greg Kroah-Hartman , Mark Rutland , Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , Marcel Holtmann , Sebastian Reichel , Tony Lindgren , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Subject: Re: [PATCH v2 4/8] dt-bindings: gnss: add u-blox binding Message-ID: <20180531143428.GK3259@localhost> References: <20180530103242.20773-1-johan@kernel.org> <20180530103242.20773-5-johan@kernel.org> <20180531035805.GA16906@rob-hp-laptop> <20180531082241.GD3259@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 08:55:10AM -0500, Rob Herring wrote: > On Thu, May 31, 2018 at 3:22 AM, Johan Hovold wrote: > > On Wed, May 30, 2018 at 10:58:05PM -0500, Rob Herring wrote: > >> On Wed, May 30, 2018 at 12:32:38PM +0200, 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 | 44 +++++++++++++++++++ > >> > .../devicetree/bindings/vendor-prefixes.txt | 1 + > >> > 2 files changed, 45 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..caef9ace0b0c > >> > --- /dev/null > >> > +++ b/Documentation/devicetree/bindings/gnss/u-blox.txt > >> > @@ -0,0 +1,44 @@ > >> > +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 > >> > >> mixture of space and tab here. > > > > Oops. Same single space character before the tab here in all three > > binding docs (and in the in-tree slave_devices.txt which I think I used > > as a template). > > Who wrote that crap? ;) Heh. > > > >> > + > >> > + "u-blox,neo-8" > >> > + "u-blox,neo-m8" > >> > + > >> > +- vcc-supply : Main voltage regulator > >> > + > >> > +Required properties (DDC): > >> > +- reg : DDC (I2C) slave address > >> > + > >> > +Required properties (SPI): > >> > +- reg : SPI chip select address > >> > + > >> > +Required properties (USB): > >> > +- reg : Number of the USB hub port or the USB host-controller port > >> > + to which this device is attached > >> > + > >> > +Optional properties: > >> > + > >> > +- timepulse-gpios : Time pulse GPIO > >> > +- u-blox,extint-gpios : External interrupt GPIO > >> > >> This should be interrupts property instead of a gpio. > > > > Contrary to what the name may suggest, this pin is actually an input > > which can be used to control active power or to provide time or > > frequency aiding data to the receiver (see section 1.13 in [1]). > > > > I only added it for completeness as the driver does not use it > > currently. Remove, leave as is, or add "input" to the description as in: > > > > - u-blox,extint-gpios : External interrupt input GPIO > > Yes. You should also define the active level. The active level appears to be runtime configurable and dependent on the selected function. For power control it can be used to control force-on (active high), force-off (active low) or both; and for time aiding sampling on falling or rising edge is also configurable. And who knows what else this pin is used for next time they update the firmware. ;) Shall I remove the property, or just add "input" as suggested above? Thanks, Johan