From patchwork Wed Jul 8 13:19:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alpha Sparc X-Patchwork-Id: 492928 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 24827140295 for ; Wed, 8 Jul 2015 23:19:50 +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=IglxuMJj; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E675328BB81; Wed, 8 Jul 2015 15:19:20 +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 5B07E28BD4D for ; Wed, 8 Jul 2015 15:19:12 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-pa0-f48.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 8 Jul 2015 15:19:11 +0200 (CEST) Received: by pacgz10 with SMTP id gz10so58215769pac.3 for ; Wed, 08 Jul 2015 06:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=KLzUBbCxC+c66fbtuB0Q/4OWwoQTjxZQcogOSmA4Dkw=; b=IglxuMJje2Rddrs8qqooM5P13zIwA6q3c+bnddp6xdYw7oUEAxbb7lWfyDEQupXCav ehY57TRevq+RsQRrz7VUwpN5J1VsDK0Ainv8Jp5XNccUkaC0ly6YuOQ68hJAUXcPuXUc D3gnKDXRBm91b6+a+SKf0hfbceaIqm33uHjEphES501EIWn4DMT5wIKO/jwFn/8PEn19 iF7Ey+Q40uEInQDS42kYIqsXSKPmoIWWMfL3XEIQ/CJnAWHCAT3XNVWqyzjb2FvwT+Bw ET9vUPA08WHosOI/IulDReHt5mx7+YB8qKYqv+7m1i7xevUAInXXDw9mooL4IODqbN1C /4tQ== X-Received: by 10.68.219.101 with SMTP id pn5mr20644837pbc.77.1436361567170; Wed, 08 Jul 2015 06:19:27 -0700 (PDT) Received: from blueshift.localdomain ([116.88.186.89]) by smtp.googlemail.com with ESMTPSA id kp2sm2573023pab.12.2015.07.08.06.19.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 06:19:25 -0700 (PDT) From: gwlim To: openwrt-devel@lists.openwrt.org Date: Wed, 8 Jul 2015 21:19:22 +0800 Message-Id: <1436361562-8575-1-git-send-email-alphasparc@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [OpenWrt-Devel] [PATCH] Enable RFKill and USB Power GPIO Control for 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 --- .../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..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 */ + }; }; };