From 76602b55884bdf73f258cfb513b85bb004fd40ca Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Mon, 12 Apr 2021 18:55:43 +0800 Subject: [PATCH] arm/dts:add fps dts for corfup first supply:fpc1520 second supply:gf3988 fps dts for corfup Change-Id: Ieebbb99ae72f3f5a44b62c944139a7f1550fd10b Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1922069 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Weilong Wu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-fps-overlay.dtsi | 92 ++++++++++++++++++++++++++++ qcom/holi-corfup-common-overlay.dtsi | 2 +- 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 qcom/corfup-fps-overlay.dtsi diff --git a/qcom/corfup-fps-overlay.dtsi b/qcom/corfup-fps-overlay.dtsi new file mode 100644 index 000000000000..48c5a2b5f077 --- /dev/null +++ b/qcom/corfup-fps-overlay.dtsi @@ -0,0 +1,92 @@ +&tlmm { + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&pm6350_l8 { + qcom,init-voltage = <3304000>; + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-always-on; +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; + goodix_fingerprint{ + //status = "/chosen", "mmi,fps", "true"; + status = "ok"; + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x00>; + fp-gpio-irq = <&tlmm 17 0x00>; + 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>; + }; +}; diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index e01efb22b15c..298296e91070 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -13,7 +13,7 @@ #include "holi-moto-common-overlay.dtsi" #include "ibiza-display.dtsi" #include "ibiza-touchscreen.dtsi" -#include "ibiza-fps-overlay.dtsi" +#include "corfup-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "moto_therm_sys_temp.dtsi"