ramips: update device tree source files
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / RT-N10-PLUS.dts
index ecd732e285f66bb5c58ee8243c841fc61e99199b..a55d06f1b3fdaeb27bbb253bb4f73be28cc3c781 100644 (file)
@@ -1,9 +1,12 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
-       compatible = "RT-N10-PLUS", "ralink,rt3050-soc";
+       compatible = "asus,rt-n10-plus", "ralink,rt3050-soc";
        model = "Asus RT-N10+";
 
        cfi@1f000000 {
                };
        };
 
-       ethernet@10100000 {
-               mtd-mac-address = <&devconf 0x4>;
-       };
-
-       esw@10110000 {
-               mediatek,portmap = <0x3e>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&devconf 0>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
 
                wps {
                        label = "rt-n10-plus:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
+
+&ethernet {
+       mtd-mac-address = <&devconf 0x4>;
+};
+
+&esw {
+       mediatek,portmap = <0x3e>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&devconf 0>;
+};