From nobody Wed Dec 17 01:11:53 2025 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D20216A92B for ; Sun, 21 Jul 2024 17:39:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721583580; cv=none; b=Yvjm4qwzj6KJOg60l1HDI7qOKknPjhFkdyBKhEsDXA49YprCzPUkkWDDd0l1wef2Rati/dAay2taHMsuf0MGXqPxDgxIh46BtPbYmHXvq7S+xkaFvzOjfG20TdYGy6r5azEGayv0m3jIF2/VE5B7QZ0Xqh90Knp34JHqjfupwCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721583580; c=relaxed/simple; bh=O5KmD2kpWcjeFcMpfPtnaiPNhkY15Tf0hEL8woi49b4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sVdjj9RROm1lyjwBGOFBq6b2r7bnPl8gY7sDlnHVV+/tlkHfJSzcPS5Y8eceFUAVBYE9MFscL/mocwsTXETNBdhj62BCgKouJgzDzbPBBEU2L/GFxx9tr+qCcqJbyZKRttvj8B1upCM+HhZHmzRAnUM5gnEzLfvhP+s9KmSHwU4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i5e860cd3.versanet.de ([94.134.12.211] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVaV2-00075D-5S; Sun, 21 Jul 2024 19:37:32 +0200 From: Heiko Stuebner To: heiko@sntech.de Cc: ukleinek@debian.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/14] arm64: dts: rockchip: add gpio-keys to Qnap-TS433 Date: Sun, 21 Jul 2024 19:37:19 +0200 Message-Id: <20240721173723.919961-11-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240721173723.919961-1-heiko@sntech.de> References: <20240721173723.919961-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The TS433 has 3 buttons, power and copy in the front as well as a reset pinhole button on the back. The power-button is connected to the embedded controller while the other two buttons are just gpio connected. Add the gpio-keys definition for the two buttons we can handle right now. Signed-off-by: Heiko Stuebner --- .../boot/dts/rockchip/rk3568-qnap-ts433.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts b/arch/arm6= 4/boot/dts/rockchip/rk3568-qnap-ts433.dts index 02fa46beb6371..c593a9c2313a3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts @@ -6,6 +6,7 @@ =20 /dts-v1/; =20 +#include #include #include #include "rk3568.dtsi" @@ -23,6 +24,24 @@ chosen: chosen { stdout-path =3D "serial2:115200n8"; }; =20 + keys { + compatible =3D "gpio-keys"; + pinctrl-0 =3D <©_button_pin>, <&reset_button_pin>; + pinctrl-names =3D "default"; + + key-copy { + label =3D "copy"; + gpios =3D <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + key-reset { + label =3D "reset"; + gpios =3D <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + }; + leds { compatible =3D "gpio-leds"; =20 @@ -199,6 +218,16 @@ &pcie3x2 { }; =20 &pinctrl { + keys { + copy_button_pin: copy-button-pin { + rockchip,pins =3D <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + reset_button_pin: reset-button-pin { + rockchip,pins =3D <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + leds { hdd1_led_pin: hdd1-led-pin { rockchip,pins =3D <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; --=20 2.39.2