Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp232251imu; Fri, 25 Jan 2019 01:08:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN7sNJBnRak9Yum41jbXKHI9eoqE9xCRbRKfKwiyN+G4N1ExpHurDVo/QwY+kpunL/NBgCYK X-Received: by 2002:a63:3d49:: with SMTP id k70mr9224285pga.191.1548407304628; Fri, 25 Jan 2019 01:08:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548407304; cv=none; d=google.com; s=arc-20160816; b=qUZteoUmplIE48pHXSwYFKOS0KxlVcGuwgUtfrQCB8ipCw0MKxVgGH9YeWajnoDjYY xNU6o71rVgSsdDzqPx7LS8Ux9mWZM9uqG2RiRtHFWiIJX8u9b6xqhL7lFfJW97hGzb41 4PEfujnDjjAOmuTHU7jEMENqsBRQxfh50QsRer6zSa/rz8bSuCOCl1rmjhXQsuCnghv+ 9L2RWRCdmyZw5TKlyU2Tw+LZUWDe7Sf9PbeRO/XBxQdVsPgFZZ7vZRZTDCfxh+IwIMIr HkutjZ834Vkqbv6OJAV9mhWIttNd8TiQ+23boEizj7nZ/YlPNeHkkc2y6YnBnKZaUcFz 8POQ== 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; bh=CtSiaZshpaEHWQ5nMsvhKse3z+gGNNoMcIPdg+hmKao=; b=hRDsSnsqohqewfpYr/ysI0i8gnXb7tZlYa7FVxQBOyaYCAqPPZLnI9kAmeM2VCf58W vK5+rZuGztghmjFSgxpl0O9k4MOlFKiGQB0r/Xbe/vtHeulNVNpdrlCHQp/KINAJpfZL jkMzX/nITANv53rMxkIuvO/LjVm5zKbu2kIfCxyv0d6kLQZ04167Mw5pq+BSD/VOUHTm sKTjPsfVfExRKfSVM9TNHZ4oTh48qXyX3zCsGF+0YC2BT1D9pHPANH2LLqr7WQLFsL4L ZyzvaGH7/5fYnhg8MCPyCS494XUXNFzHg1xDDYDxmzFPeGEERJYYo1R7QVltCMKYpRgr RcDg== 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; 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 l96si25137846plb.292.2019.01.25.01.08.08; Fri, 25 Jan 2019 01:08:24 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbfAYJID (ORCPT + 99 others); Fri, 25 Jan 2019 04:08:03 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39374 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbfAYJID (ORCPT ); Fri, 25 Jan 2019 04:08:03 -0500 Received: by mail-lf1-f68.google.com with SMTP id n18so6394592lfh.6; Fri, 25 Jan 2019 01:08:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CtSiaZshpaEHWQ5nMsvhKse3z+gGNNoMcIPdg+hmKao=; b=Vw5Ua4RhQvLqWrYnd0MG2GnDsHeWcTcXYujjkNzxqVOXqkUhSrL4MMUvXM1mTaNx6y TNXzaM5lPuM4bNHv/Br+K7ohuPDgtZuq4jF02S6E7CAKXLc9ksozdPGrGhSLPocEo7Jp oRboKF7KM6Tf+alAiyVGOW6eRnHgdOA8pDAWmlEMOGtHZQsK9mKNgc4VyRvKnzo2FlOc LayxQw7/V7EInk2SQaOhtSlyYDvBFfrJyIyoOc8A8jF7HnwETGu3Tqhbbqy2p443QazI PWghXdkyySf18jXJ3rEIQGRz9LJCei8Uid0upH7qn2AYKzmO3VfIn1adMkHFnNPrHxEM lJKA== X-Gm-Message-State: AJcUukeKEIU+1Q61UFTuMzDnrexI8/oPuJrxKeWcQkMnW4sPBtHQEfs6 44guBdwKeYF82Lf4KekevaE= X-Received: by 2002:a19:3b45:: with SMTP id i66mr8315754lfa.28.1548407281364; Fri, 25 Jan 2019 01:08:01 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id n8-v6sm1524606lji.90.2019.01.25.01.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 01:08:00 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gmxSt-00085A-G3; Fri, 25 Jan 2019 10:07:56 +0100 Date: Fri, 25 Jan 2019 10:07:55 +0100 From: Johan Hovold To: Loys Ollivier Cc: devicetree@vger.kernel.org, Johan Hovold , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Kevin Hilman , linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: Re: [PATCH v2 2/4] dt-bindings: gnss: add mediatek binding Message-ID: <20190125090755.GB3691@localhost> References: <1547744074-28308-1-git-send-email-lollivier@baylibre.com> <1547744074-28308-3-git-send-email-lollivier@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547744074-28308-3-git-send-email-lollivier@baylibre.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 05:54:32PM +0100, Loys Ollivier wrote: > Add binding for Mediatek-based GNSS receivers. > > Signed-off-by: Loys Ollivier > --- > > v2: > Renamed bindings from Globaltop/gtop to Mediatek/mtk. > Moved current-speed as an optional propertie. > Removed the status line in the example. > Added "mediatek,mt3339" compatible. > > .../devicetree/bindings/gnss/mediatek.txt | 39 ++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gnss/mediatek.txt > > diff --git a/Documentation/devicetree/bindings/gnss/mediatek.txt b/Documentation/devicetree/bindings/gnss/mediatek.txt > new file mode 100644 > index 000000000000..fd984b4a9a6d > --- /dev/null > +++ b/Documentation/devicetree/bindings/gnss/mediatek.txt > @@ -0,0 +1,39 @@ > +Mediatek-based GNSS Receiver DT binding > + > +Mediatek chipsets are used in GNSS-receiver modules produced by several > +vendors and can use UART, SPI or I2C interfaces. > + > +Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic > +properties. > + > +Required properties: > + > +- compatible : Must be one of > + > + "globaltop,pa6h" > + "mediatek,mt3339" I'm not sure it makes sense to add the GPS chip itself as it cannot be used stand-alone AFAIU, and either not way would require a lot more resources to be defined than what you add to this binding. > + > +- vcc-supply : Main voltage regulator (pin name: 3V3_IN, VCC, VDD) The pin names in parenthesis were copied from the sirf-star binding and were used to capture the various names given to this supply by different vendors. Please drop as it doesn't apply here. > + > +Required properties (I2C): > +- reg : I2C slave address > + > +Required properties (SPI): > +- reg : SPI chip select address While the mt3339 appears to support these interfaces, the globaltop one does not. Have you looked around for a small sample of mt3339-based receivers, to see whether anyone actually provides these? > +Optional properties: > + > +- timepulse-gpios : Time pulse GPIO > +- v-bckp-supply : Backup voltage regulator > +- current-speed : Default UART baud rate Looks like you forgot the optional NRESET input and 3D-FIX output (even if the latter might be of limited use). > + > +Example: > + > +serial@1234 { > + compatible = "ns16550a"; > + > + gnss { > + compatible = "globaltop,pa6h"; > + vcc-supply = <&vcc_3v3>; > + }; > +}; Johan