mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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 <wuwl10@motorola.com> Reviewed-on: https://gerrit.mot.com/1953101 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
81a80129c8
commit
7136a8033a
2 changed files with 121 additions and 1 deletions
120
qcom/cypfg-fps-overlay.dtsi
Normal file
120
qcom/cypfg-fps-overlay.dtsi
Normal file
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue