ramips: fix WHR-600D eeprom dt property
[openwrt/staging/lynxis/omap.git] / target / linux / ramips / dts / WHR-600D.dts
index 67e9ba93ab49c276919e07d571e6637a4aa7df18..1100261da99c735ca344bf860dd41e5b1ec6f8b4 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Buffalo WHR-600D";
                reset {
                        label = "reset";
                        gpios = <&gpio2 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio2 13 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio2 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
                        gpios = <&gpio2 15 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
@@ -90,8 +92,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "mx25l6405d";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {
 
 &pcie {
        status = "okay";
+
+       pcie-bridge {
+               wifi@1814,5592 {
+                       compatible = "pci1814,5592";
+                       reg = <0x0000 0 0 0 0>;
+                       ralink,mtd-eeprom = <&factory 0x8000>;
+               };
+       };
 };