From 623bbfd200d216d054802941004256b3b956db3d Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 17 Dec 2020 16:02:26 +0800 Subject: [PATCH] arm64/dts: denver: add fpc1020 device node 1. Change INT pin as pull disable to match HW. 2. Replace goodix with fpc sensor Change-Id: Ic29a88f85519b1e156b8a9223678001afc7efbd7 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1829812 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/denver-fps-overlay.dtsi | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/qcom/denver-fps-overlay.dtsi b/qcom/denver-fps-overlay.dtsi index 70b7f01ca4bf..2f6aa418a796 100644 --- a/qcom/denver-fps-overlay.dtsi +++ b/qcom/denver-fps-overlay.dtsi @@ -11,7 +11,7 @@ pins = "gpio17"; drive-strength = <2>; /* 2 MA */ input-enable; - bias-pull-up; + bias-disable; }; }; chipone_int_suspend: chipone_int_suspend { @@ -25,7 +25,7 @@ pins = "gpio17"; drive-strength = <2>; /* 2 MA */ input-enable; - bias-pull-up; + bias-disable; }; }; }; @@ -60,12 +60,12 @@ fps_int_active: fps_int_active { /* active state */ mux { - pins = "gpio18"; + pins = "gpio17"; function = "gpio"; }; config { - pins = "gpio18"; + pins = "gpio17"; drive-strength = <2>; /* 2 MA */ bias-disable; input-enable; @@ -102,20 +102,20 @@ reg = <0>; interrupt-parent = <&tlmm>; interrupts = <17 0x0>; - fp-gpio-int = <&tlmm 17 0x2>; - fp-gpio-reset = <&tlmm 18 0x2>; + fp-gpio-int = <&tlmm 17 0x0>; + fp-gpio-reset = <&tlmm 18 0x0>; pinctrl-names = "default", "suspend"; pinctrl-0 = <&chipone_int_active>; pinctrl-1 = <&chipone_int_suspend>; }; - goodix_fingerprint{ - compatible = "goodix,fingerprint"; - fp-gpio-reset = <&tlmm 18 0x2>; - fp-gpio-irq = <&tlmm 17 0x2>; + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; interrupt-parent = <&tlmm>; interrupts = <17 0>; - interrupt-controller; pinctrl-names = "default", "suspend"; pinctrl-0 = <&fps_rst_active &fps_int_active>; pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>;