From patchwork Mon Jan 28 16:37:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loys Ollivier X-Patchwork-Id: 156795 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3631091jaa; Mon, 28 Jan 2019 08:38:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN70K8FO73LHtaJX4HRvKbR1+SMuPfFb1OYuDPeCczd/25CLRBlmL1j5QoI5vD2nqhMWsRv7 X-Received: by 2002:a17:902:e085:: with SMTP id cb5mr22187796plb.24.1548693513927; Mon, 28 Jan 2019 08:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548693513; cv=none; d=google.com; s=arc-20160816; b=It1sbG5HkCZjEAkD7uSe7SI3XIMO4XSilZwJwj7zOuDq65Ew/9SlTdev7hamFCtoda Q76hCp7Dr9xUwdbilu1SwIOVoJLsIasf8Gh4+5I/TTRCmVAfttrWxea2bA72c7VdihvD 0eM0mxxDhRk4hzJDO+V/a8XgDiF1Um5ibI4ekeLK11KQfYNP/SU3hliiuWKBlcsIHV0N Ej9A+H76zzPR9MFRZVhZ/Iur3SLZmwtPxYtucCrgI73QV0bplcVhIaCPyEPiC304yVxr fYN1RbYvgbswHEQOFiTuO6xZpNfYjtUq4SGEyEKWm5AXb54CRDxae3t1oko6AivEu0xR BGng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=9TWS3RWKZyY10HyUQ8/8Pkd3n2zCGA7KyKif2utYLQk=; b=tBqAMWuHnsSkld231zqF2Au9ChxTl4yZvnKOhlBtUMeAyEhMqteTN7WhzRf1YgbMim jFE31TMzdSGmN7SPAK6Txuu6n7Vui3Xlizysml27max/r4O0wKoCRzJfhlH3z6y9zNAX ATAIqK/EUZnNYbznhz/1dBPXTpbJaao4Dqo+vhypRqBpdG6jRt6f/cV7I0qReummto/q uLoWs9P3cFvDliy2XsDYb45j3FiSbp3k9xvyih2XeI9RSo6Ru9gvOfSaDxt1/jr1eN1L kbs/nQ0BhxQmozzxuPnPSTcWyTfZaOqinlTSR4aueNC2MB2REMqbZ6no6oySYHyDVY/k QsbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=RDmU414o; 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 i33si15442340pld.329.2019.01.28.08.38.33; Mon, 28 Jan 2019 08:38:33 -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=RDmU414o; 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 S2390297AbfA1Qib (ORCPT + 31 others); Mon, 28 Jan 2019 11:38:31 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38620 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389969AbfA1QiK (ORCPT ); Mon, 28 Jan 2019 11:38:10 -0500 Received: by mail-wr1-f67.google.com with SMTP id v13so18767728wrw.5 for ; Mon, 28 Jan 2019 08:38:08 -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:in-reply-to:references; bh=9TWS3RWKZyY10HyUQ8/8Pkd3n2zCGA7KyKif2utYLQk=; b=RDmU414oN71nkBAYiPqn/5DnY9a/u9LMT3qHlV2ydHCc9+jtKa3TZNdEJgRBEKLjco NI+Lb1XZrxNIUcye9zYNtrllkeaj2GBJoJI7Z/i1XARKPFGR9kWhG+lXT2jrRFEJnFXG fb0nNllUVAVqtLBaoWLKoW9l+FHgd0sKaMl5VY5QMFASIbkKM3vKMmKsLdNCuDCWoG46 0AMutNJrNG1RtjHGwSWyW5Q7n5J90mjXDurK03szScyb9cpynPLrpT31fd8bU0tOTEb2 EzYmx8T2acxvSwN8Brv/qxA6tYytvzdG1jBUYjMrnKEiND2F1CQCHlEcU9+/R2aYozSO qW8A== 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:in-reply-to :references; bh=9TWS3RWKZyY10HyUQ8/8Pkd3n2zCGA7KyKif2utYLQk=; b=tX1sSRTCD5/gec7LLd/X7iciXbfuNrg2VtlYikSNRrmd2MeiujAaRKdJTTtiAT423e 0ZSLXnSaA4UBjfbh9R8v3vTRk3Z16j3QUerFFjy8P+/LoofleCfI5MESI5Yj8ViOBiKp mODuehO0yGoqNfvs+XJ80afCwRbzSvdgtMHBNLuMgpV9FFc5k7I/18VORW5RI/BPtjjg Ej97MmtnyaH2xtbqIzRNMbK2tD40qxQfsbqJm70J0te8XTczFLcOduD4A0U9amUzYsZ1 DzT70v0TBPd/t0m9TrRwRW6phAhIuGIIOB5U+tHLhVEDKEy9TGCRKRlB3WH1Fgv+ZSDQ hvqQ== X-Gm-Message-State: AJcUukdFYwGdZGCI66gnl9JQMUut//uBYV/u/uCju4suuBZxhlSEX6kk 8ZemQfkExFMvDFqzHk9ULaxBJQ== X-Received: by 2002:a5d:5182:: with SMTP id k2mr22490514wrv.121.1548693488056; Mon, 28 Jan 2019 08:38:08 -0800 (PST) Received: from loys-ubuntu-BY1835A49200471.thefacebook.com ([2620:10d:c092:180::1:d40b]) by smtp.googlemail.com with ESMTPSA id s3sm52388982wmj.23.2019.01.28.08.38.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 08:38:07 -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, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: [PATCH v3 2/4] dt-bindings: gnss: add mediatek binding Date: Mon, 28 Jan 2019 17:37:59 +0100 Message-Id: <1548693481-1162-3-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548693481-1162-1-git-send-email-lollivier@baylibre.com> References: <1548693481-1162-1-git-send-email-lollivier@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding for Mediatek-based GNSS receivers. Signed-off-by: Loys Ollivier --- v3: Removed the I2C and SPI interfaces references. Removed the "mediatek,mt3339" compatible line. Added the optional propertied (reset, fix) Added the pin names for the optional properties. 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 | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/gnss/mediatek.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/gnss/mediatek.txt b/Documentation/devicetree/bindings/gnss/mediatek.txt new file mode 100644 index 000000000000..00650d81c5c8 --- /dev/null +++ b/Documentation/devicetree/bindings/gnss/mediatek.txt @@ -0,0 +1,37 @@ +Mediatek-based GNSS Receiver DT binding + +Mediatek chipsets are used in GNSS-receiver modules produced by several +vendors and can use an UART interface. + +Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic +properties. + +Required properties: + +- compatible : Must be + + "globaltop,pa6h" + +- vcc-supply : Main voltage regulator (pin name: VCC) + +Optional properties: + +- gtop,reset-gpios : GPIO used to reset the device + (pin name: RESET, NRESET) +- gtop,fix-gpios : GPIO used to determine device position fix state + (pin name: FIX, 3D_FIX) +- timepulse-gpios : Time pulse GPIO (pin name: PPS1, 1PPS) +- v-bckp-supply : Backup voltage regulator + (pin name: VBAT, VBACKUP) +- current-speed : Default UART baud rate + +Example: + +serial@1234 { + compatible = "ns16550a"; + + gnss { + compatible = "globaltop,pa6h"; + vcc-supply = <&vcc_3v3>; + }; +};