summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-06-17 17:07:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-20 16:03:50 +0200
commit6436608daaa79447f1da761fb873a3cd2aa3f3e4 (patch)
tree44e1a4d4d51ef6b06ec73698865e5d763582ad1a
parentf4f933a64d20de0634f8b0a2bd44b0df04a3221f (diff)
downloadbarebox-6436608daaa79447f1da761fb873a3cd2aa3f3e4.tar.gz
barebox-6436608daaa79447f1da761fb873a3cd2aa3f3e4.tar.xz
ARM: dts: stm32mp157a-dk1: enable heartbeat and error LEDs
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/dts/stm32mp157a-dk1.dtsi13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/dts/stm32mp157a-dk1.dtsi b/arch/arm/dts/stm32mp157a-dk1.dtsi
index 8cc70129b2..cd3d614d46 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@10050000 {
compatible = "mmio-sram";
reg = <0x10050000 0x10000>;