ramips: add missing partitions
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WL-341V3.dts
index 47226b47d9fd0fee064c399c34fde2ce73995ae1..e8b6d689de4dec5206c9d811fd9251bda95e090c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WL-341V3", "ralink,rt3052-soc";
        model = "Sitecom WL-341 v3";
                };
        };
 
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
-       ethernet@10100000 {
-               mtd-mac-address = <&boardnvram 0xffa0>;
-       };
-
-       esw@10110000 {
-               mediatek,portmap = <0x3e>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&boardnvram 0xfd70>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 5 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
+};
 
-       otg@101c0000 {
-               status = "okay";
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
 };
+
+&ethernet {
+       mtd-mac-address = <&boardnvram 0xffa0>;
+};
+
+&esw {
+       mediatek,portmap = <0x3e>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&boardnvram 0xfd70>;
+};
+
+&otg {
+       status = "okay";
+};