treewide: fix button keys codes used in dts

Use keycodes that matches the intended use case based on the label.

Signed-off-by: Mathias Kresin <dev@kresin.me>
owl
Mathias Kresin 2016-11-27 09:47:51 +01:00
parent 4780e7e994
commit 18c64f41c7
22 changed files with 27 additions and 26 deletions

View File

@ -156,7 +156,7 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio 29 GPIO_ACTIVE_LOW>; gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";

View File

@ -139,7 +139,7 @@
restart { restart {
label = "restart"; label = "restart";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <KEY_POWER>;
}; };
reset { reset {
label = "reset"; label = "reset";

View File

@ -153,12 +153,12 @@
restart { restart {
label = "restart"; label = "restart";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <KEY_POWER>;
}; };
dsl { dsl {
label = "dsl"; label = "dsl";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_0>;
}; };
reset { reset {
label = "reset"; label = "reset";

View File

@ -152,12 +152,12 @@
restart { restart {
label = "restart"; label = "restart";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <BTN_LEFT>; linux,code = <KEY_POWER>;
}; };
dsl { dsl {
label = "dsl"; label = "dsl";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <BTN_RIGHT>; linux,code = <BTN_0>;
}; };
reset { reset {
label = "reset"; label = "reset";

View File

@ -139,6 +139,7 @@
gpios = <&gpio 30 GPIO_ACTIVE_LOW>; gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
/* key DECT is missing */
}; };
gpio-leds { gpio-leds {

View File

@ -198,7 +198,7 @@
findhandset { findhandset {
label = "findhandset"; label = "findhandset";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <KEY_PHONE>;
}; };
wps { wps {
label = "wps"; label = "wps";

View File

@ -154,7 +154,7 @@
restart { restart {
label = "restart"; label = "restart";
gpios = <&gpio 52 GPIO_ACTIVE_LOW>; gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_POWER>;
}; };
wps { wps {
label = "wps"; label = "wps";

View File

@ -122,7 +122,7 @@
paging { paging {
label = "paging"; label = "paging";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <KEY_PHONE>;
}; };
}; };

View File

@ -139,7 +139,7 @@
power { power {
label = "power"; label = "power";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_0>; linux,code = <KEY_POWER>;
}; };
/* wifi { /* wifi {
label = "wifi"; label = "wifi";

View File

@ -125,7 +125,7 @@
dect { dect {
label = "dect"; label = "dect";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_2>; linux,code = <KEY_PHONE>;
}; };
}; };

View File

@ -116,14 +116,14 @@
#size-cells = <0>; #size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
dect { dect {
label = "power"; label = "dect";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_2>; linux,code = <KEY_PHONE>;
}; };
wifi { wifi {
label = "wifi"; label = "wifi";
gpios = <&gpio 29 GPIO_ACTIVE_HIGH>; gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_1>; linux,code = <KEY_WLAN>;
}; };
}; };

View File

@ -138,7 +138,7 @@
eco { eco {
label = "eco"; label = "eco";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>; gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <BTN_0>;
}; };
rfkill { rfkill {
label = "rfkill"; label = "rfkill";

View File

@ -113,7 +113,7 @@
dect_paging { dect_paging {
label = "dect_paging"; label = "dect_paging";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>; gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_PHONE>;
}; };
}; };

View File

@ -130,12 +130,12 @@
eject { eject {
label = "eject"; label = "eject";
gpios = <&gpio 34 GPIO_ACTIVE_LOW>; gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_EJECTCD>;
}; };
movie { movie {
label = "movie"; label = "movie";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
linux,code = <BTN_9>; linux,code = <KEY_VIDEO>;
}; };
}; };

View File

@ -118,7 +118,7 @@
router { router {
label = "router"; label = "router";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_0>; linux,code = <BTN_1>;
linux,input-type = <EV_SW>; linux,input-type = <EV_SW>;
}; };
}; };

View File

@ -41,7 +41,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };

View File

@ -41,7 +41,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };

View File

@ -47,7 +47,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };

View File

@ -84,7 +84,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };

View File

@ -61,7 +61,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };

View File

@ -84,7 +84,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };

View File

@ -84,7 +84,7 @@
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <ABS_MT_WIDTH_MAJOR>; linux,code = <BTN_0>;
}; };
}; };
}; };