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