Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. (cherry picked from commit cba339a) Original-Signed-off-by: Michael R Rosen <mrrosen@alumni.cmu.edu> GitOrigin-RevId: cba339a Cr-Build-Id: 8737823252869148017 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8737823252869148017 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I03020ef917893acbbb5040dbb50aac3ebf8c3a92 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5833708 Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Reviewed-by: Yuval Peress <peress@google.com> Commit-Queue: Yuval Peress <peress@google.com> Tested-by: Yuval Peress <peress@google.com>
- Loading branch information