From c67f17de0e9bf9e7d5fcb2cd2ffcdbc9f9c106bf Mon Sep 17 00:00:00 2001 From: Roudy Dagher Date: Fri, 21 Mar 2025 08:56:38 +0000 Subject: [PATCH] boards: st: nucleo_l152re: fix LED polarity in device tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix incorrectly defined LED polarity (GPIO_ACTIVE_LOW → GPIO_ACTIVE_HIGH) to match hardware schematic and ensure consistent GPIO API behavior. Fixes: #87424 Link: https://www.st.com/en/evaluation-tools/nucleo-l152re.html#cad-resources Signed-off-by: Roudy Dagher --- boards/st/nucleo_l152re/nucleo_l152re.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/st/nucleo_l152re/nucleo_l152re.dts b/boards/st/nucleo_l152re/nucleo_l152re.dts index d1278873fd8..2d2e048e70d 100644 --- a/boards/st/nucleo_l152re/nucleo_l152re.dts +++ b/boards/st/nucleo_l152re/nucleo_l152re.dts @@ -25,7 +25,7 @@ leds: leds { compatible = "gpio-leds"; green_led_0: led_0 { - gpios = <&gpioa 5 GPIO_ACTIVE_LOW>; + gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>; label = "User LD2"; }; };