zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.48k stars 6.41k forks source link

gpio: add gpio-reserved-ranges support for drivers/gpio/gpio_stm32.c and drivers/gpio/gpio_npcx.c #57038

Open avolkov-1221 opened 1 year ago

avolkov-1221 commented 1 year ago

Hello,

Both drivers/gpio/gpio_stm32.c and drivers/gpio/gpio_npcx.c drivers are based on the gpio-controller DT structure, however since they use the raw GPIO_PORT_PIN_MASK_FROM_NGPIOS macro, they lack of "gpio-reserved-ranges" property support.

This enhancement has been added in the PR https://github.com/zephyrproject-rtos/zephyr/pull/56295

erwango commented 11 months ago

@avolkov-1221 Can you elaborate on why this should be updated ? I don't see GPIO_PORT_PIN_MASK_FROM_NGPIOS being deprecated or any benefit to implement this change atm