diff mbox series

[v1,07/25] ARM: dts: stm32: Add gpio-keys for stm32mp135f-dk-u-boot

Message ID 20240409150215.2497778-8-patrice.chotard@foss.st.com
State Accepted
Commit 485798dd9bf7603ce90cf4c390c2ce746b70d1bc
Delegated to: Patrick Delaunay
Headers show
Series stm32mp: Fix keys & leds management | expand

Commit Message

Patrice CHOTARD April 9, 2024, 3:01 p.m. UTC
Add 2 gpio-keys :
  _ button-user-1 for stm32prog mode activation.
  _ update button-user's label (defined in kernel DT) to match label
    requested in board_key_check() for fastboot mode activation.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Patrick Delaunay April 17, 2024, 9:06 a.m. UTC | #1
Hi

On 4/9/24 17:01, Patrice Chotard wrote:
> Add 2 gpio-keys :
>    _ button-user-1 for stm32prog mode activation.
>    _ update button-user's label (defined in kernel DT) to match label
>      requested in board_key_check() for fastboot mode activation.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
>


Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick
Patrice CHOTARD April 19, 2024, 12:17 p.m. UTC | #2
On 4/17/24 11:06, Patrick DELAUNAY wrote:
> Hi
> 
> On 4/9/24 17:01, Patrice Chotard wrote:
>> Add 2 gpio-keys :
>>    _ button-user-1 for stm32prog mode activation.
>>    _ update button-user's label (defined in kernel DT) to match label
>>      requested in board_key_check() for fastboot mode activation.
>>
>> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>> ---
>>
>>   arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 13 +++++++++++++
>>   1 file changed, 13 insertions(+)
>>
> 
> 
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> 
> Thanks
> Patrick
> 

Applied on u-boot-stm32/master
diff mbox series

Patch

diff --git a/arch/arm/dts/stm32mp135f-dk-u-boot.dtsi b/arch/arm/dts/stm32mp135f-dk-u-boot.dtsi
index ba0c02489d1..e64ded13462 100644
--- a/arch/arm/dts/stm32mp135f-dk-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp135f-dk-u-boot.dtsi
@@ -16,6 +16,19 @@ 
 		u-boot,mmc-env-partition = "u-boot-env";
 	};
 
+	gpio-keys {
+		button-user-1 {
+			label = "User-1";
+			linux,code = <BTN_2>;
+			gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+		};
+
+		button-user {
+			/* update label to match the label requested in board_key_check() */
+			label = "User-2";
+		};
+	};
+
 	leds {
 		led-red {
 			color = <LED_COLOR_ID_RED>;