From patchwork Wed Aug 17 19:03:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9286351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 39C7760459 for ; Wed, 17 Aug 2016 19:05:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 278602935B for ; Wed, 17 Aug 2016 19:05:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BA1129599; Wed, 17 Aug 2016 19:05:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 9A9592958C for ; Wed, 17 Aug 2016 19:05:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1ba67k-0005VK-VX; Wed, 17 Aug 2016 19:03:36 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1ba67f-0005Q9-CU for linux-arm-kernel@lists.infradead.org; Wed, 17 Aug 2016 19:03:33 +0000 Received: by mail-wm0-x229.google.com with SMTP id i5so491290wmg.0 for ; Wed, 17 Aug 2016 12:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=h77LUGBpB94+/aIVBTWLF478fOYFTQTJE5F+D/ILTMo=; b=v09Gu/zhVMYn6FGbBJ25A+IPaizKTpYgGl8nejRAcwysRpGmD0eOH+vsHsy/uE9rKY ZYIj6htCQzXxPdPmHlDpyKKqxbahNFT0v3c/cJ6iJPFtdm8oE/X9eaEJQmBkahjsZrOc jQBeGyVPAB3R8tI+IvPm+iaiSusQRkfQkXm14GEfGYISEtnqKybM4TNtToiEr5tQP18Z +PQjxMQ4L6kSDF9O1lSQJm339WuOlFQEcJ161TRmNVT1SziVvVnIlFKUmu/A3v2xqt0h 0ped3fvwxxwgtmo+rIxQwGyYZ0g0WwjKRb7js3kRu3ue4MaFikEbJVqz12E43JRExw9C m0Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=h77LUGBpB94+/aIVBTWLF478fOYFTQTJE5F+D/ILTMo=; b=DD5qiRLEWJen7LPu2hi0aHEonD9kuF2+OKB7dQhadNU3ZqGYtKQ8r7icyw/tAPRcbf Ly5BhoK0KnvMW/yKSlLRZcVW+sjyWSj6SNY/96q1+lP2VfOeLHlFcq5VE8K8vSu97zuB SWZLb/ZzPUB5xZaNBVSCvKMIfYSrGuVf/CluyvVheD/55Hf2+rxccoF00jJlS6bCP5j2 O/qsgi/Rk13XeOMoKk9i/sU6TRYFVt3CTCh/8n9kJPO//4KvV3uvQJbHpk5KbxxaW9L9 hRivjLHls5Di4Hfb1q7/pTf1hnsGdPVJcWtLwzLjXOQhEFJy16Sh6XgVdFVGU544n/Ze tq6A== X-Gm-Message-State: AEkooutm932Os+PhQnWBwyoffCEuW9Ls7cUru32S4Pj8BdgmyKvGzRCPyopULChgJvZm/A== X-Received: by 10.25.43.204 with SMTP id r195mr6810085lfr.176.1471460588969; Wed, 17 Aug 2016 12:03:08 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.180]) by smtp.gmail.com with ESMTPSA id r76sm5042699lfi.35.2016.08.17.12.03.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Aug 2016 12:03:07 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH] ARM: dts: blanche: add support for general purpose switches Date: Wed, 17 Aug 2016 22:03:06 +0300 Message-ID: <10166368.YKl2X2iyOO@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.6.5-200.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <5383928.8UnDsUpmkz@wasted.cogentembedded.com> References: <5383928.8UnDsUpmkz@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160817_120331_881990_5A298A07 X-CRM114-Status: GOOD ( 10.46 ) 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: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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 Add support for the general purpose software switches SW2 and tactile switches SW24/25 as a virtual keyboard (like it was done with the Lager/ Koelsch boards). Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20160817-v4.8-rc2' of Simon Horman's 'renesas.git' repo. arch/arm/boot/dts/r8a7792-blanche.dts | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7792-blanche.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-blanche.dts +++ renesas/arch/arm/boot/dts/r8a7792-blanche.dts @@ -11,6 +11,8 @@ /dts-v1/; #include "r8a7792.dtsi" +#include +#include / { model = "Blanche"; @@ -54,6 +56,53 @@ pinctrl-0 = <&lan89218_pins>; pinctrl-names = "default"; }; + + keyboard { + compatible = "gpio-keys"; + + key-1 { + linux,code = ; + label = "SW2-1"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio3 10 GPIO_ACTIVE_LOW>; + }; + key-2 { + linux,code = ; + label = "SW2-2"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; + }; + key-3 { + linux,code = ; + label = "SW2-3"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; + }; + key-4 { + linux,code = ; + label = "SW2-4"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; + }; + key-a { + linux,code = ; + label = "SW24"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; + }; + key-b { + linux,code = ; + label = "SW25"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio11 2 GPIO_ACTIVE_LOW>; + }; + }; }; &extal_clk {