From patchwork Sat Nov 23 12:58:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 13883856 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 D9C1BE6ADF8 for ; Sat, 23 Nov 2024 12:59:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC2FC10E26F; Sat, 23 Nov 2024 12:59:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Q0PLgn5L"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3535010E0BD for ; Sat, 23 Nov 2024 12:59:01 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id EAFAFA403E6; Sat, 23 Nov 2024 12:57:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 16068C4CED3; Sat, 23 Nov 2024 12:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732366739; bh=Fv47p68wpt/Xf64OQ7Qc/POU5bqiVwR09vqaKyiQh1A=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Q0PLgn5LdlNHbyByAYqrmuBlMbciWp8jwPG3asgp69PnwTEdk41fur3R0MAM+TO4W 3yYPVKzlOqQ1pYneBH7lD1DHdYRnbyWpW49ykFBJRTG5bXgPNPLszxM98gDKuCoznJ G91tI4d0+hPYGz3FHwwokveHnpUS4YTXM6EhrsNuxyKQOEmLGPYV+S4nlK9nWiU0d9 FLtCtmU9GNYBbiko/IbjBmqNC09eijicR9RTgIdkm401+fbXLb899S9RlUuF+hgxJ0 xeo0N7K+ovuk9DvPLhLI1JwawzGGYVxxA9bv5ENSRzGHhgrUE/o5KchNS6Y+9Ftqlh RGIDOhc3U8wAA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 081F0E6ADFD; Sat, 23 Nov 2024 12:58:59 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sat, 23 Nov 2024 13:58:55 +0100 Subject: [PATCH v2 3/4] arm64: dts: qcom: x1e80100-vivobook-s15: Add lid switch MIME-Version: 1.0 Message-Id: <20241123-asus_qcom_display-v2-3-a0bff8576024@hotmail.com> References: <20241123-asus_qcom_display-v2-0-a0bff8576024@hotmail.com> In-Reply-To: <20241123-asus_qcom_display-v2-0-a0bff8576024@hotmail.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Douglas Anderson , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732366736; l=1600; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=cDAfP1GXN5HoZNSLX9L4CXkyhwGzk7nNuUgFq5shRK8=; b=mZhyHT18WPVEJvfZGqpyMVPUQtx7mSQkX/lUI4RGOdnIZHikBcBw/YKSKINz9eXbWQ1P1P25q D2IJzN565vEAP2WACfJfCAy7pP0pzdxXpOZdCi7WnrX/KMRb427d55N X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: maud_spierings@hotmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Maud Spierings Add the lid switch for the Asus vivobook s15 Signed-off-by: Maud Spierings --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index dbc85aff50a95bfc2ac11528d1901979ec7b1501..d0bee4b6fc0be6fe40d335f4d50dde495853b315 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include #include "x1e80100.dtsi" @@ -17,6 +18,20 @@ / { compatible = "asus,vivobook-s15", "qcom,x1e80100"; chassis-type = "laptop"; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&hall_int_n_default>; + pinctrl-names = "default"; + + switch-lid { + gpios = <&tlmm 92 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + wakeup-source; + wakeup-event-action = ; + }; + }; + pmic-glink { compatible = "qcom,x1e80100-pmic-glink", "qcom,sm8550-pmic-glink", @@ -537,6 +552,12 @@ edp_reg_en: edp-reg-en-state { bias-disable; }; + hall_int_n_default: hall-int-n-state { + pins = "gpio92"; + function = "gpio"; + bias-disable; + }; + kybd_default: kybd-default-state { pins = "gpio67"; function = "gpio";