Skip to content

Commit 6057c95

Browse files
ldesrochescristibirsan
authored andcommitted
arm: dts: at91: sama5d2_icp: 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>
1 parent ba752b1 commit 6057c95

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "sama5d2.dtsi"
1313
#include "sama5d2-pinfunc.h"
1414
#include <dt-bindings/gpio/gpio.h>
15+
#include <dt-bindings/input/input.h>
1516
#include <dt-bindings/mfd/atmel-flexcom.h>
1617

1718
/ {
@@ -51,7 +52,7 @@
5152
sw4 {
5253
label = "USER_PB1";
5354
gpios = <&pioA PIN_PD0 GPIO_ACTIVE_LOW>;
54-
linux,code = <0x104>;
55+
linux,code = <KEY_PROG1>;
5556
wakeup-source;
5657
};
5758
};

0 commit comments

Comments
 (0)