From patchwork Sun Feb 28 10:20:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 8445611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 432CE9F314 for ; Sun, 28 Feb 2016 10:23:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 349A720279 for ; Sun, 28 Feb 2016 10:23:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6062A20274 for ; Sun, 28 Feb 2016 10:23:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aZyTQ-0003nt-Jk; Sun, 28 Feb 2016 10:21:12 +0000 Received: from gagarine.paulk.fr ([109.190.93.129]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aZyTN-0003kX-88 for linux-arm-kernel@lists.infradead.org; Sun, 28 Feb 2016 10:21:10 +0000 Received: by gagarine.paulk.fr (Postfix, from userid 65534) id 651C020449; Sun, 28 Feb 2016 11:20:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from armstrong.paulk.fr (armstrong.paulk.fr [82.233.88.171]) by gagarine.paulk.fr (Postfix) with ESMTPS id 571F42040E; Sun, 28 Feb 2016 11:20:28 +0100 (CET) Received: from localhost.localdomain (aldrin [192.168.0.128]) by armstrong.paulk.fr (Postfix) with ESMTP id 0A94437813; Sun, 28 Feb 2016 11:20:27 +0100 (CET) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] ARM: dts: omap3-sniper: TWL4030 keypad support Date: Sun, 28 Feb 2016 11:20:26 +0100 Message-Id: <1456654827-11349-4-git-send-email-contact@paulk.fr> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1456654827-11349-1-git-send-email-contact@paulk.fr> References: <1456654827-11349-1-git-send-email-contact@paulk.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160228_022109_696410_465B3014 X-CRM114-Status: GOOD ( 13.04 ) X-Spam-Score: -1.1 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , Tony Lindgren , Liam Girdwood , Paul Kocialkowski , Rob Herring , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Kumar Gala , Javier Martinez Canillas , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for the volume and gesture keys, using TWL4030 keypad. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/omap3-sniper.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts index 21d6afa..7f38d58 100644 --- a/arch/arm/boot/dts/omap3-sniper.dts +++ b/arch/arm/boot/dts/omap3-sniper.dts @@ -8,6 +8,7 @@ /dts-v1/; #include "omap36xx.dtsi" +#include / { model = "LG Optimus Black"; @@ -226,6 +227,14 @@ #include "twl4030.dtsi" #include "twl4030_omap3.dtsi" +&twl_keypad { + linux,keymap = < + MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP) + MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN) + MATRIX_KEY(0x02, 0x00, KEY_SELECT) + >; +}; + /* * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3. * When not powered, these sensors cause the I2C3 clock to stay low at all times,