Revert "ramips: improve interrupt mapping"
[oweals/openwrt.git] / target / linux / ramips / dts / WT1520.dtsi
index 1031e22749190a6a34fec0e6441fccb030fccd48..95886d7e2907dec6ff9db7f7d892f92ed7866b51 100644 (file)
@@ -1,5 +1,8 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "nexx,wt1520", "ralink,rt5350-soc";
 
                reg = <0x0 0x2000000>;
        };
 
-       chosen {
-               bootargs = "console=ttyS1,57600";
-       };
-};
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               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";
                };
        };