button@1 {
label = "Power push button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio0 16 1>;
};
};
button@1 {
label = "Power button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 2 1>;
};
button@2 {
label = "USB unmount button";
- linux,code = <161>;
+ linux,code = <KEY_EJECTCD>;
gpios = <&gpio1 15 1>;
};
button@3 {
label = "Reset button";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio1 16 1>;
};
};
button@1 {
label = "USB Copy";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio0 29 1>;
};
button@2 {
label = "Reset";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio0 28 1>;
};
};
button@1 {
label = "OTB Button";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio1 3 1>;
debounce-interval = <100>;
};
button@2 {
label = "Reset";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio0 12 1>;
debounce-interval = <100>;
};
Power {
label = "Power Button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio0 14 1>;
};
Reset {
label = "Reset Button";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio0 12 1>;
};
OTB {
label = "OTB Button";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio1 3 1>;
};
};
button@1 {
label = "Function Button";
- linux,code = <357>;
+ linux,code = <KEY_OPTION>;
gpios = <&gpio1 9 1>;
};
button@2 {
label = "Power-on Switch";
- linux,code = <0>;
+ linux,code = <KEY_RESERVED>;
linux,input-type = <5>;
gpios = <&gpio1 10 1>;
};
button@3 {
label = "Power-auto Switch";
- linux,code = <1>;
+ linux,code = <KEY_ESC>;
linux,input-type = <5>;
gpios = <&gpio1 11 1>;
};
button@1 {
label = "SWR Button";
- linux,code = <0x198>; /* KEY_RESTART */
+ linux,code = <KEY_RESTART>;
gpios = <&gpio1 15 1>;
};
button@2 {
label = "WPS Button";
- linux,code = <0x211>; /* KEY_WPS_BUTTON */
+ linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio1 14 1>;
};
};
/dts-v1/;
-#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi"
/dts-v1/;
-#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi"
button@1 {
label = "Power push button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 0 0>;
};
};
button@1 {
label = "Power Button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 14 0>;
};
button@2 {
label = "Copy Button";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio1 5 1>;
};
button@3 {
label = "Reset Button";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio1 4 1>;
};
};
button@1 {
label = "Power Button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 14 0>;
};
button@2 {
label = "Copy Button";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio1 5 1>;
};
button@3 {
label = "Reset Button";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio1 4 1>;
};
};
button@1 {
label = "Init Button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 6 0>;
};
};
button@1 {
label = "Init Button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 6 0>;
};
};
button@1 {
label = "USB Copy";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio0 15 1>;
};
button@2 {
label = "Reset";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio0 16 1>;
};
};
button@1 {
label = "USB Copy";
- linux,code = <133>;
+ linux,code = <KEY_COPY>;
gpios = <&gpio1 11 1>;
};
button@2 {
label = "Reset";
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
gpios = <&gpio1 5 1>;
};
};
/include/ "skeleton.dtsi"
+#include <dt-bindings/input/input.h>
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))