diff options
author | Ludovic Desroches <ludovic.desroches@microchip.com> | 2021-07-27 11:13:51 +0200 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@microchip.com> | 2021-07-27 11:53:55 +0200 |
commit | c1f00edce5a3ee99521ff08ffb4d903e55b6a53f (patch) | |
tree | 8c47cc2e68a835aa8662e8400c5c486e4bc95e8b /arch/arm/boot/dts/at91-sama5d4_xplained.dts | |
parent | 9907f382a7a0cf883927e2b55653fad83115145e (diff) |
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
Diffstat (limited to 'arch/arm/boot/dts/at91-sama5d4_xplained.dts')
-rw-r--r-- | arch/arm/boot/dts/at91-sama5d4_xplained.dts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts b/arch/arm/boot/dts/at91-sama5d4_xplained.dts index 541779af049f..d241c24f0d83 100644 --- a/arch/arm/boot/dts/at91-sama5d4_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d4_xplained.dts @@ -7,6 +7,7 @@ */ /dts-v1/; #include "sama5d4.dtsi" +#include <dt-bindings/input/input.h> / { model = "Atmel SAMA5D4 Xplained"; @@ -250,7 +251,7 @@ pb_user1 { label = "pb_user1"; gpios = <&pioE 8 GPIO_ACTIVE_HIGH>; - linux,code = <0x100>; + linux,code = <KEY_PROG1>; wakeup-source; }; }; |