aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-29 22:42:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-29 22:42:32 +0000
commite9458de87e4664e7c358f0a39de118a9d55e3b46 (patch)
tree45eb325c6b1165ab9a936ed640b7bb9fc3eafb2e
parent511263a3e6d200876490a58284101c9c155b7f0c (diff)
downloadmaster-187ad058-e9458de87e4664e7c358f0a39de118a9d55e3b46.tar.gz
master-187ad058-e9458de87e4664e7c358f0a39de118a9d55e3b46.tar.bz2
master-187ad058-e9458de87e4664e7c358f0a39de118a9d55e3b46.zip
ramips: fix buttons on WHR-300HP2, WHR-1166D, WHR-600D
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45845 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/dts/WHR-1166D.dts18
-rw-r--r--target/linux/ramips/dts/WHR-300HP2.dts18
-rw-r--r--target/linux/ramips/dts/WHR-600D.dts18
3 files changed, 30 insertions, 24 deletions
diff --git a/target/linux/ramips/dts/WHR-1166D.dts b/target/linux/ramips/dts/WHR-1166D.dts
index 960c3e176c..3e62ece9b0 100644
--- a/target/linux/ramips/dts/WHR-1166D.dts
+++ b/target/linux/ramips/dts/WHR-1166D.dts
@@ -135,25 +135,27 @@
#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 */
};
};
};
diff --git a/target/linux/ramips/dts/WHR-300HP2.dts b/target/linux/ramips/dts/WHR-300HP2.dts
index 27e741c55b..1ccfa2bb4d 100644
--- a/target/linux/ramips/dts/WHR-300HP2.dts
+++ b/target/linux/ramips/dts/WHR-300HP2.dts
@@ -113,25 +113,27 @@
#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 */
};
};
};
diff --git a/target/linux/ramips/dts/WHR-600D.dts b/target/linux/ramips/dts/WHR-600D.dts
index fdacdead24..b6d4e42320 100644
--- a/target/linux/ramips/dts/WHR-600D.dts
+++ b/target/linux/ramips/dts/WHR-600D.dts
@@ -114,25 +114,27 @@
#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 */
};
};
};