From patchwork Fri Jun 1 08:22:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 923878 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ENyi3fOP"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40xy7Z2ngmz9s1w for ; Fri, 1 Jun 2018 18:25:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753AbeFAIZM (ORCPT ); Fri, 1 Jun 2018 04:25:12 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33174 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbeFAIX0 (ORCPT ); Fri, 1 Jun 2018 04:23:26 -0400 Received: by mail-lf0-f66.google.com with SMTP id y20-v6so13596083lfy.0; Fri, 01 Jun 2018 01:23:25 -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=fMzSYU6t8dsUzjM5ccfQMmCr3ClhmxuRgslcOPIgYBs=; b=ENyi3fOPtHHixlONT6Ns8FhLYsIKyKzvXhqiOtIZaq6DDMKQAPmgfGcsEoY+R2LoD5 lIFOMmyZSM6l0R+mTXLFkA5P5RK0Z1VNo6LqjmEZia2M4IdbecCeOKM3/Zu7f7Gs2rXv WUrIkab4stOyjV9y46sUrjh84JTdI7hGQ1L9iP8jzVoPeXCmJdfquqHcUxokfKlG4oqQ ySGWac/vpBvvqsDnfFSaHWlEpajezzS7UXAs/DxDC3i3wG2/3VdWv7WXJ4WpdpQ5brbF azIM5F0T4F9g/5ytzTPA+k/Nbt1GSsNuocc37h0AQ0xnp5APfpge3yYSFM9o6Z/q1xGm c/XA== 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=fMzSYU6t8dsUzjM5ccfQMmCr3ClhmxuRgslcOPIgYBs=; b=k0ozFSQuz6Nb/GZGZ8hnwDKc/Vv4oXtVbU4QQhIePk8x00sGd9Ls48Xp2n30GLyec2 qHlfQjsrR3WboW6fM5rmYX+VJtNvJ+vGPLFkB07VglhyaSe2DrRi7oMdCjz9dg1+rsMB t6gWIpIyhxnKzNp10UW/gf2vCAsy8+iWPlU4V2VAq1Vb0/HFeaRAZ6iJvE05Kqfnxf3/ O+ojwnBYo7t3Z4v7u1UlZaNaZ2UX1pQITQotyvhCzIuH1fIXE7v00PXmrW7grmE052Xc vMrqseMN3Kh+Y/wXmYWZrpbTMMh4PrC0n+QuifK7hEW2yLlNwfLzvCyTtQTiNNP1EOcN QjzQ== X-Gm-Message-State: ALKqPwebCBIOoOOYv0oQJ7VbH5dai8lSTdCSxaGglijWO+uYiRdjjEeP IsQTzri9KDlxobAkMe8Yq6IWD5Ma X-Google-Smtp-Source: ADUXVKJf0352wXvag0GPVH6zDG2offojF9Oz+mkeKnzM7+TM+NEVHu1Pkh8woqszWE+21yDmZtNtMA== X-Received: by 2002:a19:cb96:: with SMTP id b144-v6mr6125977lfg.72.1527841404750; Fri, 01 Jun 2018 01:23:24 -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 e65-v6sm206525lff.13.2018.06.01.01.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 01:23:23 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fOfLB-0004aF-IN; 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 2/8] dt-bindings: add generic gnss binding Date: Fri, 1 Jun 2018 10:22:53 +0200 Message-Id: <20180601082259.17563-3-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Describe generic properties for GNSS receivers. Reviewed-by: Rob Herring Signed-off-by: Johan Hovold --- .../devicetree/bindings/gnss/gnss.txt | 36 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/gnss/gnss.txt diff --git a/Documentation/devicetree/bindings/gnss/gnss.txt b/Documentation/devicetree/bindings/gnss/gnss.txt new file mode 100644 index 000000000000..f1e4a2ff47c5 --- /dev/null +++ b/Documentation/devicetree/bindings/gnss/gnss.txt @@ -0,0 +1,36 @@ +GNSS Receiver DT binding + +This documents the binding structure and common properties for GNSS receiver +devices. + +A GNSS receiver node is a node named "gnss" and typically resides on a serial +bus (e.g. UART, I2C or SPI). + +Please refer to the following documents for generic properties: + + Documentation/devicetree/bindings/serial/slave-device.txt + Documentation/devicetree/bindings/spi/spi-bus.txt + +Required properties: + +- compatible : A string reflecting the vendor and specific device the node + represents + +Optional properties: +- enable-gpios : GPIO used to enable the device +- timepulse-gpios : Time pulse GPIO + +Example: + +serial@1234 { + compatible = "ns16550a"; + + gnss { + compatible = "u-blox,neo-8"; + + vcc-supply = <&gnss_reg>; + timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + + current-speed = <4800>; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index dc3df211c1a7..fa219e80a1f8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5965,6 +5965,7 @@ F: include/uapi/linux/gigaset_dev.h GNSS SUBSYSTEM M: Johan Hovold S: Maintained +F: Documentation/devicetree/bindings/gnss/ F: drivers/gnss/ F: include/linux/gnss.h