Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8122814imu; Fri, 28 Dec 2018 10:59:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN7pqMvkPpBWnCr4ffDk7/rt6ASKsKlJLbf6KSgLKyELqhp2I3lUNL0R4t5IT4+4ptdW+Ccc X-Received: by 2002:a63:9b11:: with SMTP id r17mr27552088pgd.416.1546023562836; Fri, 28 Dec 2018 10:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546023562; cv=none; d=google.com; s=arc-20160816; b=AdpO/as5guJEl0lEjm8OAjMSqKHotx9geQuow0lXhDtoahJihcPr82dPJy3rol/m/Y w8pbCdBIA1obseUbp26LTYT+jfEHxkBZGJv/G7J9Gxtci6MNYcXSE+y2cXsMh38F4vFc swUQHZAf5KfHvWQyy/CgHsFGLMVEfimap+gMLfgMX5iHL4QJ1ULU/Z0yjs+gZc8zWs6u KfCDZrNBmBpKxLw8llFW0CP3VdcCAPo2rt9XGmNugMO53OTukZbmxeAccRUVsHxw5nzC iWltNqtVrDj15Y1yHbxrsucptxWZacjnX7gzs5bpLFt6MFwEkX65OcDvQuikDnh4R/rn k9eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=wA3sLETIlRKxDeeXR4+xPBu2iPGUxyZdr6J70dBcBMc=; b=Nb0QgwdB+uFeDXI2RqICfDHeCwD89HdtE1nme/p/lk5uh50jT+WNA7oW0Wm7w53tw8 Rsvly8yljNZVYHI9v+3XTjU6QcyRFA/Y0AKXdjFKzd3AP+E+egUXLj7p/NhBz5skC/a5 8ML/qgHiTzoFMo3+vlhFvr332XecXceyIB2mySUUJoZmwDKqJgQlCyPeZw98mMILYifm jxSO7HjSYVnno/9uN92znrvvYw6xFSFSHZ//Mo7xqxWkpssB8P6fFu8lRckbuC7Cjuaf ZWb4pAuMyxiLvFe5nSgQWmLHAArEvRTyNP+U59xqH2/OLJXKWzmumncg0rMB50uvMg60 Jj4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FTfLsvjp; 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 u10si2094846plz.119.2018.12.28.10.59.07; Fri, 28 Dec 2018 10:59:22 -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=FTfLsvjp; 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 S1732070AbeL1KvN (ORCPT + 99 others); Fri, 28 Dec 2018 05:51:13 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:36304 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731657AbeL1KvM (ORCPT ); Fri, 28 Dec 2018 05:51:12 -0500 Received: by mail-ed1-f66.google.com with SMTP id f23so17258685edb.3 for ; Fri, 28 Dec 2018 02:51:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=wA3sLETIlRKxDeeXR4+xPBu2iPGUxyZdr6J70dBcBMc=; b=FTfLsvjp9wAwTpVKEXYFpHakm258olb010572UoKlhqZu+eFd2M96e1o8sklL+FVwY z/8HWJXAg304i1r2AIAw2SOh8BR4bxqmtQdmaQ+V6o7pf9ImG1CFy2OzKhsgFrNYRcG2 fMnkp2aK6/MHsw3+OC9jutXDlcd/BDtP66GYfy8SX7S4WJQhdAhIuHnwo0QbvHG2vIEc P8Nqwyibc+FuFWoQCkMbzhxidBN0t1jvv8KmJTQs79PZMTaCFFaGlvnbq+W3yHk396MC +UIUxUSXaEv73vUgKfCM4PrAfp8TtE+irTB8IRkmRacKz1KUr/af3BtUEcop8cDVHnP4 wOvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wA3sLETIlRKxDeeXR4+xPBu2iPGUxyZdr6J70dBcBMc=; b=K1FY9imvQOOVOQaQk0TQWcU5D2jkwMMKbByYsY/ODWPqd2Wi3W7GfI4wStUiHaTlDh CFNLMx3AledGspHNojcTI+dQD1ugNmxuMXJYN5MutoX0fAtU4ZAtg1kFqsPgfzP01Iq9 /N16ShOQbMgywwo3NqFCnitJZapiVrXvZAbjpCqL7h6ATqoDsCEUeLC8L+o+aIcqncoF W4FKhMNKEC9S2ubCNI7AD+iLQUma6F1Ug3K0b/rev1xeOwLjLDAKHloVPQlS4sCwGy1E i/pgOlEAxjHtIW7WU4cOWEidSBSgZevM0NiuNpt2tVNj0eRJpAcQNCJP9+lHs+rdNMTC rUJQ== X-Gm-Message-State: AA+aEWavU8qqQ/4HdJ/cBiu7qn5GqYr3PVgpLSsLecfA4SAc31tdK/K9 NA5+n0XXU301MWR/wC2r4fRE+w== X-Received: by 2002:a50:b006:: with SMTP id i6mr22275869edd.84.1545994270947; Fri, 28 Dec 2018 02:51:10 -0800 (PST) Received: from loys-ubuntu-BY1835A49200471.home (anice-157-1-157-17.w83-201.abo.wanadoo.fr. [83.201.132.17]) by smtp.googlemail.com with ESMTPSA id b45sm12919494eda.34.2018.12.28.02.51.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Dec 2018 02:51:10 -0800 (PST) From: Loys Ollivier To: devicetree@vger.kernel.org, Johan Hovold Cc: Loys Ollivier , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Kevin Hilman , linux-amlogic@lists.infradead.org Subject: [PATCH 0/4] Add driver for globaltop GNSS receivers Date: Fri, 28 Dec 2018 11:50:31 +0100 Message-Id: <1545994235-8309-1-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"; }; -- 2.7.4