From 39e472ffba5b43ca6aead63af65ed4f4ed278b17 Mon Sep 17 00:00:00 2001 From: Abderrahmane Jarmouni Date: Thu, 16 May 2024 14:33:31 +0200 Subject: [PATCH] include: drivers: gpio: fix gpio_dt_flags_t overflow when GPIO_INT_WAKEUP flag is used in a DT gpios property the gpio_dt_flags_t var that holds the flags overflows Hence moving GPIO_INT_WAKEUP flag from bit 28 to bit 6 Signed-off-by: Abderrahmane Jarmouni --- include/zephyr/dt-bindings/gpio/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zephyr/dt-bindings/gpio/gpio.h b/include/zephyr/dt-bindings/gpio/gpio.h index b4110208b3f..d485e609f12 100644 --- a/include/zephyr/dt-bindings/gpio/gpio.h +++ b/include/zephyr/dt-bindings/gpio/gpio.h @@ -79,12 +79,12 @@ /** @} */ -/* Note: Bits 15 downto 8 are reserved for SoC specific flags. */ - /** * Configures GPIO interrupt to wakeup the system from low power mode. */ -#define GPIO_INT_WAKEUP (1 << 28) +#define GPIO_INT_WAKEUP (1 << 6) + +/* Note: Bits 15 downto 8 are reserved for SoC specific flags. */ /** * @}