From 7136a8033ab41c65f9d491869abd7b4ade4670a3 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 19 May 2021 10:07:50 +0800 Subject: [PATCH] arm64/dt: cypfg: add fps device node Cypfg will use ET528 and FPC1540 as Cypfg's fps sensor/ Add fps dts config for it. Change-Id: I50238eba6c5538c75560fbcf66ea875b9a35f67b Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1953101 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfg-fps-overlay.dtsi | 120 ++++++++++++++++++++++++++++ qcom/holi-cypfg-common-overlay.dtsi | 2 +- 2 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 qcom/cypfg-fps-overlay.dtsi diff --git a/qcom/cypfg-fps-overlay.dtsi b/qcom/cypfg-fps-overlay.dtsi new file mode 100644 index 000000000000..62ecf09d78a7 --- /dev/null +++ b/qcom/cypfg-fps-overlay.dtsi @@ -0,0 +1,120 @@ +&tlmm { + ets_int_active: ets_int_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_int_suspend: ets_int_suspend { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + 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 { + et528: et528 { + compatible = "egistec,et516"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <93 0x0>; + egistec,gpio_irq = <&tlmm 93 0x2>; + egistec,gpio_rst = <&tlmm 95 0x2>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&ets_int_active>; + pinctrl-1 = <&ets_int_suspend>; + }; + + 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>; + }; +}; diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 6382352d4447..817932804336 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -16,7 +16,7 @@ #include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "denver-fps-overlay.dtsi" +#include "cypfg-fps-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" &sdhc_2 {