xref: /freebsd/sys/contrib/device-tree/Bindings/gnss/gnss-common.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c9ccf3a3SEmmanuel Vadot%YAML 1.2
3*c9ccf3a3SEmmanuel Vadot---
4*c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/gnss/gnss-common.yaml#
5*c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c9ccf3a3SEmmanuel Vadot
7*c9ccf3a3SEmmanuel Vadottitle: Common Properties for Global Navigation Satellite Systems (GNSS)
8*c9ccf3a3SEmmanuel Vadot  receiver devices
9*c9ccf3a3SEmmanuel Vadot
10*c9ccf3a3SEmmanuel Vadotmaintainers:
11*c9ccf3a3SEmmanuel Vadot  - Johan Hovold <johan@kernel.org>
12*c9ccf3a3SEmmanuel Vadot
13*c9ccf3a3SEmmanuel Vadotdescription: |
14*c9ccf3a3SEmmanuel Vadot  This document defines device tree properties common to Global Navigation
15*c9ccf3a3SEmmanuel Vadot  Satellite System receivers.
16*c9ccf3a3SEmmanuel Vadot
17*c9ccf3a3SEmmanuel Vadotproperties:
18*c9ccf3a3SEmmanuel Vadot  $nodename:
19*c9ccf3a3SEmmanuel Vadot    pattern: "^gnss(@.*)?$"
20*c9ccf3a3SEmmanuel Vadot
21*c9ccf3a3SEmmanuel Vadot  lna-supply:
22*c9ccf3a3SEmmanuel Vadot    description: A separate regulator supplying power for the Low Noise
23*c9ccf3a3SEmmanuel Vadot      Amplifier (LNA). This is an amplifier connected between the GNSS
24*c9ccf3a3SEmmanuel Vadot      device and the receiver antenna.
25*c9ccf3a3SEmmanuel Vadot
26*c9ccf3a3SEmmanuel Vadot  enable-gpios:
27*c9ccf3a3SEmmanuel Vadot    description: A GPIO line that will enable the GNSS receiver when
28*c9ccf3a3SEmmanuel Vadot      asserted. If this line is active low, the GPIO phandle should
29*c9ccf3a3SEmmanuel Vadot      consequently be tagged with the GPIO_ACTIVE_LOW flag so the operating
30*c9ccf3a3SEmmanuel Vadot      system can rely on asserting the line to enable the GNSS device.
31*c9ccf3a3SEmmanuel Vadot    maxItems: 1
32*c9ccf3a3SEmmanuel Vadot
33*c9ccf3a3SEmmanuel Vadot  timepulse-gpios:
34*c9ccf3a3SEmmanuel Vadot    description: When a timepulse is provided to the GNSS device using a
35*c9ccf3a3SEmmanuel Vadot      GPIO line, this is used.
36*c9ccf3a3SEmmanuel Vadot    maxItems: 1
37*c9ccf3a3SEmmanuel Vadot
38*c9ccf3a3SEmmanuel VadotadditionalProperties: true
39*c9ccf3a3SEmmanuel Vadot
40*c9ccf3a3SEmmanuel Vadotexamples:
41*c9ccf3a3SEmmanuel Vadot  - |
42*c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
43*c9ccf3a3SEmmanuel Vadot    serial {
44*c9ccf3a3SEmmanuel Vadot      gnss {
45*c9ccf3a3SEmmanuel Vadot        compatible = "u-blox,neo-8";
46*c9ccf3a3SEmmanuel Vadot        vcc-supply = <&gnss_reg>;
47*c9ccf3a3SEmmanuel Vadot        timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
48*c9ccf3a3SEmmanuel Vadot        current-speed = <4800>;
49*c9ccf3a3SEmmanuel Vadot      };
50*c9ccf3a3SEmmanuel Vadot    };
51