treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / AR725W.dts
index 6f66c3f85edfa52494afd3406be1eba576ddfa20..3a2003e8a376f8dc9428ad6d8b98e147629e4790 100644 (file)
@@ -1,50 +1,13 @@
 /dts-v1/;
 
-/include/ "rt2880.dtsi"
+#include "rt2880.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        compatible = "AR725W", "ralink,rt2880-soc";
        model = "Airlink101 AR725W";
 
-       palmbus@300000 {
-               gpio0: gpio@600 {
-                       status = "okay";
-               };
-       };
-
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "i2c", "spi", "uartlite";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
-       ethernet@400000 {
-               status = "okay";
-               mtd-mac-address = <&factory 0x4>;
-
-               port@0 {
-                       phy-handle = <&phy0>;
-                       phy-mode = "mii";
-               };
-
-               mdio-bus {
-                       status = "okay";
-
-                       phy0: ethernet-phy@0 {
-                               phy-mode = "mii";
-                               reg = <0>;
-                       };
-               };
-       };
-
-       wmac@480000 {
-               status = "okay";
-               ralink,mtd-eeprom = <&factory 0>;
-       };
-
        cfi@bdc00000 {
                compatible = "cfi-flash";
                reg = <0xbc400000 0x800000>;
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
+
+&gpio0 {
+       status = "okay";
+};
+
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "i2c", "spi", "uartlite";
+                       ralink,function = "gpio";
+               };
+       };
+};
+
+&ethernet {
+       status = "okay";
+       mtd-mac-address = <&factory 0x4>;
+
+       port@0 {
+               phy-handle = <&phy0>;
+               phy-mode = "mii";
+       };
+
+       mdio-bus {
+               status = "okay";
+
+               phy0: ethernet-phy@0 {
+                       phy-mode = "mii";
+                       reg = <0>;
+               };
+       };
+};
+
+&wmac {
+       status = "okay";
+       ralink,mtd-eeprom = <&factory 0>;
+};