From https://gitlab.postmarketos.org/soc/qualcomm-sm8250/linux/-/commits/6.17.0?ref_type=HEADS Made some modifications to be compatible with the latest kernel. Signed-off-by: CodeChenL <2540735020@qq.com>
43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
From e10edd38b63dd2caa226c99e6be1f837277fa3c7 Mon Sep 17 00:00:00 2001
|
|
From: Jianhua Lu <lujianhua000@gmail.com>
|
|
Date: Tue, 11 Nov 2025 20:02:26 +0800
|
|
Subject: [PATCH 60/62] arm64: dts: qcom: sm8250-xiaomi-elish: add hall key
|
|
|
|
Signed-off-by: Jiali Chen <chenjiali@radxa.com>
|
|
---
|
|
.../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 18 ++++++++++++++++++
|
|
1 file changed, 18 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
|
|
index f95513164f75..76d129fd5413 100644
|
|
--- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
|
|
@@ -81,6 +81,24 @@ key-vol-up {
|
|
linux,can-disable;
|
|
wakeup-source;
|
|
};
|
|
+
|
|
+ switch-lid {
|
|
+ label = "Swtich Lid";
|
|
+ gpios = <&tlmm 110 GPIO_ACTIVE_LOW>;
|
|
+ linux,input-type = <EV_SW>;
|
|
+ debounce-interval = <15>;
|
|
+ linux,code = <SW_LID>;
|
|
+ gpio-key,wakeup;
|
|
+ };
|
|
+
|
|
+ switch-tablet-mode {
|
|
+ label = "Swtich Tablet Mode";
|
|
+ gpios = <&tlmm 121 GPIO_ACTIVE_LOW>;
|
|
+ linux,input-type = <EV_SW>;
|
|
+ debounce-interval = <15>;
|
|
+ linux,code = <SW_TABLET_MODE>;
|
|
+ gpio-key,wakeup;
|
|
+ };
|
|
};
|
|
|
|
qca6390-pmu {
|
|
--
|
|
2.47.3
|
|
|