From 072df0939b12778c275c3ae6fce9198c953ac3c6 Mon Sep 17 00:00:00 2001 From: Karthik Poosa Date: Mon, 11 May 2020 12:30:11 +0530 Subject: [PATCH] ARM: dts: msm: Add I2C devicetree node of NFC for lahaina Add I2C slave devicetree node of NFC controller for lahaina. Change-Id: I6eb7c5517dcecf567620b90529d16e4bebe7f889 --- qcom/lahaina-cdp.dtsi | 23 +++++++++++++++++++++++ qcom/lahaina-mtp.dtsi | 23 +++++++++++++++++++++++ qcom/lahaina-pinctrl.dtsi | 30 ++++++++++++++++++++++++++++++ qcom/lahaina-qrd.dtsi | 23 +++++++++++++++++++++++ 4 files changed, 99 insertions(+) diff --git a/qcom/lahaina-cdp.dtsi b/qcom/lahaina-cdp.dtsi index 3c9136b48243..6ab69a1f4030 100644 --- a/qcom/lahaina-cdp.dtsi +++ b/qcom/lahaina-cdp.dtsi @@ -207,4 +207,27 @@ status = "ok"; }; +&qupv3_se15_i2c { + status = "ok"; + qcom,clk-freq-out = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 87 0x00>; + qcom,sn-ven = <&tlmm 62 0x00>; + qcom,sn-firm = <&tlmm 86 0x00>; + qcom,sn-clkreq = <&tlmm 63 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <87 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active + &nfc_clk_req_active &nfc_fwdl_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend + &nfc_clk_req_suspend &nfc_fwdl_suspend>; + }; +}; + #include "camera/lahaina-camera-sensor-cdp.dtsi" diff --git a/qcom/lahaina-mtp.dtsi b/qcom/lahaina-mtp.dtsi index bc15e9683a8a..97ca6cac2abc 100644 --- a/qcom/lahaina-mtp.dtsi +++ b/qcom/lahaina-mtp.dtsi @@ -170,4 +170,27 @@ status = "ok"; }; +&qupv3_se15_i2c { + status = "ok"; + qcom,clk-freq-out = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 87 0x00>; + qcom,sn-ven = <&tlmm 62 0x00>; + qcom,sn-firm = <&tlmm 86 0x00>; + qcom,sn-clkreq = <&tlmm 63 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <87 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active + &nfc_clk_req_active &nfc_fwdl_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend + &nfc_clk_req_suspend &nfc_fwdl_suspend>; + }; +}; + #include "camera/lahaina-camera-sensor-mtp.dtsi" diff --git a/qcom/lahaina-pinctrl.dtsi b/qcom/lahaina-pinctrl.dtsi index d84b310900d5..7c26154508d2 100644 --- a/qcom/lahaina-pinctrl.dtsi +++ b/qcom/lahaina-pinctrl.dtsi @@ -381,6 +381,36 @@ }; nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 87 NFC Read Interrupt */ + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 87 NFC Read Interrupt */ + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + nfc_enable_active: nfc_enable_active { mux { pins = "gpio62"; diff --git a/qcom/lahaina-qrd.dtsi b/qcom/lahaina-qrd.dtsi index 05d398bae329..f22cf88e3639 100644 --- a/qcom/lahaina-qrd.dtsi +++ b/qcom/lahaina-qrd.dtsi @@ -227,3 +227,26 @@ 0x3 0x3 0x3 0x3>; }; }; + +&qupv3_se15_i2c { + status = "ok"; + qcom,clk-freq-out = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 87 0x00>; + qcom,sn-ven = <&tlmm 62 0x00>; + qcom,sn-firm = <&tlmm 86 0x00>; + qcom,sn-clkreq = <&tlmm 63 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <87 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active + &nfc_clk_req_active &nfc_fwdl_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend + &nfc_clk_req_suspend &nfc_fwdl_suspend>; + }; +};