]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: Add gpio-keys for stm32mp135f-dk-u-boot
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 9 Apr 2024 15:01:57 +0000 (17:01 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Apr 2024 10:05:10 +0000 (12:05 +0200)
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>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/dts/stm32mp135f-dk-u-boot.dtsi

index ba0c02489d134a83b2230c0eb701f7f3f2eb4437..e64ded134620e56760bffbede8c54e548bf3d8d4 100644 (file)
                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>;