treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/lynxis/omap.git] / target / linux / ramips / dts / AWM002-EVB-4M.dts
index ef2f83c7788fa7cd3a677ea76c3226a7806cda23..f647a9658c2aa70a794e3ec90767e175c7ed7c62 100644 (file)
@@ -2,17 +2,11 @@
 
 #include "AWM002-4M.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "AsiaRF AWM002 EVB";
 
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x28>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
 
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
+
+&ethernet {
+       mtd-mac-address = <&factory 0x28>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};