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>
master
Mathias Kresin 8 years ago
parent 4780e7e994
commit 18c64f41c7
  1. 2
      target/linux/lantiq/dts/ARV452CQW.dts
  2. 2
      target/linux/lantiq/dts/ARV7510PW22.dts
  3. 4
      target/linux/lantiq/dts/ARV752DPW.dts
  4. 4
      target/linux/lantiq/dts/ARV752DPW22.dts
  5. 1
      target/linux/lantiq/dts/ARV8539PW22.dts
  6. 2
      target/linux/lantiq/dts/BTHOMEHUBV2B.dts
  7. 2
      target/linux/lantiq/dts/BTHOMEHUBV3A.dts
  8. 2
      target/linux/lantiq/dts/EASY80920.dtsi
  9. 2
      target/linux/lantiq/dts/FRITZ3370.dts
  10. 2
      target/linux/lantiq/dts/FRITZ7320.dts
  11. 6
      target/linux/lantiq/dts/FRITZ7360SL.dts
  12. 2
      target/linux/lantiq/dts/VGV7519.dtsi
  13. 2
      target/linux/lantiq/dts/VR200v.dts
  14. 4
      target/linux/lantiq/dts/WBMR.dts
  15. 2
      target/linux/lantiq/dts/WBMR300.dts
  16. 2
      target/linux/ramips/dts/AWM002-EVB-4M.dts
  17. 2
      target/linux/ramips/dts/AWM002-EVB-8M.dts
  18. 2
      target/linux/ramips/dts/AWM003-EVB.dts
  19. 2
      target/linux/ramips/dts/UR-326N4G.dts
  20. 2
      target/linux/ramips/dts/UR-336UN.dts
  21. 2
      target/linux/ramips/dts/WR512-3GN-4M.dts
  22. 2
      target/linux/ramips/dts/WR512-3GN-8M.dts

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

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

@ -153,12 +153,12 @@
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";

@ -152,12 +152,12 @@
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";

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

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

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

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

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

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

@ -116,14 +116,14 @@
#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>;
};
};

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

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

@ -130,12 +130,12 @@
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>;
};
};

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

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

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

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

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

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

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

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

Loading…
Cancel
Save