summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/at91-sama5d2_icp.dts
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@microchip.com>2021-04-02 16:02:27 +0300
committerNicolas Ferre <nicolas.ferre@microchip.com>2021-04-07 14:32:22 +0300
commitca7a049ad1a72ec5f03d1330b53575237fcb727c (patch)
treec4addec25f3b502760befa440724d421bf0cd519 /arch/arm/boot/dts/at91-sama5d2_icp.dts
parent174c80b254a0fdc03d86c14fb70859fb26b7060f (diff)
downloadlinux-ca7a049ad1a72ec5f03d1330b53575237fcb727c.tar.xz
ARM: dts: at91: 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/20210402130227.21478-1-nicolas.ferre@microchip.com
Diffstat (limited to 'arch/arm/boot/dts/at91-sama5d2_icp.dts')
-rw-r--r--arch/arm/boot/dts/at91-sama5d2_icp.dts3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/at91-sama5d2_icp.dts b/arch/arm/boot/dts/at91-sama5d2_icp.dts
index 46722a163184..bd64721fa23c 100644
--- a/arch/arm/boot/dts/at91-sama5d2_icp.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_icp.dts
@@ -12,6 +12,7 @@
#include "sama5d2.dtsi"
#include "sama5d2-pinfunc.h"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include <dt-bindings/mfd/atmel-flexcom.h>
/ {
@@ -51,7 +52,7 @@
sw4 {
label = "USER_PB1";
gpios = <&pioA PIN_PD0 GPIO_ACTIVE_LOW>;
- linux,code = <0x104>;
+ linux,code = <KEY_PROG1>;
wakeup-source;
};
};