ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / PSG1218.dts
index e477ee503839dcba91d2fb3d253ce363b837fbc8..b777c9b1f28966257d9834f71ae0f0e49e6a0370 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "PSG1218", "ralink,mt7620a-soc";
        model = "Phicomm PSG1218";
 
                blue {
                        label = "psg1218:blue:status";
-                       gpios = <&gpio0 10 0>;
+                       gpios = <&gpio0 10 1>;
                };
 
                yellow {
                        label = "psg1218:yellow:status";
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 1>;
                };
 
                red {
                        label = "psg1218:red:status";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 0>;
                };
        };
 
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };