Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp327950imm; Fri, 1 Jun 2018 01:25:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLFmUgLKCh/egn65N9jV1G0KPgpw/mePjH8Ps9VgI7mEXIlKNN9f+lEXP90lCBxNhwQ59E+ X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr10008228pfh.256.1527841524455; Fri, 01 Jun 2018 01:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527841524; cv=none; d=google.com; s=arc-20160816; b=i1J4P5xVXpM5JTJ4kP1a6na1m2x6IwoWYhPIG+MBmZ4zoJg6M0WNNzxZ4desuvHJlT BR/foN0nIwT9sJvCUPtOnU08heZ0P0a3AecvHIll5P0QyY2Cyzep2xNyn5baDZeBs33u lkvwIJxGp44QQewSxt/JYT5j1nM9skVZCOr+mU91xLVLW3h/N4jFJhzxVYjKRjl8X4aY T1RUZ0B2P/8s797BbP1gnKxOOOr/PyWypcFajC9GRyvoGKut9R7ZUDWG/rT5CvE+0qq1 kG76QafIUi7cwg5j5glVbhudZ13lj1E3sZu++rREaWQQesqT3n/Kgj3O4kAcYTrcQ51N 1sxg== 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:arc-authentication-results; bh=j1AztNWHwAG7IyT31+Hy/5Kccg56FDo3Vc0bE6lIQ4A=; b=JBU4Focz9YZ2g+rC1gw4J/Lq5vzxr++ECemdOKjYSHrUxPhtRskTecf985JNDi5tQi a0T4cDH7X+EN2MPdDA33HXTJrg4okFr2WoKt+P1nGfxhXqjO6T2AzjJcSNxmnIVD2SVE 8l/TSg6uf9r6gF/Y/g0Gf2x6dpMVqKURw+v9diOV3rFiyQPfCV10rF1+yPGcnRGG+uyL pW+HqJv7TwnX7BGwQCRd+5C9fk95CYaHw24zyQ587LM6udWZmJFq4F41f/wDtPvNKNsY j+8k8uF6D1F4KUaXDZZSKFR6qKS/hIxqyCcdPXm7GIQeTRex2zPyozYLWHB9sH74X/e9 mHwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=s42da14B; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2-v6si37312073pff.184.2018.06.01.01.25.10; Fri, 01 Jun 2018 01:25:24 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=s42da14B; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbeFAIYM (ORCPT + 99 others); Fri, 1 Jun 2018 04:24:12 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46958 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbeFAIX2 (ORCPT ); Fri, 1 Jun 2018 04:23:28 -0400 Received: by mail-lf0-f66.google.com with SMTP id j13-v6so9153534lfb.13; Fri, 01 Jun 2018 01:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=j1AztNWHwAG7IyT31+Hy/5Kccg56FDo3Vc0bE6lIQ4A=; b=s42da14BMg4touryKsKrufRGZ4Ew+Yx37skZHWQZJUG92/gjwYNnoh3Fvt/p96o9HN /bVDAb3Wb+L9G6cx00xmM9JmAGDMmCIHjWaIRG3/ZboFhoSUvYSswfU3AsxhNqg6gS0A tmSZBihGVaYxpk1SctgUZQvVVa94OTmEeEY0oTYRT/R9a9huZPvA98S1y3oJp04051pn DgJttYFovajXfzFl0t+kx9/08+35yf7B/U7zAssS46WkIDhwMtDtNIoprlS6PEcYPZHU I74ahdMh9NbB3Ubug4tiXwe4nBrXNXjLmy7lnnoR1KinglRCsE51M9MBlSFMQlpSczA+ 87VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=j1AztNWHwAG7IyT31+Hy/5Kccg56FDo3Vc0bE6lIQ4A=; b=DQGMCYcZsxXqc3ETn63uFg8iPIZNKEB89y5xYvZ9Thd3FKhtO14U41SAwd/2XdSBxh 064Rwga5xbgE4tKCB2+QYp69QmaObxo54Ew0gnd7XZ6O431rKLlvJ02BFIpMuVpGcdl4 68qk7Ww0eIvgFx3iqk0/5kUELi8wqXTPtNxWZQrUyl/StPidVV0yha9kaWkZDiSuSXSW rR8ATAEp+j1EECzZ2FlLYAvHwF6E1knr62437oS3ISofQJREzxDxvNgpay5uAi5tTC0f rvMGEj/SOA2hfasH1u67snqxNtVmH1l6Dmn76kuwI1mUYPqp7YzR6MmSE2iQPMzf/v3T oCBg== X-Gm-Message-State: ALKqPwemtKwH/vObXxB5pOIo+9+hee+2B8/eM0DKi/gn+orelAlFBFIC g3npdrwtdVanH0dT8M3BxV0= X-Received: by 2002:a19:e497:: with SMTP id x23-v6mr6014751lfi.40.1527841406913; Fri, 01 Jun 2018 01:23:26 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id q84-v6sm815526lja.50.2018.06.01.01.23.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 01:23:24 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fOfLB-0004aa-Ut; Fri, 01 Jun 2018 10:23:17 +0200 From: Johan Hovold To: Greg Kroah-Hartman , Rob Herring , Mark Rutland Cc: Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , Marcel Holtmann , Sebastian Reichel , Tony Lindgren , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Johan Hovold Subject: [PATCH v3 6/8] dt-bindings: gnss: add sirfstar binding Date: Fri, 1 Jun 2018 10:22:57 +0200 Message-Id: <20180601082259.17563-7-johan@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180601082259.17563-1-johan@kernel.org> References: <20180601082259.17563-1-johan@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 vary slightly, as do some recommended timings. Note that the wakeup gpio is not intended to be used as a wakeup source, but rather to detect the current power state of the device (active or hibernate). Reviewed-by: Rob Herring Signed-off-by: Johan Hovold --- .../devicetree/bindings/gnss/sirfstar.txt | 45 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 3 ++ 2 files changed, 48 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..648d183cdb77 --- /dev/null +++ b/Documentation/devicetree/bindings/gnss/sirfstar.txt @@ -0,0 +1,45 @@ +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 (pin name: 3V3_IN, VCC, VDD) + +Required properties (I2C): +- reg : I2C slave address + +Required properties (SPI): +- reg : SPI chip select address + +Optional properties: + +- sirf,onoff-gpios : GPIO used to power on and off device (pin name: ON_OFF) +- sirf,wakeup-gpios : GPIO used to determine device power state + (pin name: RFPWRUP, WAKEUP) +- timepulse-gpios : Time pulse GPIO (pin name: 1PPS, TM) + +Example: + +serial@1234 { + compatible = "ns16550a"; + + gnss { + compatible = "wi2wi,w2sg0084i"; + + vcc-supply = <&gnss_reg>; + sirf,onoff-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + sirf,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..61db9d2391c4 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 @@ -393,6 +395,7 @@ vot Vision Optical Technology Co., Ltd. wd Western Digital Corp. wetek WeTek Electronics, limited. wexler Wexler +wi2wi Wi2Wi, Inc. winbond Winbond Electronics corp. winstar Winstar Display Corp. wlf Wolfson Microelectronics -- 2.17.1