From: Benjamin Tietz <benja...@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";
+};

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to