diff --git a/qcom/khaje-hawao-nfc-overlay.dtsi b/qcom/khaje-hawao-nfc-overlay.dtsi index 5e9d4576df4b..784610cc43b7 100644 --- a/qcom/khaje-hawao-nfc-overlay.dtsi +++ b/qcom/khaje-hawao-nfc-overlay.dtsi @@ -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>; - }; + }; };