Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210727091351.44475-1-nicolas.ferre@microchip.com

authored by

Ludovic Desroches and committed by
Nicolas Ferre
c1f00edc 9907f382

+2 -1
+2 -1
arch/arm/boot/dts/at91-sama5d4_xplained.dts
··· 7 7 */ 8 8 /dts-v1/; 9 9 #include "sama5d4.dtsi" 10 + #include <dt-bindings/input/input.h> 10 11 11 12 / { 12 13 model = "Atmel SAMA5D4 Xplained"; ··· 251 250 pb_user1 { 252 251 label = "pb_user1"; 253 252 gpios = <&pioE 8 GPIO_ACTIVE_HIGH>; 254 - linux,code = <0x100>; 253 + linux,code = <KEY_PROG1>; 255 254 wakeup-source; 256 255 }; 257 256 };