device tree setting for devon nfc. disable pm8008 dtsi. Change-Id: I981dbd97e5055c279a4c878c9acc513389e7abd7 Signed-off-by: longc101 <longc101@motorola.com> Reviewed-on: https://gerrit.mot.com/2213606 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Zhenghai Pan <panzh2@lenovo.com> (cherry picked from commit 3a584c1ec41d36ca2ac7474c3357f9f171ce3507) Reviewed-on: https://gerrit.mot.com/2217608 Reviewed-by: Wang Wang <wangwang1@lenovo.com>
173 lines
3.2 KiB
Devicetree
173 lines
3.2 KiB
Devicetree
|
|
&tlmm {
|
|
|
|
qupv3_se1_i2c_pins: qupv3_se1_i2c_pins{
|
|
qupv3_se1_i2c_act: qupv3_se1_i2c_active {
|
|
mux {
|
|
pins = "gpio4", "gpio5";
|
|
function = "qup1";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio4", "gpio5";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
qupv3_se1_i2c_sle: qupv3_se1_i2c_sleep {
|
|
mux {
|
|
pins = "gpio4", "gpio5";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio4", "gpio5";
|
|
drive-strength = <2>;
|
|
bias-pull-up;
|
|
input-enable;
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
nfc {
|
|
nfc_enable_active: nfc_enable_active {
|
|
/* active state */
|
|
mux {
|
|
/* 69: Enable */
|
|
pins = "gpio69";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio69";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
|
|
nfc_enable_suspend: nfc_enable_suspend{
|
|
/* sleep state */
|
|
mux {
|
|
/* 69: Enable */
|
|
pins = "gpio69";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio69";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
nfc_int_active: nfc_int_active {
|
|
/* active state */
|
|
mux {
|
|
/* GPIO 70 NFC Read Interrupt */
|
|
pins = "gpio70";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio70";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
nfc_int_suspend: nfc_int_suspend {
|
|
/* sleep state */
|
|
mux {
|
|
/* GPIO 70 NFC Read Interrupt */
|
|
pins = "gpio70";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio70";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
nfc_clk_req_active {
|
|
/* active state */
|
|
mux {
|
|
/* GPIO 71: NFC CLOCK REQUEST */
|
|
pins = "gpio71";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio71";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
|
|
nfc_clk_req_suspend {
|
|
/* sleep state */
|
|
mux {
|
|
/* GPIO 71: NFC CLOCK REQUEST */
|
|
pins = "gpio71";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio71";
|
|
drive-strength = <2>; /* 2 MA */
|
|
bias-disable;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&qupv3_se1_i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
pinctrl-0 = <&qupv3_se1_i2c_act>;
|
|
pinctrl-1 = <&qupv3_se1_i2c_sle>;
|
|
/*
|
|
sec-nfc@27 {
|
|
compatible = "sec-nfc";
|
|
reg = <0x27>;
|
|
sec-nfc,ven-gpio = <&tlmm 69 0x00>;
|
|
sec-nfc,firm-gpio = <&tlmm 31 0x00>;
|
|
sec-nfc,irq-gpio = <&tlmm 70 0x00>;
|
|
sec-nfc,clk_req-gpio = <&tlmm 71 0x00>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <70 0>;
|
|
interrupt-names = "nfc_irq";
|
|
pinctrl-names = "nfc_active", "nfc_suspend";
|
|
pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_req_active>;
|
|
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>;
|
|
clock-names = "OSC_NFC";
|
|
|
|
}; */
|
|
st21nfc@08 {
|
|
compatible = "st,st21nfc";
|
|
status = "ok"
|
|
reg = <0x08>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <70 0>;
|
|
st,reset_gpio = <&tlmm 69 0x00>;
|
|
st,irq_gpio = <&tlmm 70 0x00>;
|
|
st,clkreq_gpio = <&tlmm 71 0x00>;
|
|
interrupt-names = "nfc_irq";
|
|
pinctrl-names = "nfc_active", "nfc_suspend";
|
|
pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_req_active>;
|
|
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>;
|
|
};
|
|
};
|
|
|
|
&pm8008_8 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pm8008_9 {
|
|
status = "disabled";
|
|
};
|