From patchwork Tue Jul 7 16:50:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alpha Sparc X-Patchwork-Id: 492403 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9FB531402C7 for ; Wed, 8 Jul 2015 02:51:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RLaKiQMq; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 634F928436A; Tue, 7 Jul 2015 18:50:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E225D280264 for ; Tue, 7 Jul 2015 18:50:09 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 7 Jul 2015 18:50:09 +0200 (CEST) Received: by wgjx7 with SMTP id x7so173244290wgj.2 for ; Tue, 07 Jul 2015 09:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/M4M118E9ObJ/ca91QJlclZhV1XoLv9QpjdxBAx8ZYA=; b=RLaKiQMqAlhLF2B7DwdE+UIrrvkemAP76MGtw4sd4759yEs9Pq5QUdjYPj/UeelPp7 OjK+6fRB2Q/ivp/Obqk/H0RyBQedsy/RFh8pnlw2gDD7yXYPXGmHKHAkteTrMFLOtmVA +dHY7XKiv3bYBWj1coJQ7Owrk5PzXV4keh1L+ujnBpZ0i7nkk2iygTDI5InsxxbU0Jzh PHAGENkLfEcLPGDw1jEhydT/NKjsIs3NFrSavukt3NjrBGbo6N4hwrCCOTLniSCbRgWz m/C0Qo9WornJQyFO2UzNtV95oGqlK2pSoeeIjh1wyRtAKBuZAo2Lo0hzeIkkH68KZUxA ACug== MIME-Version: 1.0 X-Received: by 10.194.93.3 with SMTP id cq3mr10177950wjb.20.1436287826435; Tue, 07 Jul 2015 09:50:26 -0700 (PDT) Received: by 10.28.54.75 with HTTP; Tue, 7 Jul 2015 09:50:24 -0700 (PDT) Date: Wed, 8 Jul 2015 00:50:24 +0800 Message-ID: From: Alpha Sparc To: openwrt-devel Subject: [OpenWrt-Devel] [PATCH] Enable RFKill and USB Power GPIO for tl-wdr4900v1 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel --- 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 */ + }; }; }; _______________________________________________