Commit 2d4c0fad authored by Guido Günther's avatar Guido Günther Committed by Angus Ainslie

dt: Use symbolic key codes

Signed-off-by: Guido Günther's avatarGuido Günther <guido.gunther@puri.sm>
parent 7e638700
......@@ -32,6 +32,7 @@
#include "imx8mq.dtsi"
#include "dt-bindings/usb/pd.h"
#include "dt-bindings/input/input.h"
/ {
model = "Emcraft i.MX8M SOM";
......@@ -210,19 +211,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>;
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment