treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/lynxis/omap.git] / target / linux / ramips / dts / WLI-TX4-AG300N.dts
index 873feab82d662f47c72592d6f23dabd164aafed1..9d9b222bd7a85cb3fdb74da72edb64c20031bf23 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "rt2880.dtsi"
+#include "rt2880.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
@@ -8,12 +10,6 @@
        compatible = "WLI-TX4-AG300N", "ralink,rt2880-soc";
        model = "Buffalo WLI-TX4-AG300N";
 
-       palmbus@300000 {
-               gpio0: gpio@600 {
-                       status = "okay";
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                };
        };
 
-       ethernet@400000 {
-               status = "okay";
-               mtd-mac-address = <&factory 0x4>;
-
-               port@0 {
-                       mediatek,fixed-link = <1000 1 1 1>;
-               };
-       };
-
-       wmac@480000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                bandwidth {
                        label = "bandwidth";
                        gpios = <&gpio0 8 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
                };
        };
 };
+
+&gpio0 {
+       status = "okay";
+};
+
+&ethernet {
+       status = "okay";
+       mtd-mac-address = <&factory 0x4>;
+
+       port@0 {
+               mediatek,fixed-link = <1000 1 1 1>;
+       };
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};