Use keycodes that matches the intended use case based on the label.
Signed-off-by: Mathias Kresin <dev@kresin.me>
wps {
label = "wps";
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_1>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
restart {
label = "restart";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_0>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
restart {
label = "restart";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_0>;
+ linux,code = <KEY_POWER>;
};
dsl {
label = "dsl";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_1>;
+ linux,code = <BTN_0>;
};
reset {
label = "reset";
restart {
label = "restart";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_LEFT>;
+ linux,code = <KEY_POWER>;
};
dsl {
label = "dsl";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_RIGHT>;
+ linux,code = <BTN_0>;
};
reset {
label = "reset";
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
+ /* key DECT is missing */
};
gpio-leds {
findhandset {
label = "findhandset";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_1>;
+ linux,code = <KEY_PHONE>;
};
wps {
label = "wps";
restart {
label = "restart";
gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_POWER>;
};
wps {
label = "wps";
paging {
label = "paging";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_0>;
+ linux,code = <KEY_PHONE>;
};
};
power {
label = "power";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
- linux,code = <BTN_0>;
+ linux,code = <KEY_POWER>;
};
/* wifi {
label = "wifi";
dect {
label = "dect";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_2>;
+ linux,code = <KEY_PHONE>;
};
};
#size-cells = <0>;
poll-interval = <100>;
dect {
- label = "power";
+ label = "dect";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
- linux,code = <BTN_2>;
+ linux,code = <KEY_PHONE>;
};
wifi {
label = "wifi";
gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
- linux,code = <BTN_1>;
+ linux,code = <KEY_WLAN>;
};
};
eco {
label = "eco";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RFKILL>;
+ linux,code = <BTN_0>;
};
rfkill {
label = "rfkill";
dect_paging {
label = "dect_paging";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
+ linux,code = <KEY_PHONE>;
};
};
eject {
label = "eject";
gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RFKILL>;
+ linux,code = <KEY_EJECTCD>;
};
movie {
label = "movie";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_9>;
+ linux,code = <KEY_VIDEO>;
};
};
router {
label = "router";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
- linux,code = <BTN_0>;
+ linux,code = <BTN_1>;
linux,input-type = <EV_SW>;
};
};
mode {
label = "mode";
gpios = <&gpio0 20 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};
mode {
label = "mode";
gpios = <&gpio0 20 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};
mode {
label = "mode";
gpios = <&gpio0 20 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <ABS_MT_WIDTH_MAJOR>;
+ linux,code = <BTN_0>;
};
};
};