ARM: dts: stm32: add heartbeat led for stm32mp157c-ed1
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 26 Mar 2024 07:54:38 +0000 (08:54 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 25 Apr 2024 13:00:29 +0000 (15:00 +0200)
Add heartbeat led for stm32mp157c-ed1.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp157c-ed1.dts

index 66ed5f9921ba14d96c5dcc2cc6f4c53cce3f54c9..9cf5ed111b52e167c678ddd5f429cac1b7162ce2 100644 (file)
@@ -10,6 +10,7 @@
 #include "stm32mp15-pinctrl.dtsi"
 #include "stm32mp15xxaa-pinctrl.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mfd/st,stpmic1.h>
 
 / {
                };
        };
 
+       led {
+               compatible = "gpio-leds";
+               led-blue {
+                       gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+                       default-state = "off";
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_BLUE>;
+               };
+       };
+
        sd_switch: regulator-sd_switch {
                compatible = "regulator-gpio";
                regulator-name = "sd_switch";