From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ARC-Seal: i=1; a=rsa-sha256; t=1524588647; cv=none; d=google.com; s=arc-20160816; b=QUSy6aNkbMkUEj1I88an5ausXpdJB+Db3P8+3tUfrqJoKUFT64jRYSBCz+2tPwp3x9 DCmy+7wK9cuWDP/YGlJi03RDg7fQaMyTu65yeOMSnf7tfU8ff83blGk7M6x2cB5Hvisz rpRxTyjSaMh+/ijX+NxLBWYFt6yYHFSdUvG31LLhygtIQQ6BNtsim8Afl/JcCbRtYGlJ eVrsrO9Rb6Z/UXVuSV/9NwulgNX/UNtlKmJnoizuceMxBGO2ze0WGXLNEqEkuMtjBQup qudfk9nQuQzHI1elWgCpVCv07hHInF4y3llql+0CkMen6ZfcsdPVTUagDwgPpwDyyY5+ QYAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature:arc-authentication-results; bh=jPCElnEO6WdeP6e0BWqx2BusWWz6qbo9aVSrUMzzGuk=; b=gS/VhqY/nJxe+DdMyWpzIaxl2sR5UMOW0mbdiL0T/XbNLK57ux+Lu31ogb00J8Y0Sk hBdRtkhqX0ExvD78lu/H2ec+UcWGkiTTTGzMr6DpTrIL45Ac7rvvLJgNHG+fAgBwAbJN QnoShYq5hKEiCmxUtCKnKElhh0khByLhbSa2hrBYyldFOxMyr9NvN8WUmCplQHiPYfnT V3vUXouNkwdvqLTpuJmptZ0ZIlV36/giGY6RR3H3JMD3w2NSeO7z9ZgHu92l05etsGAC aMfzN3/2YqvU4kYn9UgEgF1rPRlAPN7hLbjUagMsre8FT9y0yC26WjriZQByVbnvYVzh f7zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TeYrvRrq; spf=pass (google.com: domain of jhovold@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jhovold@gmail.com Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TeYrvRrq; spf=pass (google.com: domain of jhovold@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jhovold@gmail.com X-Google-Smtp-Source: AB8JxZoaINgkH2qVu21IgJu9rn0qqS+XTdmVf5wFOj47Zg9OOaLzf5+3OtQNfMBJINvSXj2KRZF7uA== Sender: Johan Hovold From: Johan Hovold To: Greg Kroah-Hartman , Rob Herring , Mark Rutland Cc: Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Johan Hovold Subject: [PATCH 6/7] dt-bindings: gnss: add sirfstar binding Date: Tue, 24 Apr 2018 18:34:57 +0200 Message-Id: <20180424163458.11947-7-johan@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424163458.11947-1-johan@kernel.org> References: <20180424163458.11947-1-johan@kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1598647065272659964?= X-GMAIL-MSGID: =?utf-8?q?1598647065272659964?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: Add binding for SiRFstar-based GNSS receivers. Note that while four compatible-strings are initially added representing devices which differ in which I/O interfaces they support, they otherwise essentially share the same feature set. Pin and supply names (and some recommended timings) vary slightly, but the binding recommends using a common set of names. Note that the wakeup gpio is not intended to be as a wakeup source, but rather to detect the current power state of the device (active or hibernate). Signed-off-by: Johan Hovold --- .../devicetree/bindings/gnss/sirfstar.txt | 38 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 3 ++ 2 files changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/gnss/sirfstar.txt diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.txt b/Documentation/devicetree/bindings/gnss/sirfstar.txt new file mode 100644 index 000000000000..5e6a02aec49a --- /dev/null +++ b/Documentation/devicetree/bindings/gnss/sirfstar.txt @@ -0,0 +1,38 @@ +SiRFstar-based GNSS Receiver DT binding + +SiRFstar 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 + + "fastrax,uc430" + "linx,r4" + "wi2wi,w2sg0008i" + "wi2wi,w2sg0084i" + +- vcc-supply : Main voltage regulator (3V3_IN, VDD, VCC) + +Optional Properties: + +- enable-gpios : GPIO used to power on and off device (ON_OFF) +- wakeup-gpios : GPIO used to determine device power state (WAKEUP, RFPWRUP) +- timepulse-gpios : Timepulse (e.g 1PPS) GPIO (1PPS, TM) + +Example: + +serial@1234 { + compatible = "ns16550a"; + + gnss { + compatible = "wi2wi,w2sg0084i"; + + vcc-supply = <&gnss_reg>; + enable-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + wakeup-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; + }; +}; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 2128dfdf73f1..ddd81c82082d 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -120,6 +120,7 @@ excito Excito ezchip EZchip Semiconductor fairphone Fairphone B.V. faraday Faraday Technology Corporation +fastrax Fastrax Oy fcs Fairchild Semiconductor firefly Firefly focaltech FocalTech Systems Co.,Ltd @@ -197,6 +198,7 @@ licheepi Lichee Pi linaro Linaro Limited linksys Belkin International, Inc. (Linksys) linux Linux-specific binding +linx Linx Technologies lltc Linear Technology Corporation lsi LSI Corp. (LSI Logic) lwn Liebherr-Werk Nenzing GmbH @@ -390,6 +392,7 @@ vivante Vivante Corporation vocore VoCore Studio voipac Voipac Technologies s.r.o. vot Vision Optical Technology Co., Ltd. +wi2wi Wi2Wi wd Western Digital Corp. wetek WeTek Electronics, limited. wexler Wexler -- 2.17.0