提交 aee54d32 编写于 作者: F Fabio Estevam 提交者: Shawn Guo

ARM: dts: imx53-ard: Do not hardcode input codes

Instead of hardcoding the input codes we can use the symbol name for
better readability.
Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 1ed7c955
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include "imx53.dtsi" #include "imx53.dtsi"
/ { / {
...@@ -68,34 +69,34 @@ ...@@ -68,34 +69,34 @@
home { home {
label = "Home"; label = "Home";
gpios = <&gpio5 10 0>; gpios = <&gpio5 10 0>;
linux,code = <102>; /* KEY_HOME */ linux,code = <KEY_HOME>;
wakeup-source; wakeup-source;
}; };
back { back {
label = "Back"; label = "Back";
gpios = <&gpio5 11 0>; gpios = <&gpio5 11 0>;
linux,code = <158>; /* KEY_BACK */ linux,code = <KEY_BACK>;
wakeup-source; wakeup-source;
}; };
program { program {
label = "Program"; label = "Program";
gpios = <&gpio5 12 0>; gpios = <&gpio5 12 0>;
linux,code = <362>; /* KEY_PROGRAM */ linux,code = <KEY_PROGRAM >;
wakeup-source; wakeup-source;
}; };
volume-up { volume-up {
label = "Volume Up"; label = "Volume Up";
gpios = <&gpio5 13 0>; gpios = <&gpio5 13 0>;
linux,code = <115>; /* KEY_VOLUMEUP */ linux,code = <KEY_VOLUMEUP>;
}; };
volume-down { volume-down {
label = "Volume Down"; label = "Volume Down";
gpios = <&gpio4 0 0>; gpios = <&gpio4 0 0>;
linux,code = <114>; /* KEY_VOLUMEDOWN */ linux,code = <KEY_VOLUMEDOWN>;
}; };
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册