Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp249265imj; Wed, 13 Feb 2019 07:44:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IaTnqBsIavN0HT/L9cRhjyU/ENXUA1KMsC2yPlsJbY99O2LwJx6Y70WkNQDJM8yCq9/pNP6 X-Received: by 2002:a63:6cc8:: with SMTP id h191mr989318pgc.366.1550072648319; Wed, 13 Feb 2019 07:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550072648; cv=none; d=google.com; s=arc-20160816; b=iTkowFZL0EBeL2ux/d43qyvK+s6bRYUAJH7BWv/K6KxhrH3xxmw6zTPHpMW8TPjU86 mbsvIxXaVndoOf6kF82O7o2mEynm+YpgHAZY4V5I+LVW6cJyhisB0b1ZckCZu7ThSs7v 7HFykVV+q9Kp29gMx8IOHWLJy7HKaQ01gKgNO5kLrfXpjKvH4r+o58JdfdXOi+31SKks Ke78/JV12Mi6v/hEEwaP2HdVMyw4PQe4uOI/SfJlpASLoMGTkpVxgzbmacwKQHYYXN5t C7E5wTq4BzggQmgETjKxIcXg0dxlMuaqHkCvFLFcEiyTA3LciLXr2DlgUx1blIJXbJWq qw1g== 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=RXmtNLTc175lxeTH4WR0FnsamrIEb1qNdvropbMnYQY=; b=vzzbGsCy9lILiD7I0MV91a04ClYz72Ge1bOr0KPvbOT7rOQfRZDOHtqZACO4H9Op/D S/rYOIWcLmk2h9CwIv7BgK94bR46L29YHTfBd36twYI1VPZuk/Atb7g0qg0TXg4WEufj ob24jXs9O8nKMbmTTwzod2QYyNDYxNZ8VO4KgMt9JY/4uEOJIurxaJm83KaTQfFH+2pk 4iY31xDcXfwNU4oeZzwQFyuuMq71+PNMAADD7uC53rALeIWQssLEU67Hoa30AO0OrM6P fsc04BVLowsCwr7pdlflhMcZYpEcm5kPkvhrS+S66Nh3WBGmEq26Y1DwIjYNN4ZSR8+p wnQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yD0DRYzs; 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 b30si17558553pla.285.2019.02.13.07.43.51; Wed, 13 Feb 2019 07:44:08 -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=yD0DRYzs; 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 S2392426AbfBMPJq (ORCPT + 99 others); Wed, 13 Feb 2019 10:09:46 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43730 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392409AbfBMPJo (ORCPT ); Wed, 13 Feb 2019 10:09:44 -0500 Received: by mail-ed1-f67.google.com with SMTP id f9so2196317eds.10 for ; Wed, 13 Feb 2019 07:09:43 -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=RXmtNLTc175lxeTH4WR0FnsamrIEb1qNdvropbMnYQY=; b=yD0DRYzsVX92dlSIf/PztkWelRkLDlZHneO9ZtSuNOLLwtVOwihBQ/W9zsPLM+j7nN Cyv+6IIMNc0F+q4CuHWcviDrfZu3nOweZSpQou71w/SJ1PfbyevjcipIZeiTXcKEm+E5 FUd86h5EeMHPgu1nlQTSQLJu+vrxLvis/6qepUk8Z8c7K1A/OYj+GrXCXUMbAr0c6xFL uorDlZUadR8X3Uw5qr+o9hCPeW5VRARVj5Hl36ROoQyrAxasp5qveLwV0hKQjIPRQn4g QH3VPSx4AI08iZ2hBHp5cxpFlAObQ3jl983HsK8nzNmLr/PXjdKFZ42o06TbypBc5DUd CSDQ== 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=RXmtNLTc175lxeTH4WR0FnsamrIEb1qNdvropbMnYQY=; b=rMeQpxkZaLmePMrNb58CfkJLC3u49PpDRNv3hTYr+UC56LICLFOrvtb1SwOQV6OxoT 7mp6kaTyFjjgAicw4x4reHZgJvte9zDa29mKLS4LOrIY16QDA7bSw49XH1UXFQs+wXCY Y4P+PrPGFr1mNW2uTKvy5g4uw+Bzngux8ge9xWABxo9+0VtO0GAZVV31z8E1REPP5/j1 EQQzhThvS7qNfbiQaFNyMriMMdU57z399yt9WaXlk4ZnGSoaJYL31u4md8WAoTdt/KGX QmvLDGv7rzCW1zBF7jzNdLZfeAHVEcVkdCinJ2Y5TUd5G6tIw+MrvMeCFwF3dm/JP7ND tkIw== X-Gm-Message-State: AHQUAuYW2IQzJXl0pSeia9PPvzMn5SJn7HLuiyZQoFFNEBpEWzuzBH52 1nMTbFUClm5kaDcPUQSJRWFUEA== X-Received: by 2002:a50:b902:: with SMTP id m2mr769570ede.108.1550070582788; Wed, 13 Feb 2019 07:09:42 -0800 (PST) Received: from loys-ubuntu-BY1835A49200471.thefacebook.com ([2620:10d:c092:180::1:4505]) by smtp.googlemail.com with ESMTPSA id k26sm1903941ejv.63.2019.02.13.07.09.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 07:09:42 -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 v4 2/4] dt-bindings: gnss: add mediatek binding Date: Wed, 13 Feb 2019 16:09:27 +0100 Message-Id: <1550070569-18588-3-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550070569-18588-1-git-send-email-lollivier@baylibre.com> References: <1550070569-18588-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 --- v4: Use standard names for reset-gpios and gnss-fix-gpios s/an/a UART 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 diff --git a/Documentation/devicetree/bindings/gnss/mediatek.txt b/Documentation/devicetree/bindings/gnss/mediatek.txt new file mode 100644 index 000000000000..12283d429baa --- /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 a 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: + +- current-speed : Default UART baud rate +- gnss-fix-gpios : GPIO used to determine device position fix state + (pin name: FIX, 3D_FIX) +- reset-gpios : GPIO used to reset the device + (pin name: RESET, NRESET) +- timepulse-gpios : Time pulse GPIO (pin name: PPS1, 1PPS) +- v-bckp-supply : Backup voltage regulator + (pin name: VBAT, VBACKUP) + +Example: + +serial@1234 { + compatible = "ns16550a"; + + gnss { + compatible = "globaltop,pa6h"; + vcc-supply = <&vcc_3v3>; + }; +}; -- 2.7.4