Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp813657pxb; Wed, 22 Sep 2021 13:36:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMPrIS4VRJTo5zB+koDY2zxBYuaFUD7oz/O8PAFyhc5/j4HK8fCPU1W2cYA4p7ptWQY7WE X-Received: by 2002:a05:6402:411:: with SMTP id q17mr1490254edv.35.1632342967112; Wed, 22 Sep 2021 13:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632342967; cv=none; d=google.com; s=arc-20160816; b=ACyWjqIdJX8CxQVjmUECpyUwbzaJ+z8dOyq5e5DdMX8Mf+n2L3YL18VHjTbTFtSmBi jkfuCI0pRbF4za//Q8vBrmbhAUbE7ObOOerqs9it1PKevsBeYbPf6Cqacwvora4ugQq+ DrY3yRgM8aMsqn2DKPWdaftOjudMHNYMkEgZqCgty6KZ12u+zFt5UNNpwmVE7oD+j5kj dvy/9K1PdlW2V11zjdwotLbbIQOk2ZgNmkx6UueH7Eo4prpowPKPVaDklLtdKdkwOING s97he0/Ixjtvn+OLfQvSxB409tqJs+yu1V7IRZoIrgiHVkyV/p1hh70Qop2U5cc53NRV X3EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Si1O/Lv0tviHIqf7ytBiAYFu1hyQWS7/8ModI+pI1Es=; b=OlXKruzWLq1ogG0ogeaSFnN4vY0c3AyZVwpMxT7GwmyEEFJy99GT5eWriGDe1Z6v54 g/muqcxw+/ZncDCorgwn2r7hLkr3wPBQa7VP8nJQWKShIs0DtSFyTQRMemVdeooHx+QV zgxuvTTccRkc6nmXAeIwxkHpmtCcfuEj2o/Xqbgc2rNZGGx1N93i0MDaSwXXd4nENWA+ BEK3oC7ILrHNE+2j/3r37iStXf44PZohBU5yCu0x+c9M7dWOil1o9Qeicy1Q0yWpM5uU Ji5Sd9Jo4Vzu/+ZW5UDQknCe+lnZm/343GNQOt411Hc4dOws5QYgtrAC8MHXunI+ANXB ktBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=rN2MyfFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si3570304ejj.568.2021.09.22.13.35.43; Wed, 22 Sep 2021 13:36:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=rN2MyfFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237450AbhIVUcD (ORCPT + 99 others); Wed, 22 Sep 2021 16:32:03 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:57854 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbhIVUcC (ORCPT ); Wed, 22 Sep 2021 16:32:02 -0400 Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D4696F1; Wed, 22 Sep 2021 22:30:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1632342631; bh=ul9fCFg1tRByddGFWfXoN4EyqWHQr5uWkhY1V0hbcVI=; h=From:To:Cc:Subject:Date:From; b=rN2MyfFVkF3D84cvww+NlemN1EIfm993kWu7yyqvGJvXZvei5nrHfv0AnYtHGK3J7 59VgHtLSY4fGxCUtP0p4agZjz5MLpDNbURKXrlzCNy42qf+7VTC8MOAnn1O4B1MiXw bLDbZMEmQhnqlDpm3RC8ZSHxaA5eHMKW/Ka3Rpss= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Cc: Kieran Bingham , Geert Uytterhoeven , Magnus Damm , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] arm64: dts: renesas: r8a779a0: falcon-cpu: Add SW46 switch support Date: Wed, 22 Sep 2021 21:30:27 +0100 Message-Id: <20210922203027.3229474-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for SW46-1 and SW46-2 as switches using the gpio-keys framework. Signed-off-by: Kieran Bingham --- SW_LID and SW_DOCK are selected as low-impact switch events for the default configuration. Would SW_RFKILL_ALL, and SW_MUTE_DEVICE be preferred as more 'functional' defaults? (I have otherwise avoided these to hopefully prevent unwanted / undocumented effects occuring on development hardware running a full interface which may parse these) I'd expect them to be overridden by any platform using them anyway. Testing of these switches (and the buttons) shown at: https://paste.debian.net/1212884/ --- .../boot/dts/renesas/r8a779a0-falcon-cpu.dtsi | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi index d595fbad4589..5d188a7d6e73 100644 --- a/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi @@ -52,6 +52,24 @@ keys { pinctrl-0 = <&keys_pins>; pinctrl-names = "default"; + sw-1 { + gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + label = "SW46-1"; + wakeup-source; + debounce-interval = <20>; + }; + + sw-2 { + gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + label = "SW46-2"; + wakeup-source; + debounce-interval = <20>; + }; + key-1 { gpios = <&gpio6 18 GPIO_ACTIVE_LOW>; linux,code = ; @@ -193,7 +211,8 @@ i2c6_pins: i2c6 { }; keys_pins: keys { - pins = "GP_6_18", "GP_6_19", "GP_6_20"; + pins = "GP_1_28", "GP_1_29", + "GP_6_18", "GP_6_19", "GP_6_20"; bias-pull-up; }; -- 2.30.2