* [PATCH 1/2] ARM: dts: stm32: add led to stm32f746 Discovery board
@ 2025-02-17 11:43 Dario Binacchi
2025-02-17 11:43 ` [PATCH 2/2] ARM: dts: stm32: add push button " Dario Binacchi
0 siblings, 1 reply; 3+ messages in thread
From: Dario Binacchi @ 2025-02-17 11:43 UTC (permalink / raw)
To: linux-kernel
Cc: Dario Binacchi, Alexandre Torgue, Conor Dooley,
Krzysztof Kozlowski, Maxime Coquelin, Rob Herring, devicetree,
linux-arm-kernel, linux-stm32
Add node for the user led.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
arch/arm/boot/dts/st/stm32f746-disco.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts
index 087de6f09629..8bdd10644bf1 100644
--- a/arch/arm/boot/dts/st/stm32f746-disco.dts
+++ b/arch/arm/boot/dts/st/stm32f746-disco.dts
@@ -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";
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] ARM: dts: stm32: add push button to stm32f746 Discovery board
2025-02-17 11:43 [PATCH 1/2] ARM: dts: stm32: add led to stm32f746 Discovery board Dario Binacchi
@ 2025-02-17 11:43 ` Dario Binacchi
2025-02-27 8:37 ` Alexandre TORGUE
0 siblings, 1 reply; 3+ messages in thread
From: Dario Binacchi @ 2025-02-17 11:43 UTC (permalink / raw)
To: linux-kernel
Cc: Dario Binacchi, Alexandre Torgue, Conor Dooley,
Krzysztof Kozlowski, Maxime Coquelin, Rob Herring, devicetree,
linux-arm-kernel, linux-stm32
Add node for user push button.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
arch/arm/boot/dts/st/stm32f746-disco.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts
index 8bdd10644bf1..b57dbdce2f40 100644
--- a/arch/arm/boot/dts/st/stm32f746-disco.dts
+++ b/arch/arm/boot/dts/st/stm32f746-disco.dts
@@ -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";
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 2/2] ARM: dts: stm32: add push button to stm32f746 Discovery board
2025-02-17 11:43 ` [PATCH 2/2] ARM: dts: stm32: add push button " Dario Binacchi
@ 2025-02-27 8:37 ` Alexandre TORGUE
0 siblings, 0 replies; 3+ messages in thread
From: Alexandre TORGUE @ 2025-02-27 8:37 UTC (permalink / raw)
To: Dario Binacchi, linux-kernel
Cc: Conor Dooley, Krzysztof Kozlowski, Maxime Coquelin, Rob Herring,
devicetree, linux-arm-kernel, linux-stm32
On 2/17/25 12:43, Dario Binacchi wrote:
> Add node for user push button.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
>
> arch/arm/boot/dts/st/stm32f746-disco.dts | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts
> index 8bdd10644bf1..b57dbdce2f40 100644
> --- a/arch/arm/boot/dts/st/stm32f746-disco.dts
> +++ b/arch/arm/boot/dts/st/stm32f746-disco.dts
> @@ -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";
Series applied on stm32-next.
thanks
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-27 8:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-17 11:43 [PATCH 1/2] ARM: dts: stm32: add led to stm32f746 Discovery board Dario Binacchi
2025-02-17 11:43 ` [PATCH 2/2] ARM: dts: stm32: add push button " Dario Binacchi
2025-02-27 8:37 ` Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®