aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas/files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-11-11 22:43:08 +0100
committerMathias Kresin <dev@kresin.me>2016-11-13 07:07:58 +0100
commit2b55c83e68068887db9e49de8e81b1b4a267a4f2 (patch)
tree08f3f29dffd47849f62376820207584c43f5aa33 /target/linux/oxnas/files
parent77b807999d86498c4378a136bd366d09eb2c9bd5 (diff)
downloadupstream-2b55c83e68068887db9e49de8e81b1b4a267a4f2.tar.gz
upstream-2b55c83e68068887db9e49de8e81b1b4a267a4f2.tar.bz2
upstream-2b55c83e68068887db9e49de8e81b1b4a267a4f2.zip
treewide: dts: use keycode defines from input dt-binding
All compiled device tree files not mentioned are binary identical to the former ones. Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts. Due to the include of the input binding header, the BTN_* node names in: - ramips/GL-MT300A.dts - ramips/GL-MT300N.dts - ramips/GL-MT750.dts - ramips/Timecloud.dts will be changed by the compiler to the numerical equivalent. Move the binding include of lantiq boards to the file where they are used the first time to hint the user where the values do come from. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/oxnas/files')
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts6
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts8
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts6
3 files changed, 13 insertions, 7 deletions
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
index 4dc969c1fd..712c03e425 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
@@ -9,6 +9,8 @@
/dts-v1/;
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "Akitio MyCloud mini";
@@ -75,12 +77,12 @@
power {
label = "power";
gpios = <&GPIOA 11 1>;
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&GPIOB 6 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
index b5c79dede3..1312fd63b5 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
@@ -9,6 +9,8 @@
/dts-v1/;
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "Shuttle KD20";
@@ -91,17 +93,17 @@
power {
label = "power";
gpios = <&GPIOA 10 1>;
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&GPIOA 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
eject1 {
label = "eject1";
gpios = <&GPIOA 5 1>;
- linux,code = <161>;
+ linux,code = <KEY_EJECTCD>;
};
eject2 {
label = "eject2";
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
index a0704bb348..a8112c947c 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
@@ -10,6 +10,8 @@
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "MitraStar Technology Corp. STG-212";
@@ -57,12 +59,12 @@
reset {
label = "reset";
gpios = <&GPIOB 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
copy {
label = "copy";
gpios = <&GPIOB 13 1>;
- linux,code = <0x85>;
+ linux,code = <KEY_COPY>;
};
};