[OpenWrt-Devel] [PATCH 1/2] ramips: fix mode switch gpio for AsiaRF AWM eval board

Russell Senior russell at personaltelco.net
Mon Jul 28 04:17:47 EDT 2014


Fix a typo: gpio 21 is already used for the WPS led.  Gpio 20 is the
right one (tested) for the mode switch.  Confirmed that
/sys/kernel/debug/gpio state followed the position of the switch.

Signed-off-by: Russell Senior <russell at personaltelco.net>
---
 target/linux/ramips/dts/AWM002-EVB-4M.dts | 2 +-
 target/linux/ramips/dts/AWM002-EVB-8M.dts | 2 +-
 target/linux/ramips/dts/AWM003-EVB.dts    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/ramips/dts/AWM002-EVB-4M.dts b/target/linux/ramips/dts/AWM002-EVB-4M.dts
index 12887d8..cf686e5 100644
--- a/target/linux/ramips/dts/AWM002-EVB-4M.dts
+++ b/target/linux/ramips/dts/AWM002-EVB-4M.dts
@@ -37,7 +37,7 @@
 		};
 		mode {
 			label = "mode";
-			gpios = <&gpio0 21 1>;
+			gpios = <&gpio0 20 1>;
 			linux,code = <0x32>;
 		};
 	};
diff --git a/target/linux/ramips/dts/AWM002-EVB-8M.dts b/target/linux/ramips/dts/AWM002-EVB-8M.dts
index 3be34bf..685b227 100644
--- a/target/linux/ramips/dts/AWM002-EVB-8M.dts
+++ b/target/linux/ramips/dts/AWM002-EVB-8M.dts
@@ -37,7 +37,7 @@
 		};
 		mode {
 			label = "mode";
-			gpios = <&gpio0 21 1>;
+			gpios = <&gpio0 20 1>;
 			linux,code = <0x32>;
 		};
 	};
diff --git a/target/linux/ramips/dts/AWM003-EVB.dts b/target/linux/ramips/dts/AWM003-EVB.dts
index 4227965..35d4886 100644
--- a/target/linux/ramips/dts/AWM003-EVB.dts
+++ b/target/linux/ramips/dts/AWM003-EVB.dts
@@ -56,7 +56,7 @@
 		};
 		mode {
 			label = "mode";
-			gpios = <&gpio0 21 1>;
+			gpios = <&gpio0 20 1>;
 			linux,code = <0x32>;
 		};
 	};
-- 
2.0.0



-- 
Russell Senior, President
russell at personaltelco.net
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list