Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp261270imj; Wed, 13 Feb 2019 07:57:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTt82+5pC6iJthFkHyZ5V5lX6EUHuWKQaee5/qcD4x7hQaJQfTJO2OBCX5XmhoXMKoWvuY X-Received: by 2002:a62:b403:: with SMTP id h3mr1167971pfn.34.1550073464907; Wed, 13 Feb 2019 07:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550073464; cv=none; d=google.com; s=arc-20160816; b=r10hCEPK7pyByytV+6LU91bYFxroBY3uA3MXT0litOmSvEFXovTYae7VpU0fvzeFFH hxmH2SIGrgWuXtAqpgu3dQeRPDph+BWutgpb9ICY4bDcVZkrcaJ/W94QMAh98V1a9GEX TJa4RlDLToENxunJriCJ1cQyqxwrNLccK2kWw8DS/JA6sVan6qxKx8oqLEwF5QNmqnUX Mb1Q9UdZMPUEQAL70B3FLSCCd9zzE/JNJJjaH/tDLNfarJmQLc1vzqOxZsxVls9lNRQQ Io1xuwdOHYxSl4gwNg8+WUWT9inB4sfJjXYcAt3sAACcNFPUhh6OQBff8UlBiGbUdBpd Xvog== 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 :in-reply-to:references:mime-version:dkim-signature; bh=iepFje/MEMhk/3E4cnIjUK1NAURKmM59l2Ai+HFgl3Q=; b=KLzLF873FIQY1UsBs+X+hY+RDYC2QTSRmwlVp955kUspg1YNV6bPvU8BniXn1kEwYI GbE3NPKmWsTZaqP4UUo08/YjUc8uB+QlMuGs77plEwP2tkokuCKc6GOvoJKEP6cyhMM0 8ndbBNhYr6m0KAZQa7BGpig5sUJ7lHEYiu87lJYY7c53zRCYBLBLY6UGfnigNfGnTLr7 KCEANyz5Lk0+KEH9l311/xkB3JijMblZvdf7B2FFEDwb6vJluMnUeg4lyJHm/YvaF+xN TFIN41w2s/7yfGoe4q8LWe7yg2ckDJT6zHkQ0r6A7ENPt9yhC8rpzoWe/YLVp4RZcSLY x9Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kLei3CGV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si13188396plr.430.2019.02.13.07.57.28; Wed, 13 Feb 2019 07:57:44 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kLei3CGV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391835AbfBMPYO (ORCPT + 99 others); Wed, 13 Feb 2019 10:24:14 -0500 Received: from mail-ua1-f68.google.com ([209.85.222.68]:42217 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfBMPYO (ORCPT ); Wed, 13 Feb 2019 10:24:14 -0500 Received: by mail-ua1-f68.google.com with SMTP id d21so890174uap.9 for ; Wed, 13 Feb 2019 07:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iepFje/MEMhk/3E4cnIjUK1NAURKmM59l2Ai+HFgl3Q=; b=kLei3CGVOLhHwdFp1cFntXYHYuZ7JDpvOc97rUFvIW4okfi7bSlE+J1u5TNs0A99Vq fJApk6VcQdqiToVxuzeZEunO5jlSdcikTUEc/aixA4IUjtSB0tb7HQMT47wHtJ+u582g iFeJctncDS2ZpIdUgwxsJqZ61pye1jL6q3cnBTAqFs8p4zuaWj3GiVmW+PWz6oActyCQ S/2dOc7XrKh7cZ78Q3V/BEtLluvmJLJouta4AkRhEpH5R+dcJwBRSWUmCqzAMewVzCFC OIsgFXBtW+ANZVs0p4n7n9Mwi1FhUbbbD5ySEaUTMQ8mPu6z5sMFp2/bAPI+pdOfesgx 2I1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iepFje/MEMhk/3E4cnIjUK1NAURKmM59l2Ai+HFgl3Q=; b=j+9IAcNc9GsAdo5LftlbKm/BEoaaDbZbxvXCwHL2dyoWW2lEhoFDrFocfuob9rAL3H IzrDwdMwiffaYCb0jZFvE2UvYuEyakPCBf6LfclcJ18IXg1O6om3lBT6FVNvkktiAqOB l5ZABzW++x5ZdkWEjJxcqrhAg1G5hIdBNM4bfCnnaE/wDjJ9qavKDggsGI+ht08vRlkt z65sARlojkHLD1Gpe7WjihmCHUgVUrXRIpGqSZ433aE9dw0deK/8AZUUEmCV5tLP64pq khf2lN3NoTmXtqOH0L3vsVCeaFbD77QVmz3XY1OFiLjuN0uboBWbUSdwIa+RMOuCv7eg WnSQ== X-Gm-Message-State: AHQUAuYt7jodw8wuwl4LGIdpCb9ZxS2Q+F3TA4a4DMvgBfwps5sdAya8 o0Lp5d+6vHnI7A1MGPMMwzRzYWIBaMmixftNicH0Lg== X-Received: by 2002:ab0:2b93:: with SMTP id q19mr388945uar.130.1550071451959; Wed, 13 Feb 2019 07:24:11 -0800 (PST) MIME-Version: 1.0 References: <1547744074-28308-1-git-send-email-lollivier@baylibre.com> <1547744074-28308-3-git-send-email-lollivier@baylibre.com> <20190125090755.GB3691@localhost> <867eeo7pjm.fsf@baylibre.com> <20190211083349.GU4686@localhost> <86mun2v27r.fsf@baylibre.com> In-Reply-To: <86mun2v27r.fsf@baylibre.com> From: Loys Ollivier Date: Wed, 13 Feb 2019 16:24:00 +0100 Message-ID: Subject: Re: [PATCH v2 2/4] dt-bindings: gnss: add mediatek binding To: Loys Ollivier Cc: Johan Hovold , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Kevin Hilman , "open list:ARM/Amlogic Meson..." , "moderated list:ARM/Mediatek SoC support" , Linux ARM , Martin Blumenstingl 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 Mon 11 Feb 2019 at 14:17, Loys Ollivier wrote: > On Mon 11 Feb 2019 at 08:33, Johan Hovold wrote: > >> On Mon, Jan 28, 2019 at 04:46:53PM +0100, Loys Ollivier wrote: >>> >>> On Fri 25 Jan 2019 at 09:07, Johan Hovold wrote: >>> >>> > 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. >> >>> >> +++ 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. >>> >>> OK, I find it a bit confusing to have Mediatek bindings but no >>> compatible Mediatek SoCs. >>> But it is true that it can't be used stand-alone. I will remove this >>> reference and also remove it from the mtk.c driver code from this patch >>> serie. >> >>> >> +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? >>> >>> Again I'm confused by the fact that it is the Mediatek bindings. >>> Hence why I have added it and why it was not present in the v1 that was >>> only for Globaltop. >> >> This is no different from the sirfstar driver for receivers based on >> those chipsets but manufactured by various other vendors. >> > Indeed. > >>> I find it odd mentionning the chipset but not all its interfaces. >>> I will remove these sections and only list supported interfaces (i.e. >>> UART). Other interfaces can be added afterward if one finds a board that >>> provides them. >> >> Right, but please do look around for other receivers using this chipset >> so that we can make the binding generic enough to cover those as well >> (e.g. by choosing representative resource names). >> > OK will have a look. The only mt3339-based receivers I have found are: - [0] Globaltop - [1] Locosys / Pololu They both only provide the UART interface and do not list the I2C/SPI interfaces. [0] https://cdn-shop.adafruit.com/datasheets/GlobalTop-FGPMMOPA6H-Datasheet-V0A.pdf [1] https://www.pololu.com/file/0J641/LS20030~3_datasheet_v1.3.pdf > >> Johan -- -L