From patchwork Mon Feb 19 11:49:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10227585 X-Patchwork-Delegate: horms@verge.net.au 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 AA45A602B7 for ; Mon, 19 Feb 2018 11:50:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98B1D289E9 for ; Mon, 19 Feb 2018 11:50:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 896E4289F2; Mon, 19 Feb 2018 11:50:03 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 233F3289E9 for ; Mon, 19 Feb 2018 11:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752631AbeBSLuC (ORCPT ); Mon, 19 Feb 2018 06:50:02 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35428 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752563AbeBSLuC (ORCPT ); Mon, 19 Feb 2018 06:50:02 -0500 Received: by mail-pl0-f67.google.com with SMTP id bb3so5499179plb.2 for ; Mon, 19 Feb 2018 03:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=wpR5AIjTqQT4ckIO2F6+PzCtR5whHW1bL+4vCyffTyM=; b=mf8qJ14b8JYgLGd2sSVNnoFmTg4Dot1vBqZZR7qC3ZPUeHcDD16CxvU6eYeN5s85bB BdHlu1WdH8q1Lvrqz6Du6pnpdqL0gz0vztaMo9yw5TJFZR5vs3IpsaNELeMQe2qLOfcY sSZAGutV+oWJKcXexw64SXhi/7MOEBhJkcjz2GFkWS+NG2laQoYl/ANWZV8Zxj9fpjEM HQpF6uAz1NjbrXO5IMsKQnu4GYijhduWxAI6bJ5A+vjzG5l5a830ntUAkojji3hfAv37 NJpECQmiY2tTGoMGY1c72zD8WVs3W2QZdoLicHVDBT96rMJ65KoNfnwtrFUyxJhB+3yx QQBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=wpR5AIjTqQT4ckIO2F6+PzCtR5whHW1bL+4vCyffTyM=; b=JUpM3s0JJapnDuFXruEtLtQZIYbv3okVSSz0ijZgXCyxaIWpf6rt41Raai5GZoMxOU V06q2wgzIwIPexBS4xKThde3Ik25yR7cbPRvrQdJMGXDtEgN4e8J9/7CUaW7C7lcTlqz BOieeWFHLUQr/evIDuJKrw5H08fGvvU1ZanciRpfdRI3z8G1Ipvqqo59bSt2rT+Ziy3D +3oExVkjRbqpDsBH3rq97/2N4uoK9EBV//dVodoF8sdghbxaY0SqpHEyqK38a6l0dWZP KWMgL8lSFusWVW7NggM7RzWaQqAHucCdHx5CwNupuSTskAtlC7cXtkPV1Z854V1JPGyp y86g== X-Gm-Message-State: APf1xPAiZJsP7f9u4Jrbg7CpgdEfuxc6N+u1+88/pf2bG2qQqBiVFRaP 0s4bayxJj3w/vz11BUHiRLILxNum X-Google-Smtp-Source: AH8x225nnUFMTWecRjcZBHYSe0hHbx+F6zFR8h/TArXpohkI5YV7Itk0m2EltBfA9NZtIKQG8WVYCA== X-Received: by 2002:a17:902:c24:: with SMTP id 33-v6mr14022658pls.24.1519041001462; Mon, 19 Feb 2018 03:50:01 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id t25sm51660170pge.41.2018.02.19.03.49.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 03:50:00 -0800 (PST) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 19 Feb 2018 20:49:51 +0900 Message-Id: <151904099108.30541.17932604596131550090.sendpatchset@little-apple> In-Reply-To: <151904097369.30541.12132732484797103163.sendpatchset@little-apple> References: <151904097369.30541.12132732484797103163.sendpatchset@little-apple> Subject: [PATCH 02/02] ARM: dts: silk: Add GPIO keys to DT 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 From: Magnus Damm Extend the Silk board support to include SW3, SW4, SW6 and SW12. They are all connected via GPIO lines and handled by the gpio-keys driver. Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7794-silk.dts | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) --- 0002/arch/arm/boot/dts/r8a7794-silk.dts +++ work/arch/arm/boot/dts/r8a7794-silk.dts 2018-02-19 20:24:48.960607110 +0900 @@ -24,6 +24,7 @@ /dts-v1/; #include "r8a7794.dtsi" #include +#include / { model = "SILK"; @@ -45,6 +46,60 @@ reg = <0 0x40000000 0 0x40000000>; }; + gpio-keys { + compatible = "gpio-keys"; + + key-3 { + gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW3"; + wakeup-source; + debounce-interval = <20>; + }; + key-4 { + gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW4"; + wakeup-source; + debounce-interval = <20>; + }; + key-6 { + gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW6"; + wakeup-source; + debounce-interval = <20>; + }; + key-a { + gpios = <&gpio3 9 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW12-1"; + wakeup-source; + debounce-interval = <20>; + }; + key-b { + gpios = <&gpio3 10 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW12-2"; + wakeup-source; + debounce-interval = <20>; + }; + key-c { + gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW12-3"; + wakeup-source; + debounce-interval = <20>; + }; + key-d { + gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW12-4"; + wakeup-source; + debounce-interval = <20>; + }; + }; + d3_3v: regulator-d3-3v { compatible = "regulator-fixed"; regulator-name = "D3.3V";