From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88E02C2BA15 for ; Sun, 5 Apr 2020 02:04:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A1F120672 for ; Sun, 5 Apr 2020 02:04:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KjlR4Cs+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="CDnjp3IV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A1F120672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=n2HMWlYt4/5sWZDZbwE7T+zKclBABhEeTO8iyfOcy68=; b=KjlR4Cs+bXEMvx RWOh6xcMF8QSL3tAkEu4ZxtJ+mZ8QisQwJUGXVso/UItC+KHMNtPwCB82acblWO9OsJfbE/Sj0c1x 7o4XKTouYL6AcmWE2oAtFvQcnAse2q2vwDw2MuMT5NhAE2efSOiIk7364SY8iX0lI84WDvCqfxPTn 9gue9BWm8wPTWsiiaPJW1WVFchomVEpKh0TDwvWrEIN6TSOZOmm/O67D7zYRa+9588T0A9UgXF6nG 4u7au14q3f16u7JzBsrrF1gdPW0i/wCAvqMMxnQYu2DeljkvWWofsKaOeMc6NR4x5dFr04YSFCsx3 ayJ0STtLdrDRelYv//cQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKueU-0004By-SE; Sun, 05 Apr 2020 02:04:46 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKueS-0004BU-Vt for linux-mediatek@lists.infradead.org; Sun, 05 Apr 2020 02:04:46 +0000 X-UUID: 94687869bf804549ba6d8a09c3aea409-20200404 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=6C3FlHQGtBSdpwcN0CT4YS5wT7BtTafM/xlh39vjWCw=; b=CDnjp3IVAFpw/2MnoqCmu/DqMax5bkp32pdHIiv8A8A88ldWdErkvPMCI2DOfaehqI1widqRazlyJRJ4DdUX8bzpzbc/SW85Fn8pBAoyImYn3O1CfDB4NpRo273GasplPM/lD4V7KFZ2yQ9wf0vV90LhlvzfFythaoOCKBpW9t0=; X-UUID: 94687869bf804549ba6d8a09c3aea409-20200404 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1749151056; Sat, 04 Apr 2020 18:04:34 -0800 Received: from MTKMBS02N1.mediatek.inc (172.21.101.77) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 4 Apr 2020 19:04:32 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 5 Apr 2020 10:04:13 +0800 Received: from localhost.localdomain (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 5 Apr 2020 10:04:13 +0800 From: Fengping yu To: Dmitry Torokhov , Andy Shevchenko , Yingjoe Chen Subject: [PATCH v3] Add support for MediaTek keypad Date: Sun, 5 Apr 2020 10:01:13 +0800 Message-ID: <20200405020114.14787-1-fengping.yu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200404_190445_028535_5CE0AE79 X-CRM114-Status: UNSURE ( 6.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org This patchset add support to MediaTek matrix keypad. Change since V2: - remove extra space and redundant lines - update keypad devicetree document debounce time unit - change to use devm_platform_ioremap_resource() to simplify resource management - use bitmap to store and check keypad state fengping.yu (2): add dt-binding document for MediaTek Keypad add MediaTek keypad driver .../devicetree/bindings/input/mtk-kpd.txt | 61 +++++ arch/arm64/configs/defconfig | 1 + drivers/input/keyboard/Kconfig | 7 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-kpd.c | 258 ++++++++++++++++++ 5 files changed, 328 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mtk-kpd.txt create mode 100644 drivers/input/keyboard/mtk-kpd.c -- 2.18.0 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek