ramips: fix buttons on WHR-300HP2, WHR-1166D, WHR-600D
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 May 2015 22:42:32 +0000 (22:42 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 May 2015 22:42:32 +0000 (22:42 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45845

target/linux/ramips/dts/WHR-1166D.dts
target/linux/ramips/dts/WHR-300HP2.dts
target/linux/ramips/dts/WHR-600D.dts

index 960c3e176c632a903ef124d2b1a2b8136ee3583c..3e62ece9b0539f5b47678101ab7f6c2f8901419e 100644 (file)
                #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 */
                };
        };
 };
index 27e741c55bc787030a15c72c16d6cac33a5c6bdb..1ccfa2bb4dbd97f976d72f9358166c7e5714b35f 100644 (file)
                #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 */
                };
        };
 };
index fdacdead24a5b87c662d0b1c2ba62f3542b225f2..b6d4e423206e2d72f64e80ff442e68430acf8bfb 100644 (file)
                #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 */
                };
        };
 };