From patchwork Fri Jan 30 07:19:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wengbj X-Patchwork-Id: 434747 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.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 09BB41402AE for ; Fri, 30 Jan 2015 18:20:23 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4B54D28BEE3; Fri, 30 Jan 2015 08:17:45 +0100 (CET) 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 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9266728BEDF for ; Fri, 30 Jan 2015 08:17:39 +0100 (CET) X-policyd-weight: using cached result; rate: -5.5 Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.99.132]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 30 Jan 2015 08:17:39 +0100 (CET) Received: from fl.service?t-firefly.com (unknown [192.168.167.128]) by regular1.263xmail.com (Postfix) with SMTP id 5569F8808; Fri, 30 Jan 2015 15:18:42 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 1 Received: from mae.263xmail.com (unknown [121.41.47.161]) by smtp.263.net (Postfix) with ESMTP id AE3B11F86E; Fri, 30 Jan 2015 15:18:39 +0800 (CST) Received: from fl.service?t-firefly.com (localhost [127.0.0.1]) by mae.263xmail.com (Postfix) with SMTP id 389378BC9E; Fri, 30 Jan 2015 15:18:43 +0800 (CST) X-MAE-MAIL_UID: 0054cb305302623d@maes@fb8f168306ebcbe8 X-MAE-ID: 223.6.254.61 X-RL-NAME: fl.service@t-firefly.com X-LOGIN-NAME: fl.service@t-firefly.com X-SENDER-IP: 183.32.185.92 X-SENDER: fl.service@t-firefly.com From: wengbj To: blogic@openwrt.org Date: Fri, 30 Jan 2015 15:19:14 +0800 Message-Id: <1422602354-23358-3-git-send-email-fl.service@t-firefly.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1422602354-23358-1-git-send-email-fl.service@t-firefly.com> References: <1422602354-23358-1-git-send-email-fl.service@t-firefly.com> Cc: fl.service@t-firefly.com, zxf@t-chip.com.cn, linux.c@foxmail.com, dxj@t-chip.com.cn, wbj@t-chip.com.cn, openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH 3/3] ralink: add FireWRT button detail 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" --- target/linux/ramips/dts/FIREWRT.dts | 12 ++++++++++++ target/linux/ramips/mt7621/profiles/firefly.mk | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index ddad8bf..58049b7 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -92,4 +92,16 @@ }; }; + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + wps { + label = "wps"; + gpios = <&gpio0 18 1>; + linux,code = <0x211>; + }; + }; + }; diff --git a/target/linux/ramips/mt7621/profiles/firefly.mk b/target/linux/ramips/mt7621/profiles/firefly.mk index c8292b0..b095979 100644 --- a/target/linux/ramips/mt7621/profiles/firefly.mk +++ b/target/linux/ramips/mt7621/profiles/firefly.mk @@ -8,7 +8,7 @@ define Profile/Firefly NAME:=Firefly Device PACKAGES:=\ - kmod-usb-core kmod-usb3 kmod-usb-hid kmod-usb-storage mount-utils usbutils \ + kmod-usb-core kmod-usb3 kmod-usb-hid kmod-usb-storage mount-utils usbutils hostapd-utils \ kmod-sdhci-mt7620 \ kmod-fs-ext3 kmod-fs-vfat kmod-fs-ntfs \ kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 \