ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / Y1.dtsi
index 26322dd07d14139f054f61334d0589a31f535165..1d5f1ef074355fe7f34999e2bb7e33283d0934a0 100644 (file)
@@ -1,5 +1,7 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
@@ -14,7 +16,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -93,7 +95,7 @@
 };
 
 &pinctrl {
-       state_default {
+       state_default: pinctrl0 {
                gpio {
                        ralink,group = "uartf", "wled", "nd_sd";
                        ralink,function = "gpio";