From patchwork Wed Nov 13 23:03:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3180041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 64941C045B for ; Wed, 13 Nov 2013 23:03:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 69B6620945 for ; Wed, 13 Nov 2013 23:03:47 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 503A420944 for ; Wed, 13 Nov 2013 23:03:46 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgjTB-0002RC-Gg; Wed, 13 Nov 2013 23:03:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgjT9-0007ZX-7R; Wed, 13 Nov 2013 23:03:31 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgjT5-0007ZD-Fu for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2013 23:03:28 +0000 Received: by mail-pa0-f47.google.com with SMTP id ld10so1145454pab.20 for ; Wed, 13 Nov 2013 15:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=doNUgFQBh2P4kQMkDqsvgerjzzE6igg2oUmDVLCOmak=; b=KgvRnn39MCQM0yGGBxeLuD0JSH/GzegViThIykhojr5nn9v0nip+EU7lKYGGiwaCHP OJXd6QYkDIwYDfoZqIxTYOIt/7U+qSC7qSh/OkizRyAmBOy6URuc5eRA8xv9pYu4hq1x VVGw0AK0PaLLSnrWhvCA2xxWoGlMaIzjYlD8HouqGJXhYZNnMRGihsAjHoEcMzNdBsiS 5qlJlTK2EKAUV6wduDCDIdlI7J806mP/qzxIXWKmk3fcv+AedkxqlJt+qNhppgnAJdLo K23b9c122Q4HFgLEcOlW0oIwlvUn0Hd6JuBGIkc3MlYkoupSJoXPsJK/xtWBaLJAdAnw ancg== X-Received: by 10.66.26.209 with SMTP id n17mr25180268pag.25.1384383785590; Wed, 13 Nov 2013 15:03:05 -0800 (PST) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id ed3sm46898770pbc.6.2013.11.13.15.03.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Nov 2013 15:03:04 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 14 Nov 2013 08:03:45 +0900 Message-Id: <20131113230345.21482.36997.sendpatchset@w520> Subject: [PATCH] ARM: shmobile: Enable DSW2 with gpio-keys on KZM9D X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131113_180327_670513_4B35C145 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Use the gpio-keys driver to support the 4 pins on the dip switch DSW2 which is mounted on the KZM9D board. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/emev2-kzm9d.dts | 39 ++++++++++++++++++++++++++++++++++++- arch/arm/boot/dts/emev2.dtsi | 2 - 2 files changed, 39 insertions(+), 2 deletions(-) --- 0001/arch/arm/boot/dts/emev2-kzm9d.dts +++ work/arch/arm/boot/dts/emev2-kzm9d.dts 2013-11-13 20:21:27.000000000 +0900 @@ -9,7 +9,9 @@ */ /dts-v1/; -/include/ "emev2.dtsi" +#include "emev2.dtsi" +#include +#include / { model = "EMEV2 KZM9D Board"; @@ -54,4 +56,39 @@ vddvario-supply = <®_1p8v>; vdd33a-supply = <®_3p3v>; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + button@1 { + debounce_interval = <50>; + wakeup = <1>; + label = "DSW2-1"; + linux,code = ; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + button@2 { + debounce_interval = <50>; + wakeup = <1>; + label = "DSW2-2"; + linux,code = ; + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; + }; + button@3 { + debounce_interval = <50>; + wakeup = <1>; + label = "DSW2-3"; + linux,code = ; + gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + }; + button@4 { + debounce_interval = <50>; + wakeup = <1>; + label = "DSW2-4"; + linux,code = ; + gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; + }; + }; }; --- 0001/arch/arm/boot/dts/emev2.dtsi +++ work/arch/arm/boot/dts/emev2.dtsi 2013-11-13 20:20:03.000000000 +0900 @@ -8,7 +8,7 @@ * kind, whether express or implied. */ -/include/ "skeleton.dtsi" +#include "skeleton.dtsi" / { compatible = "renesas,emev2";