Skip to content

Commit 176193b

Browse files
jhovoldgregkh
authored andcommitted
dt-bindings: gnss: add sirfstar binding
Add binding for SiRFstar-based GNSS receivers. Note that while four compatible-strings are initially added representing devices which differ in which I/O interfaces they support, they otherwise essentially share the same feature set. Pin and supply names vary slightly, as do some recommended timings. Note that the wakeup gpio is not intended to be used as a wakeup source, but rather to detect the current power state of the device (active or hibernate). Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1ad69f1 commit 176193b

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
SiRFstar-based GNSS Receiver DT binding
2+
3+
SiRFstar chipsets are used in GNSS-receiver modules produced by several
4+
vendors and can use UART, SPI or I2C interfaces.
5+
6+
Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic
7+
properties.
8+
9+
Required properties:
10+
11+
- compatible : Must be one of
12+
13+
"fastrax,uc430"
14+
"linx,r4"
15+
"wi2wi,w2sg0008i"
16+
"wi2wi,w2sg0084i"
17+
18+
- vcc-supply : Main voltage regulator (pin name: 3V3_IN, VCC, VDD)
19+
20+
Required properties (I2C):
21+
- reg : I2C slave address
22+
23+
Required properties (SPI):
24+
- reg : SPI chip select address
25+
26+
Optional properties:
27+
28+
- sirf,onoff-gpios : GPIO used to power on and off device (pin name: ON_OFF)
29+
- sirf,wakeup-gpios : GPIO used to determine device power state
30+
(pin name: RFPWRUP, WAKEUP)
31+
- timepulse-gpios : Time pulse GPIO (pin name: 1PPS, TM)
32+
33+
Example:
34+
35+
serial@1234 {
36+
compatible = "ns16550a";
37+
38+
gnss {
39+
compatible = "wi2wi,w2sg0084i";
40+
41+
vcc-supply = <&gnss_reg>;
42+
sirf,onoff-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
43+
sirf,wakeup-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
44+
};
45+
};

Documentation/devicetree/bindings/vendor-prefixes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ excito Excito
124124
ezchip EZchip Semiconductor
125125
fairphone Fairphone B.V.
126126
faraday Faraday Technology Corporation
127+
fastrax Fastrax Oy
127128
fcs Fairchild Semiconductor
128129
firefly Firefly
129130
focaltech FocalTech Systems Co.,Ltd
@@ -203,6 +204,7 @@ licheepi Lichee Pi
203204
linaro Linaro Limited
204205
linksys Belkin International, Inc. (Linksys)
205206
linux Linux-specific binding
207+
linx Linx Technologies
206208
lltc Linear Technology Corporation
207209
logicpd Logic PD, Inc.
208210
lsi LSI Corp. (LSI Logic)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- Documentation/devicetree/bindings/vendor-prefixes.txt
2+
+++ Documentation/devicetree/bindings/vendor-prefixes.txt
3+
@@ -395,6 +397,7 @@ vot Vision Optical Technology Co., Ltd.
4+
wd Western Digital Corp.
5+
wetek WeTek Electronics, limited.
6+
wexler Wexler
7+
+wi2wi Wi2Wi, Inc.
8+
winbond Winbond Electronics corp.
9+
winstar Winstar Display Corp.
10+
wlf Wolfson Microelectronics

0 commit comments

Comments
 (0)