From patchwork Mon Oct 1 11:02:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Poddar, Sourav" X-Patchwork-Id: 1531001 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id CAA42DFFAD for ; Mon, 1 Oct 2012 11:04:52 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TIdlt-0002fQ-Kq; Mon, 01 Oct 2012 11:02:45 +0000 Received: from bear.ext.ti.com ([192.94.94.41]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TIdlp-0002dd-DH for linux-arm-kernel@lists.infradead.org; Mon, 01 Oct 2012 11:02:42 +0000 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id q91B2cFZ005440; Mon, 1 Oct 2012 06:02:39 -0500 Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id q91B2ckI029000; Mon, 1 Oct 2012 16:32:38 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Mon, 1 Oct 2012 16:32:38 +0530 Received: from a0131647.apr.dhcp.ti.com (smtpvbd.itg.ti.com [172.24.170.250]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with ESMTP id q91B2YuB019549; Mon, 1 Oct 2012 16:32:36 +0530 From: Sourav Poddar To: , , , , , Subject: [PATCHv3 3/4] arm/dts: omap5-evm: Add keypad support Date: Mon, 1 Oct 2012 16:32:04 +0530 Message-ID: <1349089324-22163-1-git-send-email-sourav.poddar@ti.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -9.0 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [192.94.94.41 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -2.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: santosh.shilimkar@ti.com, b-cousson@ti.com, balbi@ti.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add keypad data node in omap5-evm. Based on I2C support patch for omap5, which has been already posted as a different series. Tested on omap5430 evm with 3.6-rc6 custom kernel. Cc: Benoit Cousson Cc: Felipe Balbi Cc: Santosh Shilimkar Tested on omap5430 sdp with 3.666666 custom kernel. Signed-off-by: Sourav Poddar --- Changes since v2: - Change the compatible string name. arch/arm/boot/dts/omap5-evm.dts | 95 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 95 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts index 200c39a..2d8903b 100644 --- a/arch/arm/boot/dts/omap5-evm.dts +++ b/arch/arm/boot/dts/omap5-evm.dts @@ -18,3 +18,98 @@ reg = <0x80000000 0x40000000>; /* 1 GB */ }; }; + +&i2c5 { + clock-frequency = <400000>; + + smsc@38 { + compatible = "smscece1099"; + reg = <0x38>; + clock = <0x13>; + keypad { + compatible = "smsc,keypad"; + interrupt-parent = <&gpio5>; + interrupts = <23>; /* gpio line 151 */ + keypad,num-rows = <8>; + keypad,num-columns = <16>; + linux,keymap = < 0x20041 /* KEY_F7 */ + 0x30001 /* KEY_ESC */ + 0x4003e /* KEY_F4 */ + 0x50022 /* KEY_G */ + 0x70023 /* KEY_H */ + 0x9009a /* KEY_CYCLEWINDOWS */ + 0xc000e /* KEY_BACKSPACE */ + 0xd0057 /* KEY_F11 */ + 0xe009f /* KEY_FORWARD */ + 0xf006e /* KEY_INSERT */ + 0x1020036 /* KEY_RIGHTSHIFT */ + 0x1030011 /* KEY_W */ + 0x1040010 /* KEY_Q */ + 0x1050012 /* KEY_E */ + 0x1070013 /* KEY_R */ + 0x1080016 /* KEY_U */ + 0x10c0017 /* KEY_I */ + 0x10d0067 /* KEY_UP */ + 0x10e0018 /* KEY_O */ + 0x10f0019 /* KEY_LEFT */ + 0x2020003 /* KEY_2 */ + 0x2040004 /* KEY_1 */ + 0x2050005 /* KEY_3 */ + 0x2070008 /* KEY_4 */ + 0x2080009 /* KEY_7 */ + 0x20b0064 /* KEY_8 */ + 0x20c006c /* KEY_RIGHTALT */ + 0x20d000a /* KEY_DOWN */ + 0x20e0001 /* KEY_0 */ + 0x20f006a /* KEY_RIGHT */ + 0x3010061 /* KEY_RIGHTCTRL */ + 0x302001f /* KEY_S */ + 0x303001e /* KEY_A */ + 0x3040020 /* KEY_D */ + 0x3050021 /* KEY_F */ + 0x3070024 /* KEY_J */ + 0x3080025 /* KEY_K */ + 0x30c001c /* KEY_ENTER */ + 0x30d0026 /* KEY_L */ + 0x30e0027 /* KEY_SEMICOLON */ + 0x400002a /* KEY_LEFTSHIFT */ + 0x402002d /* KEY_X */ + 0x403002c /* KEY_Z */ + 0x404002e /* KEY_C */ + 0x405002f /* KEY_V */ + 0x4070032 /* KEY_M */ + 0x4080033 /* KEY_COMMA */ + 0x40c0039 /* KEY_SPACE */ + 0x40d0033 /* KEY_DOT */ + 0x40e0035 /* KEY_SLASH */ + 0x40f006b /* KEY_END */ + 0x501001d /* KEY_LEFTCTRL */ + 0x5020040 /* KEY_F6 */ + 0x503000f /* KEY_TAB */ + 0x504003d /* KEY_F3 */ + 0x5050014 /* KEY_T */ + 0x5070015 /* KEY_Y */ + 0x508001a /* KEY_LEFTBRACE */ + 0x50d0044 /* KEY_F10 */ + 0x50e001b /* KEY_RIGHTBRACE */ + 0x50f0066 /* KEY_HOME */ + 0x602003f /* KEY_F5 */ + 0x604003c /* KEY_F2 */ + 0x6050006 /* KEY_5 */ + 0x60601d0 /* KEY_FN */ + 0x6070007 /* KEY_6 */ + 0x60a008b /* KEY_MENU */ + 0x60c002b /* KEY_BACKSLASH */ + 0x60d0043 /* KEY_F9 */ + 0x7020042 /* KEY_F8 */ + 0x703003a /* KEY_CAPSLOCK */ + 0x704003b /* KEY_F1 */ + 0x7050030 /* KEY_B */ + 0x7070031 /* KEY_N */ + 0x70b0038 /* KEY_LEFTALT */ + 0x70d0058 /* KEY_F12 */ + 0x70f006f >; /* KEY_DELETE */ + linux,input-no-autorepeat; + }; + }; +};