From patchwork Mon Sep 5 21:33:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9315311 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 099EB6075E for ; Mon, 5 Sep 2016 21:33:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EECB728886 for ; Mon, 5 Sep 2016 21:33:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3A14288CF; Mon, 5 Sep 2016 21:33:12 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8DB128886 for ; Mon, 5 Sep 2016 21:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754638AbcIEVdL (ORCPT ); Mon, 5 Sep 2016 17:33:11 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:36584 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754447AbcIEVdK (ORCPT ); Mon, 5 Sep 2016 17:33:10 -0400 Received: by mail-lf0-f54.google.com with SMTP id g62so133684154lfe.3 for ; Mon, 05 Sep 2016 14:33:09 -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=ojO7nsa2DAH0moL3IUj+cV3wzZfOZsP67YyYQgn7/Bw=; b=x+pAAB81ihKTqCYPxI9I6eQPXQrtiGQIil4ZVSxcAYY+C1Wh/E52AMQTCdNobHU23z AbFc1lJv7/DnXpCZIs1sfMeY33/xseFGxJsG4honEJ3z/q7qx4CyUY4yH/D/JSTw+ruG xuzdI+gRBsjQkqhbYrdaGT5Mk713p0bks2iG1tLnSZYW5YzJvHwk0f0aZt6RcMsM9maW JQ6FxwUavYziH7qYk07gAsZwDl459qYLqOsRYAgBlg5FAdsedKrMt3ojwOB8GcWd2nDM kpRJIcDdlU+F1t6tIP5oukpicz0NppJYuZ8irIry7OI1G+zO8qqxJBdkJxw6RaMDN7LJ rLWw== 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=ojO7nsa2DAH0moL3IUj+cV3wzZfOZsP67YyYQgn7/Bw=; b=YdgJr3BG/MU7c2EkY2JpjEeJyRaGyqMd5Yl78aXV9+aD6uWNUnOv0K18snZIpvjXAs wOoAwoHfpAtJea5LD8nDLPsdDwxwEITK9b/FemGeWQ5+YLezl2VH5XYsgpIlXCiIsrHH +XuTEFLOrOuWXlRxUz224xRY6BIikkPRtPskQ2mC1MkUzDZnZGF2fUXfBxrPnfwnsfo0 1Zu4/Jnf5mTecqmIZToVqWv5DkBh/MQBpboBsfIScU0JjqeL/YwrO1JzLE4GvM1OaHVg nLoWbS7me2g/3TFE/T9wV47SL5yQVB2cx0TOiXhLTDP5D6MytZBuqJKfAcFSu79Qo1wR yrMA== X-Gm-Message-State: AE9vXwMJooqXvLZBiKUwxuY+AOdVecPPPcaa+Ma9SuTvU/3E9K1+SzhTpaAvIt82oirZuA== X-Received: by 10.25.27.139 with SMTP id b133mr9827112lfb.157.1473111188592; Mon, 05 Sep 2016 14:33:08 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.57]) by smtp.gmail.com with ESMTPSA id 15sm2334421ljj.8.2016.09.05.14.33.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Sep 2016 14:33: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 Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: wheat: add support for tactile switches Date: Tue, 06 Sep 2016 00:33:05 +0300 Message-ID: <10465663.8teCsXZU7y@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.2-101.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 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for the tactile switches SW2/3 (on the debug board) as a virtual keyboard like it was done with the Blanche board). Signed-off-by: Sergei Shtylyov Acked-by: Geert Uytterhoeven --- This patch is against the 'renesas-devel-20160905-v4.8-rc5' of Simon Horman's 'renesas.git' repo plus the Wheat DU patch... arch/arm/boot/dts/r8a7792-wheat.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts +++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts @@ -12,6 +12,7 @@ /dts-v1/; #include "r8a7792.dtsi" #include +#include / { model = "Wheat"; @@ -56,6 +57,25 @@ pinctrl-names = "default"; }; + keyboard { + compatible = "gpio-keys"; + + key-a { + linux,code = ; + label = "SW2"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; + }; + key-b { + linux,code = ; + label = "SW3"; + wakeup-source; + debounce-interval = <20>; + gpios = <&gpio11 2 GPIO_ACTIVE_LOW>; + }; + }; + vcc_sdhi0: regulator-vcc-sdhi0 { compatible = "regulator-fixed";