ramips: move common parts into dtsi
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / WT3020-4M.dts
index 0d6e57399502e1f18db0e380edbead8a9127d5e5..f7e87c6734e5f56db880732c7e0b0b7b023873db 100644 (file)
@@ -1,43 +1,10 @@
 /dts-v1/;
 
-#include "mt7620n.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
+#include "WT3020.dtsi"
 
 / {
        compatible = "nexx,wt3020-4m", "nexx,wt3020", "ralink,mt7620n-soc";
        model = "Nexx WT3020 (4M)";
-
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               poll-interval = <20>;
-
-               reset {
-                       label = "reset";
-                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
-               };
-       };
-
-       gpio-leds {
-               compatible = "gpio-leds";
-
-               power {
-                       label = "wt3020:blue:power";
-                       gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
-               };
-       };
-};
-
-&gpio2 {
-       status = "okay";
-};
-
-&gpio3 {
-       status = "okay";
 };
 
 &spi0 {
                };
        };
 };
-
-&ehci {
-       status = "okay";
-};
-
-&ohci {
-       status = "okay";
-};
-
-&ethernet {
-       mtd-mac-address = <&factory 0x4>;
-       mediatek,portmap = "wllll";
-};
-
-&wmac {
-       ralink,mtd-eeprom = <&factory 0>;
-};
-
-&pinctrl {
-       state_default: pinctrl0 {
-               default {
-                       ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
-                       ralink,function = "gpio";
-               };
-       };
-};