From c20bb702d385361e647c395da02486594bf8af24 Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 16 Sep 2021 13:36:23 +0800 Subject: [PATCH] dts: add google key configuration for cypfr Adding google key configurations for product cypfr. Change-Id: I6b429275c778815704de814c9dc713737aef4263 Reviewed-on: https://gerrit.mot.com/2067354 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index f5d74a61c3b7..24201040ebe3 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -50,6 +50,19 @@ }; }; + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -310,7 +323,7 @@ label = "gpio-keys"; pinctrl-names = "default"; - pinctrl-0 = <&key_vol_up_default>; + pinctrl-0 = <&key_vol_up_default &google_key_default>; vol_up { label = "volume_up"; @@ -321,6 +334,16 @@ debounce-interval = <15>; linux,can-disable; }; + + 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; + }; }; };