1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gnss/sirfstar.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: SiRFstar GNSS Receiver Device Tree Bindings
8
9maintainers:
10  - Johan Hovold <johan@kernel.org>
11
12description:
13  The SiRFstar GNSS receivers have incarnated over the years in different
14  chips, starting from the SiRFstarIII which was a chip that was introduced in
15  2004 and used in a lot of dedicated GPS devices. In 2009 SiRF was acquired
16  by CSR (Cambridge Silicon Radio) and in 2012 the CSR GPS business was
17  acquired by Samsung, while some products remained with CSR. In 2014 CSR
18  was acquired by Qualcomm who still sell some of the SiRF products.
19
20  SiRF chips can be used over UART, I2C or SPI buses.
21
22allOf:
23  - $ref: gnss-common.yaml#
24
25properties:
26  compatible:
27    enum:
28      - fastrax,uc430
29      - linx,r4
30      - wi2wi,w2sg0004
31      - wi2wi,w2sg0008i
32      - wi2wi,w2sg0084i
33
34  reg:
35    description:
36      The I2C Address, SPI chip select address. Not required on UART buses.
37
38  vcc-supply:
39    description:
40      Main voltage regulator, pin names such as 3V3_IN, VCC, VDD.
41
42  sirf,onoff-gpios:
43    maxItems: 1
44    description: GPIO used to power on and off device, pin name ON_OFF.
45
46  sirf,wakeup-gpios:
47    maxItems: 1
48    description: GPIO used to determine device power state, pin names such
49      as RFPWRUP, WAKEUP.
50
51required:
52  - compatible
53  - vcc-supply
54
55unevaluatedProperties: false
56
57examples:
58  - |
59    #include <dt-bindings/gpio/gpio.h>
60    serial {
61        gnss {
62            compatible = "wi2wi,w2sg0084i";
63            vcc-supply = <&gnss_vcc_reg>;
64            sirf,onoff-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
65            sirf,wakeup-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
66            current-speed = <38400>;
67        };
68    };
69