arm64/dt: modify fps dts config in borneo

Add fps device node to bring up fps.
Use fpc1540 and et528

Change-Id: I2af13791f65d93cf1fe25b5d155f8022cfac79ee
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1582576
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenlj2 authored and Carlos Pinho committed 2023-05-31 17:01:00 -03:00
1 parent 43998a9f05
commit 44a46d82f1
1 file changed
+97 -63
+97 -63
View File
@@ -1,71 +1,106 @@
&tlmm { &tlmm {
fps_rst_active: fps_rst_active { ets {
/* active state */ ets_int_active: ets_int_active {
mux { /* INTERRUPT */
pins = "gpio104"; mux {
function = "gpio"; pins = "gpio97";
}; function = "gpio";
};
config { config {
pins = "gpio104"; pins = "gpio97";
drive-strength = <2>; /* 2 MA */ drive-strength = <2>; /* 2 MA */
output-low; input-enable;
};
};
ets_int_suspend: ets_int_suspend {
/* INTERRUPT */
mux {
pins = "gpio97";
function = "gpio";
};
config {
pins = "gpio97";
drive-strength = <2>; /* 2 MA */
input-enable;
};
}; };
}; };
fps_rst_suspend: fps_rst_suspend { fpc {
/* sleep state */ rst_active: fps_rst_active {
mux { /* active state */
pins = "gpio104"; mux {
function = "gpio"; pins = "gpio104";
function = "gpio";
};
config {
pins = "gpio104";
drive-strength = <2>; /* 2 MA */
bias-disable;
output-low;
};
}; };
config { rst_suspend: fps_rst_suspend {
pins = "gpio104"; /* sleep state */
drive-strength = <2>; /* 2 MA */ mux {
}; pins = "gpio104";
}; function = "gpio";
};
fps_int_active: fps_int_active { config {
/* active state */ pins = "gpio104";
mux { drive-strength = <2>; /* 2 MA */
pins = "gpio65"; bias-pull-down; /* pull down */
function = "gpio"; output-high;
};
}; };
config { int_active: fps_int_active {
pins = "gpio65"; /* active state */
drive-strength = <2>; /* 2 MA */ mux {
bias-disable; pins = "gpio97";
input-enable; function = "gpio";
}; };
};
fps_int_suspend: fps_int_suspend { config {
/* sleep state */ pins = "gpio97";
mux { drive-strength = <2>; /* 2 MA */
pins = "gpio65"; bias-pull-down; /* pull down */
function = "gpio"; input-enable;
};
}; };
config { int_suspend: fps_int_suspend {
pins = "gpio65"; /* sleep state */
drive-strength = <2>; /* 2 MA */ mux {
bias-disable; pins = "gpio97";
input-enable; function = "gpio";
};
config {
pins = "gpio97";
drive-strength = <2>; /* 2 MA */
bias-pull-down; /* pull down */
input-enable;
};
}; };
}; };
fps_ido3_en_active: ldo3_en_active { fps_ido3_en_active: ldo3_en_active {
/* active state */ /* active state */
mux { mux {
pins = "gpio34"; pins = "gpio102";
function = "gpio"; function = "gpio";
}; };
config { config {
pins = "gpio34"; pins = "gpio102";
drive-strength = <2>; /* 2 MA */ drive-strength = <2>; /* 2 MA */
bias-pull-up; bias-pull-up;
output-high; output-high;
@@ -75,12 +110,12 @@
fps_ido3_en_suspend: ldo3_en_suspend { fps_ido3_en_suspend: ldo3_en_suspend {
/* suspend state */ /* suspend state */
mux { mux {
pins = "gpio34"; pins = "gpio102";
function = "gpio"; function = "gpio";
}; };
config { config {
pins = "gpio34"; pins = "gpio102";
drive-strength = <2>; /* 2 MA */ drive-strength = <2>; /* 2 MA */
bias-pull-up; bias-pull-up;
output-high; output-high;
@@ -90,12 +125,12 @@
fps_ido1p8_en_active: ldo1p8_en_active { fps_ido1p8_en_active: ldo1p8_en_active {
/* active state */ /* active state */
mux { mux {
pins = "gpio106"; pins = "gpio105";
function = "gpio"; function = "gpio";
}; };
config { config {
pins = "gpio106"; pins = "gpio105";
drive-strength = <2>; /* 2 MA */ drive-strength = <2>; /* 2 MA */
bias-pull-up; bias-pull-up;
output-high; output-high;
@@ -105,12 +140,12 @@
fps_ido1p8_en_suspend: ldo1p8_en_suspend { fps_ido1p8_en_suspend: ldo1p8_en_suspend {
/* suspend state */ /* suspend state */
mux { mux {
pins = "gpio106"; pins = "gpio105";
function = "gpio"; function = "gpio";
}; };
config { config {
pins = "gpio106"; pins = "gpio105";
drive-strength = <2>; /* 2 MA */ drive-strength = <2>; /* 2 MA */
bias-pull-up; bias-pull-up;
output-high; output-high;
@@ -119,28 +154,27 @@
}; };
&soc { &soc {
goodix_fingerprint{ et528: et528 {
//status = "/chosen", "mmi,fps", "true"; compatible = "egistec,et516";
status = "ok" status = "ok"
compatible = "goodix,fingerprint"; reg = <0>;
fp-gpio-reset = <&tlmm 104 0x00>;
fp-gpio-irq = <&tlmm 65 0x00>;
fp-gpio-ven = <&tlmm 34 0x00>;
interrupt-parent = <&tlmm>; interrupt-parent = <&tlmm>;
interrupts = <65 0>; interrupts = <97 0x0>;
interrupt-controller; egistec,gpio_irq = <&tlmm 97 0x2>;
egistec,gpio_rst = <&tlmm 104 0x2>;
pinctrl-names = "default", "suspend"; pinctrl-names = "default", "suspend";
pinctrl-0 = <&fps_rst_active &fps_int_active &fps_ido3_en_active>; pinctrl-0 = <&ets_int_active &fps_ido3_en_active &fps_ido1p8_en_active>;
pinctrl-1 = <&fps_rst_suspend &fps_int_suspend &fps_ido3_en_suspend>; pinctrl-1 = <&ets_int_suspend &fps_ido3_en_suspend &fps_ido1p8_en_suspend>;
}; };
fpc: fpc_fpc1020 { fpc: fpc_fpc1020 {
compatible = "fpc,fpc1020"; compatible = "fpc,fpc1020";
status = "ok" status = "ok"
irq = <&tlmm 65 0>; irq = <&tlmm 97 0>;
rst = <&tlmm 104 0>; rst = <&tlmm 104 0>;
pinctrl-names = "default", "suspend"; pinctrl-names = "default", "suspend";
pinctrl-0 = <&fps_rst_active &fps_int_active>; pinctrl-0 = <&rst_active &int_active &fps_ido3_en_active &fps_ido1p8_en_active>;
pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; pinctrl-1 = <&rst_suspend &int_suspend &fps_ido3_en_suspend &fps_ido1p8_en_suspend>;
}; };
}; };