Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp62238imu; Thu, 3 Jan 2019 14:06:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN5RvhAcgvtOgkQzWTVw1NfChlk4Hcpwwv6GRL+MsY9azO79oQjFuAwuzMdMZOucBVkuZCXf X-Received: by 2002:a65:5387:: with SMTP id x7mr18610558pgq.412.1546553212387; Thu, 03 Jan 2019 14:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546553212; cv=none; d=google.com; s=arc-20160816; b=eETM6FQttzLc3IxfS9/IzxYEWXmvSUbn3oX8wffMSTXSN3II9GrpUnYyoYPIEcu82z ko3ajTRZnCipR9YLVsPbiOt1YCNkwlPgjCBU1yOkT689fECwUc6yXC7HEgFWPV5zACP2 bXXZQTfbNgyOHtGtL+Qp5WUYd2qs+CFTVDcOHz1MSI4q1bWFmFoYiz5OmFfNBC9PeYPJ BzS/BLBVLP1DBOyum0Ex/dX6b+mH2veB2QHDOUcoAjS8dk9GXr5RVt92iSXs9ZmAZ2bZ HWVh6FqMtDuiH+ipNl+B1amRAIUJE8/Zwn1YferzB8g51XwbHQ5J7Ko6kQtSH/1yZ6qw PGPw== 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=WJAQvMs1Q0JN1b84t4wRcxNWwOJ+O3BW6vUmppGF/AY=; b=WQ+9ZM153qGr6PX28UZdPS2JZuGC9i2EFv67uMk3Yc+hxwIp/wnuBh+TRCb3WRQBj2 c0mAdcATV/2R3P5J13MKykWdwosv1lidF11M5cPNzgWO3DHHnekl9IC/HBDzv0BHPXLS 3vWT9zFWxJDjnWtX8fTr50qJHjRw4rC0UgkJIglTNOi+fTU2N3bM6S/2CakG/kFaf6vO xhmgAvCoFUQ4Qni+tZTGXdsrlG9hZdhHbkDqXhRi6+khnVU6z8hpK/UuxNPZMO2btH4u FSdCCgzpjzqonk2r123Rghn0IBTYEY9T0ScNBkLYeft0RSURwvPZqcwT3NTCdBFznQG3 J2OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=z3ZCsZrQ; 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 c7si53934228pgg.339.2019.01.03.14.06.37; Thu, 03 Jan 2019 14:06:52 -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=z3ZCsZrQ; 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 S1730697AbfACQEl (ORCPT + 99 others); Thu, 3 Jan 2019 11:04:41 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54493 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbfACQEl (ORCPT ); Thu, 3 Jan 2019 11:04:41 -0500 Received: by mail-wm1-f67.google.com with SMTP id a62so29703268wmh.4 for ; Thu, 03 Jan 2019 08:04:39 -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=WJAQvMs1Q0JN1b84t4wRcxNWwOJ+O3BW6vUmppGF/AY=; b=z3ZCsZrQDcEIzAIG8LechOUoUaDZcaOYNfECx4T0WAavtUc94kAfJJYdPwjczxEh/h 1DIAb6ErTuFqm5XUtF7IQbWjG3fPD+TLo6ztlCx5059w+5aoKZjgWkh4wFBQvmLXise5 iXO3k7bXdMFyees72jwJ8nSYG3P2PPiVvbuf/w9Z6Uss9GknXfX48BXmSiia5x+rOgRI vh7gWwyFgPUhfmKxocJk9l/YVoQb/QmRxHRZLkbSy3gIhb++S6sgIQrwOmSz+our9lmv kkv4tZPr8l/qQ4ffzlGZpj63KW2G1ak6RmTtYD9ojBWwzdLwOj8SgTKJ2O4WGr417MLV XVXA== 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=WJAQvMs1Q0JN1b84t4wRcxNWwOJ+O3BW6vUmppGF/AY=; b=mtX7S8BHE4x0W+E6Hld+Qyk/xYLoXl3M6s7LQCSSnDhrsYywfVpIA5zdh6xlJAY5nq 0TCEH23S4YKP4tzbapcPe9R+cdu8aKoB09TRQie50cKSZqNHLojCK91zXGR+JzWw9MyF wm3tKejIaCI+2cLB/rh8oj5sd4zOYdon0wkh0nVpXnTBcqkHjppcTYPXhaGyzXQAv2C8 2epS6ua9icLvw8l5EaRUbk1OdtHB/s8bFfpiQTfUVzEwDBu6QQq5cAFtuD94IHYN0HYe eoln0ke3nIy8uwjA5doyg/iimIGgSi84CPMdmhrz3Bq9jUbWJ7r42FJF0w1KXKIBT3jN NwIA== X-Gm-Message-State: AA+aEWZ40olHUOS3FsdwB1YnUjKqKnYJE4XzuWOno0poFf6C97eab/7M 22rKmCMI3JAe8Lrp5FoHTiAiaw== X-Received: by 2002:a1c:2787:: with SMTP id n129mr39893190wmn.128.1546531478712; Thu, 03 Jan 2019 08:04:38 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:3f9a]) by smtp.gmail.com with ESMTPSA id v1sm58979609wrw.90.2019.01.03.08.04.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Jan 2019 08:04:37 -0800 (PST) References: <1545994235-8309-1-git-send-email-lollivier@baylibre.com> User-agent: mu4e 1.0; emacs 25.3.2 From: Loys Ollivier To: Loys Ollivier , devicetree@vger.kernel.org, Johan Hovold Cc: Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Kevin Hilman , linux-amlogic@lists.infradead.org, Neil Armstrong Subject: Re: [PATCH 0/4] Add driver for globaltop GNSS receivers In-reply-to: <1545994235-8309-1-git-send-email-lollivier@baylibre.com> Date: Thu, 03 Jan 2019 17:04:35 +0100 Message-ID: <86bm4x6830.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 As suggested by Neil Armstrong - this GNSS device seems to behave like most generic GNSS receivers. I'll send a v2 with a generic driver that works for both GlobalTop and u-blox. Please ignore this serie. Thanks, Loys Loys Ollivier writes: > Hello ! > > This patch series adds a new GNSS driver for the globaltop GNSS > receivers. > These receivers transmits NMEA output sequence as soon as they > have booted. > Power management can be done via the main supply and optional > backup supply > as defined in the device tree. > > The driver has been tested using a GlobalTop pa6h chipset on a > Libretech-cc > board using the expansion header. Changes made in the board > device tree can > be found below for reference and testing. > > Loys > > Loys Ollivier (4): > dt-bindings: Add vendor prefix for "GlobalTop Technology, > Inc." > dt-bindings: gnss: add gtop binding > gnss: add gtop receiver type support > gnss: add driver for globaltop receivers > > Documentation/devicetree/bindings/gnss/gtop.txt | 33 +++++ > .../devicetree/bindings/vendor-prefixes.txt | 1 + > drivers/gnss/Kconfig | 13 ++ > drivers/gnss/Makefile | 3 + > drivers/gnss/core.c | 1 + > drivers/gnss/gtop.c | 152 > +++++++++++++++++++++ > include/linux/gnss.h | 1 + > 7 files changed, 204 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/gnss/gtop.txt > create mode 100644 drivers/gnss/gtop.c > > --- > diff --git > a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > index 90a56af967a7..3b3d4dcc47aa 100644 > --- > a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > +++ > b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > @@ -17,6 +17,7 @@ > > aliases { > serial0 = &uart_AO; > + serial1 = &uart_A; > ethernet0 = ðmac; > }; > > @@ -269,7 +270,20 @@ > pinctrl-names = "default"; > }; > > +/* This is brought out on the UART_A_TX (8) and UART_A_RX (10) > pins: */ > +&uart_A { > + status = "okay"; > + pinctrl-0 = <&uart_a_pins>; > + pinctrl-names = "default"; > + > + gnss { > + compatible = "globaltop,pa6h"; > + v-bckp-supply = <&vcc_3v3>; > + vcc-supply = <&vcc_3v3>; > + current-speed = <9600>; > + }; > +}; > + > &usb0 { > status = "okay"; > }; -- -L