Skip to content
Commit 98aca4a5 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Kumar Gala
Browse files

scripts/genpinctrl: use a pull-down for SPI SCK pin



When an STM32 SoC goes into STOP mode, the SPI device is disabled. This
cause the pins to not be drived anymore (i.e. they are floating) except
through their pull-up or pull-down.

From the logical point of view, the NSS pin is held high by a pull-up so
it's not a problem if the other pins are floating.  However those pins
are floating input for the slaves, which increase their power
consumption.

The solution is to hold the state of the pins through a pull-up or a
pull-down. This is already done for the NSS and MOSI pins, but not for
SCK. Fix that by using pull-down on the SCK pin the same way it is
already done for the MOSI pin.

(For the STM32L4 series, this is a regression introduced by the switch
to the device tree bindings for SPI pins configuration, see
zephyr #24097).

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 68bfdabe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment