Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3609264imu; Mon, 28 Jan 2019 07:48:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN67gTrIX4GL3gGUAbSylBM7TK9LUYz+L9oSafB5rDobFbI6PvVYNipXrOTHP0Em2RmWXZ0L X-Received: by 2002:a17:902:a6:: with SMTP id a35mr22325846pla.201.1548690492498; Mon, 28 Jan 2019 07:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548690492; cv=none; d=google.com; s=arc-20160816; b=sPMfMW8iqlnHz+BdqQYBY/vyhj9JGVmgCt3h+C3CuTYtJ7DyIstOp4gBV7Iklq4P+1 EYJlCWIWVpP8x/K/Y2OoXzCNxH7hSDzzxaN6ma0+70hnHloN5GZO6cGYXSU0JsNsOfJc HLbdaEwK1QutQ/9106wvnBtR3pCToQDu9NHVgNYOOJTXGyTRvVXqi45GncXjJH0L4upG 3mDm60EUvKKhJZwqdrL6PWmn+ElSrfLYj0t4D6XBoPpzfkeE6EluudcsC3ez/G9+wti+ EhHpcgLVHprLfcrTJar7iegmrZwOvxPxBVQkq5pa7bfnSvPazZ5e6JpveGwIOW2TYhEK CWMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=24NjDh3BgzGxjDtL0C3I6Y10gxo/KZPwGxzMjFIVtMI=; b=lHvIthOtoGNPGOP6nVO/P5EpJCrWnxX3tGe7YiSDVw9S4UaRFCjpRZXrl3dpEtOU2v Yr+2T6tjAR0UhfAFoTTuy8v2kQGEkSh6siy9Fcnz24uUU96LoN62Mvi8V7WmtSjZYYtu rGjmlc3cmAuO01na3YQ2ll8o7Jw4y8b4Embs8Ya95QRNYHIE9LbSvoVuEB8PLYbmdFrI kXX5bNbr9YTCzesKkfhKh+wu1xvcZZHfTmYV4XxIcgVB2Yi8xGSM5JWOdWL7WAweSHZu wNQgH0PrYXlUG+chQaJr3jqud2f3wZ3tO1GDA01+iIY5cEQBa8BunzIsZrRNrwV0ESEN 6xKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xemMwMlw; 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 g19si16401370pgj.358.2019.01.28.07.47.57; Mon, 28 Jan 2019 07:48:12 -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=xemMwMlw; 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 S1728190AbfA1PrD (ORCPT + 99 others); Mon, 28 Jan 2019 10:47:03 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50914 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbfA1Pq5 (ORCPT ); Mon, 28 Jan 2019 10:46:57 -0500 Received: by mail-wm1-f67.google.com with SMTP id n190so14530269wmd.0 for ; Mon, 28 Jan 2019 07:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=24NjDh3BgzGxjDtL0C3I6Y10gxo/KZPwGxzMjFIVtMI=; b=xemMwMlwXf0BKqEfwRqgiOIMoMN8z7uXTejRabvpUg1OmgIO5e4E+nkKCTNHXOiRTi BV1XTNcTMnQhJm5Mb6QRGqoKSOvOIMpUa15/eYbBsL3FcM77mV6Kqi4bcpzjLO6Ucf4f mTiRQC+gtANadgMmekUTIWJV4CW4y5XZ/gWY/Dawp7l+CXRVUm7tjmD0lTd9FnddIVO9 njCh1/gsIXcsyorEu28o/maE6XBko7M7h0/vgD9CynxuJ5kX7Xh4/NiGzfBM22D1L6TW 6bXRkf73eQYrfhu0snVhyTTjOKvlsSeNkZGTNpPRhjw8eyShoaukER1fNagUMfl4p4Gj wrRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=24NjDh3BgzGxjDtL0C3I6Y10gxo/KZPwGxzMjFIVtMI=; b=TFyBfXs8OewJf4rPdfXz/v7XH6xs32OMWsP6vqp4QqKZzuzQj9P4mf/GCTdBF2JRvL uuJIqcbnRsstLJDV2SzGUahunnlZHyxZaV5xPywgS9ldePHo5pWBXi+AFtgP9VhSl/A2 hDu6vKeAsKIWXrMan25fPREjd6t+Vxtqb4rs4pYIKWf3CfiOHNZbKLyy5sHEq4F6XwUT LmQ9WJWm8QLyuGWGTdq/9XYrVvd68o5pvDY5SZZ47XLRnne93aAwpZynq5PhbU/vvKNk v25mSA/1aKyZdf9iI6JmFpZdaZgcYuG/DGREgr6Cpe/9jPymmQHlZnoD/dQUg8harcPK A1VQ== X-Gm-Message-State: AJcUukfkmRMHmTxHIw6C9clnDskERp0tZawKUGS3Ia7P7h4zAryK9/t6 mtBROwp5/xk5pyflPtzjsYNvHw== X-Received: by 2002:a1c:5fd7:: with SMTP id t206mr18536987wmb.145.1548690415418; Mon, 28 Jan 2019 07:46:55 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:d40b]) by smtp.gmail.com with ESMTPSA id r22sm23802wmh.2.2019.01.28.07.46.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 07:46:54 -0800 (PST) References: <1547744074-28308-1-git-send-email-lollivier@baylibre.com> <1547744074-28308-3-git-send-email-lollivier@baylibre.com> <20190125090755.GB3691@localhost> User-agent: mu4e 1.0; emacs 25.3.2 From: Loys Ollivier To: Johan Hovold Cc: Loys Ollivier , devicetree@vger.kernel.org, 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 In-reply-to: <20190125090755.GB3691@localhost> Date: Mon, 28 Jan 2019 16:46:53 +0100 Message-ID: <867eeo7pjm.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >> >> .../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. > 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. >> + >> +- 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? > 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. 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. >> +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). > Thanks I will clean this section. >> + >> +Example: >> + >> +serial@1234 { >> + compatible = "ns16550a"; >> + >> + gnss { >> + compatible = "globaltop,pa6h"; >> + vcc-supply = <&vcc_3v3>; >> + }; >> +}; > > Johan -- -L