ramips: fix buttons on WHR-300HP2, WHR-1166D, WHR-600D
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WHR-300HP2.dts
index 28917fec93fae22863dad41aa011bd1c9e377a94..1ccfa2bb4dbd97f976d72f9358166c7e5714b35f 100644 (file)
 
                                partition@50000 {
                                        label = "firmware";
-                                       reg = <0x50000 0x5b0000>;
-                               };
-
-                               partition@600000 {
-                                       label = "usercfg";
-                                       reg = <0x600000 0x100000>;
+                                       reg = <0x50000 0x7b0000>;
                                };
                        };
                };
                ralink,port4 = "ephy";
        };
 
+       wmac@10180000 {
+               ralink,mtd-eeprom = <&factory 0>;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
                power {
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <20>;
-               s1 {
+               reset {
                        label = "reset";
                        gpios = <&gpio2 12 1>;
-                       linux,code = <0x100>;
+                       linux,code = <0x198>;
                };
-               s2 {
+               aoss {
                        label = "aoss";
                        gpios = <&gpio2 13 1>;
-                       linux,code = <0x101>;
+                       linux,code = <0x211>;
                };
-               s3 {
+               ap {
                        label = "ap";
                        gpios = <&gpio2 14 1>;
-                       linux,code = <0x102>;
+                       linux,code = <0x100>;
+                       linux,input-type = <5>; /* EV_SW */
                };
-               s4 {
+               bridge {
                        label = "bridge";
                        gpios = <&gpio2 15 1>;
-                       linux,code = <0x103>;
+                       linux,code = <0x100>;
+                       linux,input-type = <5>; /* EV_SW */
                };
        };
 };