gnss: add driver for mediatek receivers
authorLoys Ollivier <lollivier@baylibre.com>
Wed, 13 Feb 2019 15:09:29 +0000 (16:09 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 15 Feb 2019 15:54:38 +0000 (16:54 +0100)
commitd4584bbfcf2a8f5b6605be9eba465bba59ce68c8
tree9daa1ff36cd537850fd7a910135849a84851ce6b
parent625239d4ad43590f6639737ee900884f7d801411
gnss: add driver for mediatek receivers

Add driver for serial-connected Mediatek-based GNSS receivers.

These devices typically boot transmitting vendor specific NMEA output
sequences. The serial port bit rate is read from the device tree
"current-speed".

Note that the driver uses the generic GNSS serial implementation and
therefore essentially only manages power abstracted into three power
states: ACTIVE, STANDBY, and OFF.

For mediatek receivers with a main supply and no enable-gpios, this simply
means that the main supply is disabled in STANDBY and OFF (the optional
backup supply is kept enabled while the driver is bound).

Note that the timepulse-support is left unimplemented.

Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
[ johan: rename backup supply ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/Kconfig
drivers/gnss/Makefile
drivers/gnss/mtk.c [new file with mode: 0644]