dt-bindings: add generic gnss binding
authorJohan Hovold <johan@kernel.org>
Fri, 1 Jun 2018 08:22:53 +0000 (10:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 11:31:32 +0000 (20:31 +0900)
Describe generic properties for GNSS receivers.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/gnss/gnss.txt [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/gnss/gnss.txt b/Documentation/devicetree/bindings/gnss/gnss.txt
new file mode 100644 (file)
index 0000000..f1e4a2f
--- /dev/null
@@ -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>;
+       };
+};
index 436e6dc..f980c61 100644 (file)
@@ -6041,6 +6041,7 @@ F:        include/uapi/linux/gigaset_dev.h
 GNSS SUBSYSTEM
 M:     Johan Hovold <johan@kernel.org>
 S:     Maintained
+F:     Documentation/devicetree/bindings/gnss/
 F:     drivers/gnss/
 F:     include/linux/gnss.h