Skip to content

Commit d0a8689

Browse files
ldesrochescristibirsan
authored andcommitted
ARM: dts: at91: sama5d4_xplained: change the key code of the gpio key
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> Acked-by: Cristian Birsan <cristian.birsan@microchip.com>
1 parent 44c2a19 commit d0a8689

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/boot/dts/at91-sama5d4_xplained.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88
/dts-v1/;
99
#include "sama5d4.dtsi"
10+
#include <dt-bindings/input/input.h>
1011

1112
/ {
1213
model = "Atmel SAMA5D4 Xplained";
@@ -250,7 +251,7 @@
250251
pb_user1 {
251252
label = "pb_user1";
252253
gpios = <&pioE 8 GPIO_ACTIVE_HIGH>;
253-
linux,code = <0x100>;
254+
linux,code = <KEY_PROG1>;
254255
wakeup-source;
255256
};
256257
};

0 commit comments

Comments
 (0)