Skip to contentSkip to conversation

ARM: dts: stm32: add led to stm32f746 Discovery board

PATCH In review Dario Binacchi 2 participants 3 messages Feb 17, 2025 – Feb 27, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: stm32: add led to stm32f746 Discovery board

Add node for the user led.

---

 arch/arm/boot/dts/st/stm32f746-disco.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/st/stm32f746-disco.dts +8 -0
index 087de6f09629..8bdd10644bf1 100644
@@ -78,6 +78,14 @@ aliases {
 		serial0 = &usart1;
 	};
 
+	leds {
+		compatible = "gpio-leds";
+		led-usr {
+			gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+		};
+	};
+
 	usbotg_hs_phy: usb-phy {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 ARM: dts: stm32: add push button to stm32f746 Discovery board

Add node for user push button.

---

 arch/arm/boot/dts/st/stm32f746-disco.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/st/stm32f746-disco.dts +10 -0
index 8bdd10644bf1..b57dbdce2f40 100644
@@ -86,6 +86,16 @@ led-usr {
 		};
 	};
 
+	gpio-keys {
+		compatible = "gpio-keys";
+		autorepeat;
+		button-0 {
+			label = "User";
+			linux,code = <KEY_HOME>;
+			gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	usbotg_hs_phy: usb-phy {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";
Signature · 1 line
2.43.0
maintainer
#2 lore raw

Re: [PATCH 2/2] ARM: dts: stm32: add push button to stm32f746 Discovery board

Quoted 19 lines · Dario Binacchi

Add node for user push button.

---

  arch/arm/boot/dts/st/stm32f746-disco.dts | 10 ++++++++++
  1 file changed, 10 insertions(+)
arch/arm/boot/dts/st/stm32f746-disco.dts +3 -0
index 8bdd10644bf1..b57dbdce2f40 100644
@@ -86,6 +86,16 @@ led-usr {
  		};
  	};
 
+	gpio-keys {
+		compatible = "gpio-keys";
+		autorepeat;

arch/arm/boot/dts/st/stm32f746-disco.dts led-usr { · line 101

Quoted 10 lines
arch/arm/boot/dts/st/stm32f746-disco.dts +7 -0
+		button-0 {
+			label = "User";
+			linux,code = <KEY_HOME>;
+			gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
  	usbotg_hs_phy: usb-phy {
  		#phy-cells = <0>;
  		compatible = "usb-nop-xceiv";

Series applied on stm32-next.

thanks
Alex