Hawao: NFC Bringup(6) - device tree

modify the nfc gpio setting
add I2C input-enable in I2C sleep for nfc I2C only

Change-Id: If68ca97915be3b741718eaaa6dc67ae3c9d8fc10
Signed-off-by: panzh2 <panzh2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2138469
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
panzh2 authored and Carlos Pinho committed 2023-05-31 17:01:04 -03:00
1 parent d587054ee7
commit 0bb4387aa5
1 file changed
+73 -106
+73 -106
View File
@@ -1,123 +1,90 @@
&tlmm {
nfc {
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-pull-up;
};
qupv3_se1_i2c_pins: qupv3_se1_i2c_pins{
qupv3_se1_i2c_act: qupv3_se1_i2c_active {
mux {
pins = "gpio4", "gpio5";
function = "qup1";
};
nfc_int_suspend: nfc_int_suspend {
/* sleep state */
mux {
/* GPIO 70 NFC Read Interrupt */
pins = "gpio70";
function = "gpio";
};
config {
pins = "gpio4", "gpio5";
drive-strength = <2>;
bias-disable;
};
};
config {
pins = "gpio70";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
qupv3_se1_i2c_sle: qupv3_se1_i2c_sleep {
mux {
pins = "gpio4", "gpio5";
function = "gpio";
};
nfc_enable_active: nfc_enable_active {
/* active state */
mux {
/* 69: Enable 31: Firmware */
pins = "gpio69", "gpio31";
function = "gpio";
};
config {
pins = "gpio69", "gpio31";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
};
nfc_enable_suspend: nfc_enable_suspend {
/* sleep state */
mux {
/* 69: Enable 31: Firmware */
pins = "gpio69", "gpio31";
function = "gpio";
};
config {
pins = "gpio69", "gpio31";
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;
};
config {
pins = "gpio4", "gpio5";
drive-strength = <2>;
bias-pull-up;
input-enable;
};
};
};
nfc {
nfc_clk_req_active {
/* active state */
mux {
/* GPIO 112: NFC CLOCK REQUEST */
pins = "gpio112";
function = "gpio";
};
config {
pins = "gpio112";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
};
nfc_clk_req_suspend {
/* sleep state */
mux {
/* GPIO 112: NFC CLOCK REQUEST */
pins = "gpio112";
function = "gpio";
};
config {
pins = "gpio112";
drive-strength = <2>; /* 2 MA */
bias-disable;
};
};
};
};
&qupv3_se1_i2c {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
#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 112 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";
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>;
//sec-nfc,pmic-ldo = "vdd_ldo20";
//clkctrl-reg = <0x10e60a0c>;
//clock-names = "OSC_NFC";
//clocks = <&rpmcc RPM_SMD_RF_CLK1>;
//pinctrl-names = "default";
//pinctrl-0 = <&xclkout1 &nfc_pd &nfc_clkreq>;
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>;
};
};
};