From patchwork Mon Aug 13 10:05:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Poddar, Sourav" X-Patchwork-Id: 1311601 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 335B4DF223 for ; Mon, 13 Aug 2012 10:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751566Ab2HMKFE (ORCPT ); Mon, 13 Aug 2012 06:05:04 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:52684 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762Ab2HMKER (ORCPT ); Mon, 13 Aug 2012 06:04:17 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id q7DA48OT017705; Mon, 13 Aug 2012 05:04:09 -0500 Received: from DBDE70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id q7DA48J1023490; Mon, 13 Aug 2012 15:34:08 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by dbde70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 14.1.323.3; Mon, 13 Aug 2012 15:34:08 +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 q7DA42YX024620; Mon, 13 Aug 2012 15:34:08 +0530 From: Sourav Poddar To: , , , CC: Sourav Poddar , Benoit Cousson , Felipe Balbi , Santosh Shilimkar Subject: [PATCH 3/4] arm/dts: omap5-evm: Add keypad data Date: Mon, 13 Aug 2012 15:35:12 +0530 Message-ID: <1344852313-30484-4-git-send-email-sourav.poddar@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1344852313-30484-1-git-send-email-sourav.poddar@ti.com> References: <1344852313-30484-1-git-send-email-sourav.poddar@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add keypad data node in omap5 device tree file. Also fill the device tree binding parameters with the required value in "omap5-evm" dts file. Tested on omap5430 evm with 3.5 custom kernel. Cc: Benoit Cousson Cc: Felipe Balbi Cc: Santosh Shilimkar Acked-by: Felipe Balbi Signed-off-by: Sourav Poddar --- v1->v2 Add key names as comments arch/arm/boot/dts/omap5-evm.dts | 12 ++++++++++++ arch/arm/boot/dts/omap5.dtsi | 5 +++++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts index 45a8aeb..c2ea189 100644 --- a/arch/arm/boot/dts/omap5-evm.dts +++ b/arch/arm/boot/dts/omap5-evm.dts @@ -17,6 +17,18 @@ device_type = "memory"; reg = <0x80000000 0x40000000>; /* 1 GB */ }; + + keypad { + keypad,num-rows = <8>; + keypad,num-columns = <8>; + linux,keymap = < 0x02020073 /* VOLUP */ + 0x02030072 /* VOLDOWM */ + 0x020400e7 /* SEND */ + 0x02050066 /* HOME */ + 0x0206006b /* END */ + 0x020700d9 >; /* SEARCH */ + linux,input-no-autorepeat; + }; }; &i2c4 { diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index 6b68dfe..c38b823 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -216,4 +216,9 @@ clock-frequency = <48000000>; }; }; + + keypad { + compatible = "ti,omap4-keypad"; + ti,hwmods = "kbd"; + }; };