Re: [OpenWrt-Devel] [PATCH] mpc85xx: Enable RFKill and USB Power GPIO Control for WDR4900v1

2015-07-08 Thread Rafał Miłecki
On 8 July 2015 at 17:00, gwlim  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 for WDR4900v1.
>
> Signed-off-by: Guo Wei Lim 

The patch format looks fine :) The commit message could use a line
break, but I'm sure commiter can handle that if he cares at all.

Thanks for working on it!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


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

2015-07-08 Thread gwlim
This patch adds the RFKill GPIO control switch and enables another GPIO to 
control power supply to USB Ports by emulating an LED GPIO for WDR4900v1.

Signed-off-by: Guo Wei Lim 

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

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..148c7a2 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 */
+   };
};
 };
 
-- 
1.8.3.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel