[U-Boot] [PATCH v2 15/22] DTS: STM32F429-disco: add board leds and enable rcc
Benjamin Tietz
uboot at dresden.micronet24.de
Mon Jun 20 20:27:17 CEST 2016
From: Benjamin Tietz <benjamin at micronet24.de>
The following adds the configuration of the user-leds to the device tree for STM32F429 discovery board.
---
arch/arm/dts/stm32f429-disco.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/dts/stm32f429-disco.dts b/arch/arm/dts/stm32f429-disco.dts
index 2bae81c..7159f82 100644
--- a/arch/arm/dts/stm32f429-disco.dts
+++ b/arch/arm/dts/stm32f429-disco.dts
@@ -64,6 +64,20 @@
aliases {
serial0 = &usart1;
};
+
+ leds {
+ compatible = "gpio-leds";
+ user1 {
+ label = "user:green";
+ gpios = <&gpioG 13 0>;
+ };
+
+ user2 {
+ label = "user:red";
+ gpios = <&gpioG 14 0>;
+ };
+ };
+
};
&clk_hse {
@@ -73,3 +87,11 @@
&usart1 {
status = "okay";
};
+
+&rcc {
+ status = "okay";
+};
+
+&gpioG {
+ status = "okay";
+};
More information about the U-Boot
mailing list