From caf13c9afa47a34e9cf27ac2094abb9ac45eaba9 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 18 May 2021 09:52:58 +0800 Subject: [PATCH] dts: add google key function at gpio11 For CPYFG's designation, google key is defined at gpio11. So we wil add it as gpio-key. Change-Id: I7b84423c6a4ab0b1611ad2e6adb2cbb2dd4d7007 Reviewed-on: https://gerrit.mot.com/1951662 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index fb633fa5647d..a747775eb250 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -25,6 +25,19 @@ }; &tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + cam_pmic_en_default: cam_pmic_en_default { mux { pins = "gpio38"; @@ -67,6 +80,20 @@ }; }; +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + &qupv3_se10_i2c { status = "ok";