From b4fba0b192b447be132ce1c5e4e221cffc5ca269 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Sun, 7 Apr 2024 15:34:17 +0200 Subject: [PATCH] xiaomi-sm7450-common: Increase volume up debounce interval Change-Id: Iec9d68089af262218bad2f63ba9d83e342b7b315 Signed-off-by: Jens Reidel --- qcom/xiaomi-sm7450-common.dtsi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qcom/xiaomi-sm7450-common.dtsi b/qcom/xiaomi-sm7450-common.dtsi index cb09ccf3..2cbe97a5 100644 --- a/qcom/xiaomi-sm7450-common.dtsi +++ b/qcom/xiaomi-sm7450-common.dtsi @@ -1,11 +1,28 @@ &soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <32>; + linux,can-disable; + }; + }; + mtdoops_pmsg@0xa7000000 { compatible = "mtdoops_pmsg"; reg = <0xa7000000 0x400000>; console-size = <0x200000>; pmsg-size = <0x200000>; }; - }; &reserved_memory {