]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gnss: ubx: add support for the safeboot gpio
authorAlejandro Enrique <alejandroe1@geotab.com>
Wed, 14 May 2025 13:54:42 +0000 (15:54 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 20 Nov 2025 15:44:04 +0000 (16:44 +0100)
commit955cd0545b6abcefd297832e38f90f6851fc2ada
tree726b3da9c1230d592e86ee1c2fb6d6cdc19967b2
parent0fc1b4b6fda8f64385f3932984cf2f651c735eb3
gnss: ubx: add support for the safeboot gpio

U-Blox M8/M9 chip have a pin to start it in safeboot mode, to be used
to recover from situations where the flash content has become
corrupted and needs to be restored. If this pin is asserted at power
up/reset, the receiver starts in safeboot mode and GNSS operation is
disabled.

Deassert the safeboot pin when probing this driver.

Signed-off-by: Alejandro Enrique <alejandroe1@geotab.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250911-ubx-safeboot-v3-2-32fe6b882a3c@geotab.com
[ johan: deassert after requesting supplies ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/ubx.c