[Librem-5-dev] [PATCH] dt: Use symbolic key codes
Guido Günther
agx at sigxcpu.org
Tue Oct 23 03:02:57 PDT 2018
Signed-off-by: Guido Günther <guido.gunther at puri.sm>
---
Hi Angus,
Came across this while looking at something different but thought I'd
send it out right away before I forget. If you prefer MRs in gitlab let
me know but they take quite a long time with the linux kernel tree).
(public -dev list in cc:)
arch/arm64/boot/dts/freescale/librem5-evk.dts | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/librem5-evk.dts b/arch/arm64/boot/dts/freescale/librem5-evk.dts
index 0eb87fa9711d..5ccf676d2c9e 100644
--- a/arch/arm64/boot/dts/freescale/librem5-evk.dts
+++ b/arch/arm64/boot/dts/freescale/librem5-evk.dts
@@ -32,6 +32,7 @@
#include "imx8mq.dtsi"
#include "dt-bindings/usb/pd.h"
+#include "dt-bindings/input/input.h"
/ {
model = "Emcraft i.MX8M SOM";
@@ -182,19 +183,19 @@
label = "BTN 1";
gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
- linux,code = <115>;
+ linux,code = <KEY_VOLUMEUP>;
};
btn2 {
label = "BTN 2";
gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
- linux,code = <114>;
+ linux,code = <KEY_VOLUMEDOWN>;
};
hp_det {
label = "HP_DET";
gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
- linux,code = <211>;
+ linux,code = <KEY_HP>;
};
};
--
2.19.0
More information about the Librem-5-dev
mailing list