Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp763061imm; Thu, 31 May 2018 09:00:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ4LFwK3g5nI6WfEJajBQR6S0AnhnPlZ26oqYZCSBwkplF+E7lesiwQvrjECaWc1GLDjc2V X-Received: by 2002:a65:65d2:: with SMTP id y18-v6mr5818649pgv.186.1527782414657; Thu, 31 May 2018 09:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527782414; cv=none; d=google.com; s=arc-20160816; b=P8W6cGuRJ2tw/eiCWGNGjg+h9VXMxuAMJS/t9qtsPZ5Mm8zyrwp9irCOam/l7nMtgA g1HV5ozI49ImLY1qLOTmFFZorKUll/Edw5xwDCnIL/FhZqBL+CcYy7qB09U1D84F8PLi 7dtxSD01EZk3AdXdTSs9M4O+eaYLkkjDbKPulME1Y3j+9Zx0bfR8IzaS8DJOncqxbdzI 8k03280+h0+vxEUtqvPKbXCVqqvod9rA2Ghre344ulvNcgNfbbO8HnniZKlMwiFjqgrp zExeGN5K8WHd8RCwPKkAeYxwrzKdBqfywEGd4a/JI9vBSwitpt/UVavtjkYKPT1ae4ba YlZA== 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:dkim-signature :arc-authentication-results; bh=9NaPP1JgBg0PtK47toDCUGSJGRkjzd+n5xK5H4x0Wzc=; b=sfkaYoEIiJaq6Fb4ObSvC1AHSPd0yGZEyzHDLVLGO6csbJwqphXMEiT9kjZDKuicJM SOdjt7olVU7z1bws1cLj5wvvvWRZLXqQQrlbmhmmUO6rUrdpxwKF0vvUt3+NECWorQPQ 1yChiVCO54XOQRIjqx+5mWtrDxYmrBL5c1b9ZhElDFQy3AQ9nze8LpMTFEchlr4N0VKt GcCYYbXzlGy1JOXyd6bg6VxCDP2Nwc3TeogMB0+i0YKSno35PbGZKxMkY7K7VI41e015 +g2bi/HmFQWTLCLv9QYHcA5r+r4kItxeouDjgDIzmchadNNMCRZKAeWpRfQiTxErfQb+ zTcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m723P3Tu; 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=pass (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 bh5-v6si35996104plb.320.2018.05.31.08.59.59; Thu, 31 May 2018 09:00:14 -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=pass header.i=@kernel.org header.s=default header.b=m723P3Tu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755561AbeEaP7X (ORCPT + 99 others); Thu, 31 May 2018 11:59:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:58152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755443AbeEaP7V (ORCPT ); Thu, 31 May 2018 11:59:21 -0400 Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) (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 61673208AE; Thu, 31 May 2018 15:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527782360; bh=+wjK3WepqXfePG2G4gD8NE0xj5iXWaYDh6QTfokbf20=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=m723P3Tuyt1AiPjfzvCK6b+WpAQ6KZCnUWi34Giod46HBFatlr7hH96P74wvYpMJa oY1S4AX306R7F0JySTsBZSfVk6g2GI7askkZDgF0ZR/qZATvVp1I1V2/VuegUC0pE9 sIwL3VDdten3XVdAGhi2aDMGy7iBWzS6WsOyvpEY= Received: by mail-qk0-f177.google.com with SMTP id g14-v6so5294487qkm.6; Thu, 31 May 2018 08:59:20 -0700 (PDT) X-Gm-Message-State: ALKqPwe4fcnR+XSbzqduloVmtfVtQ31Fo+eu4qKHA4d3FDVJ1jUzeRXE CpFlk8zZiAP17r5NuE6mqla+fmCO4RbWsNiunA== X-Received: by 2002:a37:c31d:: with SMTP id a29-v6mr6737798qkj.213.1527782359546; Thu, 31 May 2018 08:59:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9b02:0:0:0:0:0 with HTTP; Thu, 31 May 2018 08:58:59 -0700 (PDT) In-Reply-To: <20180531143428.GK3259@localhost> References: <20180530103242.20773-1-johan@kernel.org> <20180530103242.20773-5-johan@kernel.org> <20180531035805.GA16906@rob-hp-laptop> <20180531082241.GD3259@localhost> <20180531143428.GK3259@localhost> From: Rob Herring Date: Thu, 31 May 2018 10:58:59 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/8] 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 , Marcel Holtmann , Sebastian Reichel , Tony Lindgren , "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, May 31, 2018 at 9:34 AM, Johan Hovold wrote: > 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. ;) Okay. > Shall I remove the property, or just add "input" as suggested above? Just add "input". Rob