ramips: drop not existing groups from pinmux
[openwrt/openwrt.git] / target / linux / ramips / dts / WT1520.dtsi
index 4c889d1d1d89b4e196a26794c2ff5c4379272907..1a383876a31643d13c6f5640e90dd6421875fbce 100644 (file)
@@ -1,28 +1,32 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "NEXXWT1520", "ralink,rt5350-soc";
+       compatible = "nexx,wt1520", "ralink,rt5350-soc";
 
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x2000000>;
        };
 
-       chosen {
-               bootargs = "console=ttyS1,57600";
-       };
-};
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               poll-interval = <20>;
 
-&uart {
-       pinctrl-names = "default";
-       pinctrl-0 = <&uartf_pins>;
-       status = "okay";
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+       };
 };
 
 &pinctrl {
        state_default: pinctrl0 {
                gpio {
-                       ralink,group = "jtag";
+                       ralink,group = "jtag", "uartf";
                        ralink,function = "gpio";
                };
        };