mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
arm64/dt: milan: add ets fps device node
Milan 5G use et528 as 1st fps sensor, Add device node for it. Change-Id: Ib06fb7982ce3e51b384fafe6f30325cc52ee1a33 Signed-off-by: wuwl10 <wuwl10@motorola.com> Reviewed-on: https://gerrit.mot.com/2049075 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
be1834c4b1
commit
45194f3fd9
2 changed files with 121 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "holi-thermal-overlay-pm6125.dtsi"
|
||||
#include "display/holi-sde-display-mtp-pm6125.dtsi"
|
||||
#include "display/blair-sde-display-mtp.dtsi"
|
||||
#include "milanf-fps-overlay.dtsi"
|
||||
#include "milanf-display.dtsi"
|
||||
#include "milanf-touchscreen.dtsi"
|
||||
|
||||
|
|
|
|||
120
qcom/milanf-fps-overlay.dtsi
Normal file
120
qcom/milanf-fps-overlay.dtsi
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
&tlmm {
|
||||
ets_irq_active: egis_irq_active {
|
||||
/* INTERRUPT */
|
||||
mux {
|
||||
pins = "gpio17";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio17";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
|
||||
ets_rst_high: ets_rst_high {
|
||||
/* INTERRUPT */
|
||||
mux {
|
||||
pins = "gpio18";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio18";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
ets_rst_low: ets_rst_low {
|
||||
/* INTERRUPT */
|
||||
mux {
|
||||
pins = "gpio18";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio18";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
et528: et528 {
|
||||
compatible = "fp-egistec";
|
||||
status = "ok"
|
||||
reg = <0>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <17 0x0>;
|
||||
fp-ctrl-power;
|
||||
fp-gpio-vcc-enable;
|
||||
egistec,gpio_vcc_en = <&tlmm 38 0x0>;
|
||||
egistec,gpio_irq = <&tlmm 17 0x0>;
|
||||
egistec,gpio_reset = <&tlmm 18 0x0>;
|
||||
pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active";
|
||||
pinctrl-0 = <&ets_rst_high>;
|
||||
pinctrl-1 = <&ets_rst_low>;
|
||||
pinctrl-2 = <&ets_irq_active>;
|
||||
};
|
||||
|
||||
};
|
||||
Loading…
Reference in a new issue