From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24842C49EA4 for ; Sun, 20 Jun 2021 06:07:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 035E061042 for ; Sun, 20 Jun 2021 06:07:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbhFTGJr (ORCPT ); Sun, 20 Jun 2021 02:09:47 -0400 Received: from lists.levonline.com ([217.70.32.42]:44595 "EHLO lists.levonline.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhFTGJq (ORCPT ); Sun, 20 Jun 2021 02:09:46 -0400 Received: from exc-halon1.levonline.com (exc-halon1.levonline.com [217.70.32.123]) by lists.levonline.com (Postfix) with ESMTP id DEA323A0D46 for ; Sun, 20 Jun 2021 07:59:04 +0200 (CEST) X-SA-score: -1 X-Halon-ID: f3bf250f-d18c-11eb-8ebc-0050568168d4 Received: from ormen2.djurnet.levonline.com (ormen2.djurnet.levonline.com [192.168.17.32]) by exc-halon1.levonline.com (Halon) with ESMTPS id f3bf250f-d18c-11eb-8ebc-0050568168d4; Sun, 20 Jun 2021 08:01:28 +0200 (CEST) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp [218.219.193.216]) (authenticated bits=0) by ormen2.djurnet.levonline.com (8.13.8/8.13.8) with ESMTP id 15K61QbT011916; Sun, 20 Jun 2021 08:01:27 +0200 X-Origin-Levonline: b0359001 From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm , geert+renesas@glider.be Date: Sun, 20 Jun 2021 14:21:37 +0900 Message-Id: <162416649714.11444.12659951671817146236.sendpatchset@octo> In-Reply-To: <162416647337.11444.4467438519249633023.sendpatchset@octo> References: <162416647337.11444.4467438519249633023.sendpatchset@octo> Subject: [PATCH 3/3] arm64: dts: renesas: r8a77990: ebisu: Add SW4 support Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm Add support for SW4 via "gpio-keys" on the R-Car E3 Ebisu board. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts +++ work/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts 2021-06-19 19:08:07.927645590 +0900 @@ -8,6 +8,7 @@ /dts-v1/; #include "r8a77990.dtsi" #include +#include / { model = "Renesas Ebisu board based on r8a77990"; @@ -80,6 +81,42 @@ }; }; + keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&keys_pins>; + pinctrl-names = "default"; + + key-1 { + gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW4-1"; + wakeup-source; + debounce-interval = <20>; + }; + key-2 { + gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW4-2"; + wakeup-source; + debounce-interval = <20>; + }; + key-3 { + gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW4-3"; + wakeup-source; + debounce-interval = <20>; + }; + key-4 { + gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW4-4"; + wakeup-source; + debounce-interval = <20>; + }; + }; + lvds-decoder { compatible = "thine,thc63lvd1024"; vcc-supply = <®_3p3v>; @@ -540,6 +577,11 @@ function = "intc_ex"; }; + keys_pins: keys { + pins = "GP_5_10", "GP_5_11", "GP_5_12", "GP_5_13"; + bias-pull-up; + }; + pwm3_pins: pwm3 { groups = "pwm3_b"; function = "pwm3";