[PATCH v1 06/12] ARM: dts: stm32mp157a-dk1: enable heartbeat and error LEDs

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Jun 17 08:07:45 PDT 2019


Now that we have GPIO support, add the red LED to the barebox
device tree and override the blue one's default state.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/dts/stm32mp157a-dk1.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/dts/stm32mp157a-dk1.dtsi b/arch/arm/dts/stm32mp157a-dk1.dtsi
index 8cc70129b215..cd3d614d4623 100644
--- a/arch/arm/dts/stm32mp157a-dk1.dtsi
+++ b/arch/arm/dts/stm32mp157a-dk1.dtsi
@@ -8,6 +8,19 @@
 #include <dt-bindings/gpio/gpio.h>
 
 / {
+	led {
+		red {
+			label = "error";
+			gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
+			default-state = "off";
+			status = "okay";
+		};
+
+		blue {
+			default-state = "on";
+		};
+	};
+
 	sram: sram at 10050000 {
 		compatible = "mmio-sram";
 		reg = <0x10050000 0x10000>;
-- 
2.20.1




More information about the barebox mailing list