ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / WR512-3GN-4M.dts
index 45e1463bf0f5f4d9ab34a6d380da5c3adc0f5e73..966faf2fd56a19fd6d0613d83745e2cc9399e99c 100644 (file)
@@ -2,9 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WR512-3GN", "ralink,rt3052-soc";
-       model = "WR512-3GN-like router";
+       model = "WR512-3GN (4M)";
 
        cfi@1f000000 {
                compatible = "cfi-flash";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x32>;
+                       linux,code = <BTN_0>;
                };
        };
 };