2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 18:24:23 +08:00

ARM: DT: Kirkwood: Use symbolic names from input.h

Replace the numeric key value with a symbolic name from
<bt-bindings/input/input.h>

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
This commit is contained in:
Andrew Lunn 2013-12-04 16:51:38 +01:00 committed by Jason Cooper
parent 46ca506c43
commit 23301190d2
17 changed files with 30 additions and 31 deletions

View File

@ -66,7 +66,7 @@
button@1 { button@1 {
label = "Power push button"; label = "Power push button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 1>;
}; };
}; };

View File

@ -15,17 +15,17 @@
button@1 { button@1 {
label = "Power button"; label = "Power button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio1 2 1>; gpios = <&gpio1 2 1>;
}; };
button@2 { button@2 {
label = "USB unmount button"; label = "USB unmount button";
linux,code = <161>; linux,code = <KEY_EJECTCD>;
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 1>;
}; };
button@3 { button@3 {
label = "Reset button"; label = "Reset button";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 1>;
}; };
}; };

View File

@ -63,12 +63,12 @@
button@1 { button@1 {
label = "USB Copy"; label = "USB Copy";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio0 29 1>; gpios = <&gpio0 29 1>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 28 1>; gpios = <&gpio0 28 1>;
}; };
}; };

View File

@ -137,13 +137,13 @@
button@1 { button@1 {
label = "OTB Button"; label = "OTB Button";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio1 3 1>; gpios = <&gpio1 3 1>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
debounce-interval = <100>; debounce-interval = <100>;
}; };

View File

@ -154,17 +154,17 @@
Power { Power {
label = "Power Button"; label = "Power Button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 1>;
}; };
Reset { Reset {
label = "Reset Button"; label = "Reset Button";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
}; };
OTB { OTB {
label = "OTB Button"; label = "OTB Button";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio1 3 1>; gpios = <&gpio1 3 1>;
}; };
}; };

View File

@ -108,18 +108,18 @@
button@1 { button@1 {
label = "Function Button"; label = "Function Button";
linux,code = <357>; linux,code = <KEY_OPTION>;
gpios = <&gpio1 9 1>; gpios = <&gpio1 9 1>;
}; };
button@2 { button@2 {
label = "Power-on Switch"; label = "Power-on Switch";
linux,code = <0>; linux,code = <KEY_RESERVED>;
linux,input-type = <5>; linux,input-type = <5>;
gpios = <&gpio1 10 1>; gpios = <&gpio1 10 1>;
}; };
button@3 { button@3 {
label = "Power-auto Switch"; label = "Power-auto Switch";
linux,code = <1>; linux,code = <KEY_ESC>;
linux,input-type = <5>; linux,input-type = <5>;
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 1>;
}; };

View File

@ -113,12 +113,12 @@
button@1 { button@1 {
label = "SWR Button"; label = "SWR Button";
linux,code = <0x198>; /* KEY_RESTART */ linux,code = <KEY_RESTART>;
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 1>;
}; };
button@2 { button@2 {
label = "WPS Button"; label = "WPS Button";
linux,code = <0x211>; /* KEY_WPS_BUTTON */ linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 1>;
}; };
}; };

View File

@ -11,7 +11,6 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include "kirkwood.dtsi" #include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi" #include "kirkwood-6282.dtsi"

View File

@ -11,7 +11,6 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include "kirkwood.dtsi" #include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi" #include "kirkwood-6282.dtsi"

View File

@ -64,7 +64,7 @@
button@1 { button@1 {
label = "Power push button"; label = "Power push button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio1 0 0>; gpios = <&gpio1 0 0>;
}; };
}; };

View File

@ -119,17 +119,17 @@
button@1 { button@1 {
label = "Power Button"; label = "Power Button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio1 14 0>; gpios = <&gpio1 14 0>;
}; };
button@2 { button@2 {
label = "Copy Button"; label = "Copy Button";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 1>;
}; };
button@3 { button@3 {
label = "Reset Button"; label = "Reset Button";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 4 1>; gpios = <&gpio1 4 1>;
}; };
}; };

View File

@ -107,17 +107,17 @@
button@1 { button@1 {
label = "Power Button"; label = "Power Button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio1 14 0>; gpios = <&gpio1 14 0>;
}; };
button@2 { button@2 {
label = "Copy Button"; label = "Copy Button";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 1>;
}; };
button@3 { button@3 {
label = "Reset Button"; label = "Reset Button";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 4 1>; gpios = <&gpio1 4 1>;
}; };
}; };

View File

@ -124,7 +124,7 @@
button@1 { button@1 {
label = "Init Button"; label = "Init Button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 0>;
}; };
}; };

View File

@ -149,7 +149,7 @@
button@1 { button@1 {
label = "Init Button"; label = "Init Button";
linux,code = <116>; linux,code = <KEY_POWER>;
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 0>;
}; };
}; };

View File

@ -41,12 +41,12 @@
button@1 { button@1 {
label = "USB Copy"; label = "USB Copy";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio0 15 1>; gpios = <&gpio0 15 1>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 1>;
}; };
}; };

View File

@ -51,12 +51,12 @@
button@1 { button@1 {
label = "USB Copy"; label = "USB Copy";
linux,code = <133>; linux,code = <KEY_COPY>;
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 1>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <0x198>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 1>;
}; };
}; };

View File

@ -1,4 +1,5 @@
/include/ "skeleton.dtsi" /include/ "skeleton.dtsi"
#include <dt-bindings/input/input.h>
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))