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