From patchwork Mon Jul 22 11:55:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13738757 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CAD27C3DA59 for ; Mon, 22 Jul 2024 11:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BEAVubUtLy7laOC5G4SkffDL+MSfD7rTYtzmDLx8rNk=; b=Dn9yfywIqxCgWuuHv1GJCjzA/C yBa7B3Ec54rqA2WQcdIk7FV2iqoqNxlj7ZpHRbAqujZcBgRaNeu+5JEvJsnVz2upH1XmfbKEubKnf efqjiu8XE4VexvjGOqOMdK9QSgWDhqO25d5AnGvIOnqygoFfhx7t1UvcqGEGcT5EYTI9B9MufM0Hu nnMrvDQIwLyy3PXMVipCq33vMwHCJ78bbNU6HnFscVuR1fZ5/L9vfm2vHB+MGPnvJdAlCOszGXLwO /5Y4bjiwHZdGKas9Ks4L6S7ayicr48+rhwdzlvZ0G4QLM8sMIcW5dCt93Dc3hBb6lXzmLv1lAU7tn MJWZFj/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVreQ-00000009RGy-27z4; Mon, 22 Jul 2024 11:56:22 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVre1-00000009R94-2ZK0 for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2024 11:56:00 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:173b:9414:53f5:de4c]) by michel.telenet-ops.be with bizsmtp id qbvo2C0081wvoRx06bvoCX; Mon, 22 Jul 2024 13:55:49 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sVrdZ-002zCa-H3; Mon, 22 Jul 2024 13:55:48 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sVrds-0020l4-0e; Mon, 22 Jul 2024 13:55:48 +0200 From: Geert Uytterhoeven To: Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH 1/2] arm64: dts: renesas: gray-hawk-single: Add push switches Date: Mon, 22 Jul 2024 13:55:40 +0200 Message-Id: <41b8277d4b630e0c296375888d9b958448d02cde.1721649057.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240722_045557_934537_CAF37E46 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Describe the three Push Switches on the Gray Hawk Single board, so they can be used for user input. Signed-off-by: Geert Uytterhoeven --- .../dts/renesas/r8a779h0-gray-hawk-single.dts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts index ae2ad93228110905..b4fcf6c0cea26840 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts @@ -9,6 +9,7 @@ /dts-v1/; #include +#include #include "r8a779h0.dtsi" @@ -38,6 +39,37 @@ chosen { stdout-path = "serial0:921600n8"; }; + keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&keys_pins>; + pinctrl-names = "default"; + + key-1 { + gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW47"; + wakeup-source; + debounce-interval = <20>; + }; + + key-2 { + gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW48"; + wakeup-source; + debounce-interval = <20>; + }; + + key-3 { + gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "SW49"; + wakeup-source; + debounce-interval = <20>; + }; + }; + memory@48000000 { device_type = "memory"; /* first 128MB is reserved for secure area. */ @@ -234,6 +266,11 @@ i2c0_pins: i2c0 { function = "i2c0"; }; + keys_pins: keys { + pins = "GP_5_0", "GP_5_1", "GP_5_2"; + bias-pull-up; + }; + mmc_pins: mmc { groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; function = "mmc";