Skip to content
Commit cba339a6 authored by Michael R Rosen's avatar Michael R Rosen Committed by Carles Cufí
Browse files

dts: arm: st: correct npgios for all stm32 gpio controllers



For almost all STM32 GPIO controllers, the number of supported GPIO
pins managed by a single controller is 16 (with some exceptions for
fewer). However, the default for ngpios in the device tree bindings
for gpio-controllers is 32; leading to inaccuracies in handling GPIO
for these controllers, such as presenting too many GPIOs in the GPIO
shell. This patch redefines the default for ngpios for "st,stm32-gpio"
compatible devices to 16 and adds the correct ngpios for the few
exceptions Zephyr current supports.

Signed-off-by: default avatarMichael R Rosen <mrrosen@alumni.cmu.edu>
parent 0e4e7628
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment