^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) GNSS Receiver DT binding
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) This documents the binding structure and common properties for GNSS receiver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) A GNSS receiver node is a node named "gnss" and typically resides on a serial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) bus (e.g. UART, I2C or SPI).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Please refer to the following documents for generic properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Documentation/devicetree/bindings/serial/serial.yaml
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Documentation/devicetree/bindings/spi/spi-bus.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - compatible : A string reflecting the vendor and specific device the node
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) represents
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - lna-supply : Separate supply for an LNA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - enable-gpios : GPIO used to enable the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - timepulse-gpios : Time pulse GPIO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) serial@1234 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) compatible = "ns16550a";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) gnss {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) compatible = "u-blox,neo-8";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) vcc-supply = <&gnss_reg>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) current-speed = <4800>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };