ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / PSR-680W.dts
index f91eb2fe7f725e08f1e49fad778b552a13d8edb4..f749a4e5899472b1ae24d06b27da87a10bf868fa 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        compatible = "PSR-680W", "ralink,rt3052-soc";
                bootargs = "console=ttyS0,115200";
        };
 
-       palmbus@10000000 {
-               sysc@0 {
-                       ralink,pinmux = "i2c", "uartlite", "sdram";
-                       ralink,gpiomux = "spi", "jtag", "mdio", "rgmii";
-                       ralink,uartmux = "i2s uartf";
-                       ralink,wdtmux = <1>;
-               };
-
-               gpio0: gpio@600 {
-                       status = "okay";
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
-
                bank-width = <2>;
                device-width = <2>;
                #address-cells = <1>;
                };
        };
 
-       ethernet@10100000 {
-               status = "okay";
-       };
-
-       esw@10110000 {
-               status = "okay";
-               ralink,portmap = <0x3e>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
+
                wan {
                        label = "psr-680w:red:wan";
                        gpios = <&gpio0 19 1>;
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <20>;
+
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
+};
 
-       wmac@10180000 {
-               status = "okay";
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
+};
 
-       otg@101c0000 {
-               status = "okay";
-       };
+&ethernet {
+       mtd-mac-address = <&factory 0x4>;
+};
+
+&esw {
+       mediatek,portmap = <0x3e>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+       status = "okay";
 };