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
181 lines
3.0 KiB
Devicetree
181 lines
3.0 KiB
Devicetree
|
|
&tlmm {
|
|
ets {
|
|
ets_int_active: ets_int_active {
|
|
/* INTERRUPT */
|
|
mux {
|
|
pins = "gpio97";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio97";
|
|
drive-strength = <2>; /* 2 MA */
|
|
input-enable;
|
|
};
|
|
};
|
|
ets_int_suspend: ets_int_suspend {
|
|
/* INTERRUPT */
|
|
mux {
|
|
pins = "gpio97";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio97";
|
|
drive-strength = <2>; /* 2 MA */
|
|
input-enable;
|
|
};
|
|
};
|
|
};
|
|
|
|
fpc {
|
|
rst_active: fps_rst_active {
|
|
/* active state */
|
|
mux {
|
|
pins = "gpio104";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio104";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-disable;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
rst_suspend: fps_rst_suspend {
|
|
/* sleep state */
|
|
mux {
|
|
pins = "gpio104";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio104";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-down; /* pull down */
|
|
output-high;
|
|
|
|
};
|
|
};
|
|
|
|
int_active: fps_int_active {
|
|
/* active state */
|
|
mux {
|
|
pins = "gpio97";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio97";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-down; /* pull down */
|
|
input-enable;
|
|
};
|
|
};
|
|
|
|
int_suspend: fps_int_suspend {
|
|
/* sleep state */
|
|
mux {
|
|
pins = "gpio97";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio97";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-down; /* pull down */
|
|
input-enable;
|
|
};
|
|
};
|
|
};
|
|
|
|
fps_ido3_en_active: ldo3_en_active {
|
|
/* active state */
|
|
mux {
|
|
pins = "gpio102";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio102";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-up;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
fps_ido3_en_suspend: ldo3_en_suspend {
|
|
/* suspend state */
|
|
mux {
|
|
pins = "gpio102";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio102";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-up;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
fps_ido1p8_en_active: ldo1p8_en_active {
|
|
/* active state */
|
|
mux {
|
|
pins = "gpio105";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio105";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-up;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
fps_ido1p8_en_suspend: ldo1p8_en_suspend {
|
|
/* suspend state */
|
|
mux {
|
|
pins = "gpio105";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio105";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-up;
|
|
output-high;
|
|
};
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
et528: et528 {
|
|
compatible = "egistec,et516";
|
|
status = "ok"
|
|
reg = <0>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <97 0x0>;
|
|
egistec,gpio_irq = <&tlmm 97 0x2>;
|
|
egistec,gpio_rst = <&tlmm 104 0x2>;
|
|
|
|
pinctrl-names = "default", "suspend";
|
|
pinctrl-0 = <&ets_int_active &fps_ido3_en_active &fps_ido1p8_en_active>;
|
|
pinctrl-1 = <&ets_int_suspend &fps_ido3_en_suspend &fps_ido1p8_en_suspend>;
|
|
};
|
|
|
|
fpc: fpc_fpc1020 {
|
|
compatible = "fpc,fpc1020";
|
|
status = "ok"
|
|
irq = <&tlmm 97 0>;
|
|
rst = <&tlmm 104 0>;
|
|
pinctrl-names = "default", "suspend";
|
|
pinctrl-0 = <&rst_active &int_active &fps_ido3_en_active &fps_ido1p8_en_active>;
|
|
pinctrl-1 = <&rst_suspend &int_suspend &fps_ido3_en_suspend &fps_ido1p8_en_suspend>;
|
|
};
|
|
};
|