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 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 C3C1DC83F09 for ; Wed, 9 Jul 2025 13:23:53 +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: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:In-Reply-To:References:List-Owner; bh=C6I02oAO5O9n+NqOYPD+dGaxhuaskJQMZV+WpCzJXCs=; b=P3u6ZM+OhJ5hqe4rP389oNOlsu BLYT++6TvyAbmSVfluE30LOCCduky2SXSuRLxnNHrtzCrW6GSD3TNDqE3zQh2GBx0LyqvUQPRofaq Peuk9gCSZkuDLzbNwbz/si8SutJOAq63Iw2+gkO31Ci35ze+cOK30xkZmlN09Lf1Lyhus9/mTvwUj aq0gAG8e4C08QHupPiIv+EHbW2O96/Pe2gOD6K/DgAbcM5o0O8ndh6pbS97nckmLUyXyDN9jV8/Oz tO78i+ieedvBINN0yjjckCcPaojkhIRL0cQ9OgWPJL8Ppfn0IVzhnEnmJ44+thvsjpuUFX0dKUHmR c4ASo07A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZUm3-00000008lwn-47iF; Wed, 09 Jul 2025 13:23:47 +0000 Received: from out-183.mta0.migadu.com ([2001:41d0:1004:224b::b7]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZSUZ-00000008OlT-3q8D for linux-arm-kernel@lists.infradead.org; Wed, 09 Jul 2025 10:57:37 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1752058643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=C6I02oAO5O9n+NqOYPD+dGaxhuaskJQMZV+WpCzJXCs=; b=AP+BQZNGoaJmYJygNM/cNI4+L4nhRS9+v7XJ5tpNOmB/nZd++qTbTBwNo/O+1votD3hpuU d2fuhHU756K8GgwfWy5GeCU+ivd/FYXqqwRXiEltwXyM1sIBCAstixjodvc8CRFhKokd9C D233PemB7tVZu576E/LMMtVGOZwXHMeojtpVXR0Oe95O3l2xINtDlkzqFhZu/ViPAV4tlg RoqiV6pYcLWjXPQiU5cgM9aynKpPtCaCZhYcr5KlrnJHgZbK1qqS4OM8w/0SRYQ28ywlrZ ZP9psoJFX7TlIMTbxfojeVfvI4+uBHyTdUhs5VXjS3WhmW7noKCQeEJsRKtiEA== From: Diederik de Haas To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Diederik de Haas Subject: [PATCH] arm64: dts: rockchip: Add reset button to NanoPi R5S Date: Wed, 9 Jul 2025 12:57:08 +0200 Message-ID: <20250709105715.119771-1-didi.debian@cknow.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250709_035736_082048_18173F7D X-CRM114-Status: GOOD ( 10.09 ) 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 The NanoPi R5S LTS version has a reset button, which is connected via GPIO. Note that the non-LTS version does not have the reset button and therefore on page 19 of the schematic version 2204 it is marked 'NC', but it is connected on the LTS version. Signed-off-by: Diederik de Haas --- .../boot/dts/rockchip/rk3568-nanopi-r5s.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts index 3b31f0dd8f3b..4eaedb321914 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts @@ -17,6 +17,19 @@ aliases { ethernet0 = &gmac0; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&gpio4_a0_k1>; + pinctrl-names = "default"; + + button-reset { + debounce-interval = <50>; + gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>; + label = "RESET"; + linux,code = ; + }; + }; + gpio-leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -127,6 +140,12 @@ eth_phy0_reset_pin: eth-phy0-reset-pin { }; }; + gpio-keys { + gpio4_a0_k1: gpio4-a0-k1 { + rockchip,pins = <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + gpio-leds { lan1_led_pin: lan1-led-pin { rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.50.0