diff mbox

[OpenWrt-Devel] Enable RFKill and USB Power GPIO Control for WDR4900v1

Message ID 1436361562-8575-1-git-send-email-alphasparc@gmail.com
State Changes Requested
Headers show

Commit Message

Alpha Sparc July 8, 2015, 1:19 p.m. UTC
This patch adds the RFKill GPIO control switch and enables another GPIO to
 control power supply to USB Ports by emulating an LED GPIO.
 
 Signed-off-by: Guo Wei Lim <alphasparc@gmail.com>

---
 
 .../mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts     | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Rafał Miłecki July 8, 2015, 2:13 p.m. UTC | #1
On 8 July 2015 at 15:19, gwlim <alphasparc@gmail.com> wrote:
>  This patch adds the RFKill GPIO control switch and enables another GPIO to
>  control power supply to USB Ports by emulating an LED GPIO.
>
>  Signed-off-by: Guo Wei Lim <alphasparc@gmail.com>

Looks better.
1) Use "mpc85xx: " prefix as already requested
2) Don't prepend every commit message line with a space
diff mbox

Patch

diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
index 2beb39c..0abc297 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
@@ -198,6 +198,11 @@ 
 			gpios = <&gpio0 4 1>; /* active low */
 			label = "tp-link:green:usb2";
 		};
+		
+		usbpower {
+			gpios = <&gpio0 10 1>; /* active low */
+			label = "tp-link:usb:power";
+		};
 	};
 
 	buttons {
@@ -208,6 +213,12 @@ 
 			gpios = <&gpio0 5 1>; /* active low */
 			linux,code = <0x198>; /* KEY_RESTART */
 		};
+
+		rfkill {
+			label = "RFKILL switch";
+			gpios = <&gpio0 11 1>; /* active low */
+			linux,code = <0xf7>; /* RFKill */
+		};
 	};
 };