ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / DAP-1350.dts
index ce529459f888646d12d1e1cc3f3d11658f6dba0f..c3225db9527ba333bd8c1b4f24445c14763d9119 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        compatible = "DAP-1350", "ralink,rt3052-soc";
                bootargs = "console=ttyS0,115200";
        };
 
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                };
        };
 
-       ethernet@10100000 {
-               mtd-mac-address = <&devdata 0x2e>;
-       };
-
-       esw@10110000 {
-               ralink,portmap = <0x2f>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&devdata 0>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                rt {
                        label = "rt";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
+};
 
-       otg@101c0000 {
-               status = "okay";
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
 };
+
+&ethernet {
+       mtd-mac-address = <&devdata 0x2e>;
+};
+
+&esw {
+       mediatek,portmap = <0x2f>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&devdata 0>;
+};
+
+&otg {
+       status = "okay";
+};