xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gnss/gnss.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunGNSS Receiver DT binding
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis documents the binding structure and common properties for GNSS receiver
4*4882a593Smuzhiyundevices.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunA GNSS receiver node is a node named "gnss" and typically resides on a serial
7*4882a593Smuzhiyunbus (e.g. UART, I2C or SPI).
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunPlease refer to the following documents for generic properties:
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun	Documentation/devicetree/bindings/serial/serial.yaml
12*4882a593Smuzhiyun	Documentation/devicetree/bindings/spi/spi-bus.txt
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunRequired properties:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun- compatible	: A string reflecting the vendor and specific device the node
17*4882a593Smuzhiyun		  represents
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunOptional properties:
20*4882a593Smuzhiyun- lna-supply	: Separate supply for an LNA
21*4882a593Smuzhiyun- enable-gpios	: GPIO used to enable the device
22*4882a593Smuzhiyun- timepulse-gpios	: Time pulse GPIO
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunExample:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunserial@1234 {
27*4882a593Smuzhiyun	compatible = "ns16550a";
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	gnss {
30*4882a593Smuzhiyun		compatible = "u-blox,neo-8";
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun		vcc-supply = <&gnss_reg>;
33*4882a593Smuzhiyun		timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun		current-speed = <4800>;
36*4882a593Smuzhiyun	};
37*4882a593Smuzhiyun};
38