diff mbox

[OpenWrt-Devel] Enable RFKill and USB Power GPIO for tl-wdr4900v1

Message ID CAN4tgbzYWiYopnEgRgZqP60CxOwBbn7zJar=+BOJY1xPEuWmRA@mail.gmail.com
State Changes Requested
Headers show

Commit Message

Alpha Sparc July 7, 2015, 4:50 p.m. UTC
Add dts patch to enable RFKill and USB Power GPIO Control
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>

openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Comments

John Crispin July 7, 2015, 5:57 p.m. UTC | #1
Hi,

the last line of the patch is missing. patchwork therefore pics up the
line with the dashes as the last one and because of that git am
complains. could you try to fix that ?

	John


On 07/07/2015 18:50, Alpha Sparc wrote:
> Add dts patch to enable RFKill and USB Power GPIO Control
> 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>
> 
> --- 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 */
> +        };
>      };
>  };
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
diff mbox

Patch

--- 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 */
+        };
     };
 };
_______________________________________________