0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gnss/gnss-common.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Common Properties for Global Navigation Satellite Systems (GNSS)
0008 receiver devices
0009
0010 maintainers:
0011 - Johan Hovold <johan@kernel.org>
0012
0013 description: |
0014 This document defines device tree properties common to Global Navigation
0015 Satellite System receivers.
0016
0017 properties:
0018 $nodename:
0019 pattern: "^gnss(@.*)?$"
0020
0021 lna-supply:
0022 description: A separate regulator supplying power for the Low Noise
0023 Amplifier (LNA). This is an amplifier connected between the GNSS
0024 device and the receiver antenna.
0025
0026 enable-gpios:
0027 description: A GPIO line that will enable the GNSS receiver when
0028 asserted. If this line is active low, the GPIO phandle should
0029 consequently be tagged with the GPIO_ACTIVE_LOW flag so the operating
0030 system can rely on asserting the line to enable the GNSS device.
0031 maxItems: 1
0032
0033 timepulse-gpios:
0034 description: When a timepulse is provided to the GNSS device using a
0035 GPIO line, this is used.
0036 maxItems: 1
0037
0038 current-speed:
0039 description: The baudrate in bits per second of the device as it comes
0040 online, current active speed.
0041 $ref: /schemas/types.yaml#/definitions/uint32
0042
0043 additionalProperties: true
0044
0045 examples:
0046 - |
0047 #include <dt-bindings/gpio/gpio.h>
0048 serial {
0049 gnss {
0050 compatible = "u-blox,neo-8";
0051 vcc-supply = <&gnss_reg>;
0052 timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
0053 current-speed = <4800>;
0054 };
0055 };