xref: /freebsd-src/sys/contrib/device-tree/Bindings/gnss/mediatek.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2d5b0e70fSEmmanuel Vadot%YAML 1.2
3d5b0e70fSEmmanuel Vadot---
4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/gnss/mediatek.yaml#
5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6d5b0e70fSEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Mediatek GNSS Receiver
8d5b0e70fSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadotmaintainers:
10d5b0e70fSEmmanuel Vadot  - Johan Hovold <johan@kernel.org>
11d5b0e70fSEmmanuel Vadot
12d5b0e70fSEmmanuel Vadotdescription:
13d5b0e70fSEmmanuel Vadot  Mediatek chipsets are used in GNSS-receiver modules produced by several
14d5b0e70fSEmmanuel Vadot  vendors and can use a UART interface.
15d5b0e70fSEmmanuel Vadot
16d5b0e70fSEmmanuel VadotallOf:
17d5b0e70fSEmmanuel Vadot  - $ref: gnss-common.yaml#
18*b2d2a78aSEmmanuel Vadot  - $ref: /schemas/serial/serial-peripheral-props.yaml#
19d5b0e70fSEmmanuel Vadot
20d5b0e70fSEmmanuel Vadotproperties:
21d5b0e70fSEmmanuel Vadot  compatible:
22d5b0e70fSEmmanuel Vadot    const: globaltop,pa6h
23d5b0e70fSEmmanuel Vadot
24d5b0e70fSEmmanuel Vadot  vcc-supply:
25d5b0e70fSEmmanuel Vadot    description:
26d5b0e70fSEmmanuel Vadot      Main voltage regulator, pin name VCC.
27d5b0e70fSEmmanuel Vadot
28d5b0e70fSEmmanuel Vadot  reset-gpios:
29d5b0e70fSEmmanuel Vadot    maxItems: 1
30d5b0e70fSEmmanuel Vadot    description: An optional reset line, with names such as RESET or NRESET.
31d5b0e70fSEmmanuel Vadot      If the line is active low it should be flagged with GPIO_ACTIVE_LOW.
32d5b0e70fSEmmanuel Vadot
33d5b0e70fSEmmanuel Vadot  timepulse-gpios:
34d5b0e70fSEmmanuel Vadot    description: Comes with pin names such as PPS1 or 1PPS.
35d5b0e70fSEmmanuel Vadot
36d5b0e70fSEmmanuel Vadot  gnss-fix-gpios:
37d5b0e70fSEmmanuel Vadot    maxItems: 1
38d5b0e70fSEmmanuel Vadot    description: GPIO used to determine device position fix state, pin names
39d5b0e70fSEmmanuel Vadot      FIX or 3D_FIX.
40d5b0e70fSEmmanuel Vadot
41d5b0e70fSEmmanuel Vadot  vbackup-supply:
42d5b0e70fSEmmanuel Vadot    description:
43d5b0e70fSEmmanuel Vadot      Regulator providing backup voltage, pin names such as VBAT or VBACKUP.
44d5b0e70fSEmmanuel Vadot
45d5b0e70fSEmmanuel Vadotrequired:
46d5b0e70fSEmmanuel Vadot  - compatible
47d5b0e70fSEmmanuel Vadot  - vcc-supply
48d5b0e70fSEmmanuel Vadot
49d5b0e70fSEmmanuel VadotunevaluatedProperties: false
50d5b0e70fSEmmanuel Vadot
51d5b0e70fSEmmanuel Vadotexamples:
52d5b0e70fSEmmanuel Vadot  - |
53d5b0e70fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
54d5b0e70fSEmmanuel Vadot    serial {
55d5b0e70fSEmmanuel Vadot        gnss {
56d5b0e70fSEmmanuel Vadot            compatible = "globaltop,pa6h";
57d5b0e70fSEmmanuel Vadot            vcc-supply = <&vcc_3v3>;
58d5b0e70fSEmmanuel Vadot            reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
59d5b0e70fSEmmanuel Vadot        };
60d5b0e70fSEmmanuel Vadot    };
61