ARM: dts: at91: sama5d4_xplained: change the key code of the gpio key
authorLudovic Desroches <ludovic.desroches@microchip.com>
Tue, 27 Jul 2021 09:13:51 +0000 (11:13 +0200)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Tue, 27 Jul 2021 09:53:55 +0000 (11:53 +0200)
Having a button code and not a key code causes issues with libinput.
udev won't set ID_INPUT_KEY. If it is forced, then it causes a bug
within libinput.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210727091351.44475-1-nicolas.ferre@microchip.com
arch/arm/boot/dts/at91-sama5d4_xplained.dts

index 541779af049ffc495861b6679d4f55aac80e794a..d241c24f0d836a1ae61f4f8f8922985fd3966b36 100644 (file)
@@ -7,6 +7,7 @@
  */
 /dts-v1/;
 #include "sama5d4.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Atmel SAMA5D4 Xplained";
                pb_user1 {
                        label = "pb_user1";
                        gpios = <&pioE 8 GPIO_ACTIVE_HIGH>;
-                       linux,code = <0x100>;
+                       linux,code = <KEY_PROG1>;
                        wakeup-source;
                };
        };