hal_stm32/scripts/genpinctrl
Aurelien Jarno 98aca4a5e8 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: Aurelien Jarno <aurelien@aurel32.net>
2021-05-06 13:36:32 -05:00
..
genpinctrl.py scripts/genpinctrl: add STM32WL support 2021-02-16 07:55:31 -06:00
pinctrl-template.j2 scripts: genpinctrl: script for DT pinctrl generation 2020-09-29 09:03:24 -05:00
readme-template.j2 scripts: genpinctrl: use STM32 open pin data 2020-12-03 08:39:09 -06:00
stm32-pinctrl-config.yaml scripts/genpinctrl: use a pull-down for SPI SCK pin 2021-05-06 13:36:32 -05:00
stm32f1-pinctrl-config.yaml scripts: genpinctrl: add support for ethernet pins 2020-10-22 07:46:04 -05:00