-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BACKPORT: gnss: add receiver type support
Add a "type" device attribute and a "GNSS_TYPE" uevent variable which can be used to determine the type of a GNSS receiver. The currently identified types reflect the protocol(s) supported by a receiver: "NMEA" NMEA 0183 "SiRF" SiRF Binary "UBX" UBX Note that both SiRF and UBX type receivers typically support a subset of NMEA 0183 with vendor extensions (e.g. to allow switching to the vendor protocol). Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit 10f146639fee5ffaf7cf0081c1af518f7d0c533c) [adelva: dropped changes to drivers that were not backported] Bug: 146062677 Change-Id: Id272aaa9aa59df41d5d94014edc835f242e719a6 Signed-off-by: Alistair Delva <[email protected]>
- Loading branch information
1 parent
5c4bdeb
commit 38361f5
Showing
4 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
What: /sys/class/gnss/gnssN/type | ||
Date: May 2018 | ||
KernelVersion: 4.18 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
The GNSS receiver type. The currently identified types reflect | ||
the protocol(s) supported by the receiver: | ||
|
||
"NMEA" NMEA 0183 | ||
"SiRF" SiRF Binary | ||
"UBX" UBX | ||
|
||
Note that also non-"NMEA" type receivers typically support a | ||
subset of NMEA 0183 with vendor extensions (e.g. to allow | ||
switching to a vendor protocol). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5850,6 +5850,7 @@ F: include/uapi/linux/gigaset_dev.h | |
GNSS SUBSYSTEM | ||
M: Johan Hovold <[email protected]> | ||
S: Maintained | ||
F: Documentation/ABI/testing/sysfs-class-gnss | ||
F: Documentation/devicetree/bindings/gnss/ | ||
F: drivers/gnss/ | ||
F: include/linux/gnss.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters