mirror of
https://github.com/torvalds/linux.git
synced 2026-10-10 12:28:02 +02:00
arm64: dts: qcom: sc8280xp-arcata: Add lid switch
Enable the lid switch for the Microsoft Surface Pro 9 5G using GPIO pin 180. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Jérôme de Bretagne <jerome.debretagne@gmail.com> Link: https://lore.kernel.org/r/20260604-surface-sp9-5g-for-next-v3-7-6aa6f6612c10@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
0e5e1b74cc
commit
d7879682e7
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/gpio-keys.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
|
||||
|
||||
#include "sc8280xp.dtsi"
|
||||
|
|
@ -59,7 +60,7 @@ backlight: backlight {
|
|||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-0 = <&vol_down_n>, <&vol_up_n>;
|
||||
pinctrl-0 = <&hall_int_n_default>, <&vol_down_n>, <&vol_up_n>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
key-vol-down {
|
||||
|
|
@ -79,6 +80,15 @@ key-vol-up {
|
|||
linux,can-disable;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
switch-lid {
|
||||
label = "lid";
|
||||
gpios = <&tlmm 180 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <EV_SW>;
|
||||
linux,code = <SW_LID>;
|
||||
wakeup-source;
|
||||
wakeup-event-action = <EV_ACT_DEASSERTED>;
|
||||
};
|
||||
};
|
||||
|
||||
pmic-glink {
|
||||
|
|
@ -1014,6 +1024,13 @@ edp_reg_en: edp-reg-en-state {
|
|||
bias-disable;
|
||||
};
|
||||
|
||||
hall_int_n_default: hall-int-n-state {
|
||||
pins = "gpio180";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
nvme_reg_en: nvme-reg-en-state {
|
||||
pins = "gpio135";
|
||||
function = "gpio";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user