Loading Documentation/devicetree/bindings/nfc/nq-nci.txt 0 → 100644 +49 −0 Original line number Diff line number Diff line Qualcomm Technologies, Inc NQxxxx NFC NCI device Near Field Communication (NFC) device is based on NFC Controller Interface (NCI) Required properties: - compatible: "qcom,nq-nci" - reg: NCI i2c slave address. - qcom,nq-ven: specific gpio for hardware reset. - qcom,nq-irq: specific gpio for read interrupt. - qcom,nq-firm: gpio for firmware download - qcom,nq-clkreq: gpio for clock - interrupt-parent: Should be phandle for the interrupt controller that services interrupts for this device. - interrupts: Nfc read interrupt,gpio-clk-req interrupt Recommended properties: - interrupt-names: names of interrupts, should include "nfc_irq", used for reference Optional properties: - pinctrl-names, pinctrl-0, pincntrl-1: references to our pincntrl settings - clocks, clock-names: must contain the NQxxxx's core clock. - qcom,nq-esepwr: gpio to control power of secure element Example: nq-nci@2b { compatible = "qcom,nq-nci"; reg = <0x2b>; qcom,nq-irq = <&tlmm 29 0x00>; qcom,nq-ven = <&tlmm 30 0x00>; qcom,nq-firm = <&tlmm 93 0x00>; qcom,nq-clkreq = <&pm8998_gpios 21 0x00>; qcom,nq-esepwr = <&tlmm 116 0x00>; qcom,clk-src = "BBCLK2"; interrupt-parent = <&tlmm>; interrupts = <29 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active","nfc_suspend"; pinctrl-0 = <&nfc_int_active &nfc_disable_active>; pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>; qcom,clk-gpio = <&pm8916_gpios 2 0>; clocks = <&clock_rpm clk_bb_clk2_pin>; clock-names = "ref_clk"; }; drivers/nfc/Kconfig +8 −0 Original line number Diff line number Diff line Loading @@ -70,3 +70,11 @@ source "drivers/nfc/nxp-nci/Kconfig" source "drivers/nfc/s3fwrn5/Kconfig" source "drivers/nfc/st95hf/Kconfig" endmenu config NFC_NQ tristate "QTI NCI based NFC Controller Driver for NQx" depends on I2C help This enables the NFC driver for NQx based devices. This is for i2c connected version. NCI protocol logic resides in the usermode and it has no other NFC dependencies. drivers/nfc/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -17,3 +17,4 @@ obj-$(CONFIG_NFC_ST_NCI) += st-nci/ obj-$(CONFIG_NFC_NXP_NCI) += nxp-nci/ obj-$(CONFIG_NFC_S3FWRN5) += s3fwrn5/ obj-$(CONFIG_NFC_ST95HF) += st95hf/ obj-$(CONFIG_NFC_NQ) += nq-nci.o Loading
Documentation/devicetree/bindings/nfc/nq-nci.txt 0 → 100644 +49 −0 Original line number Diff line number Diff line Qualcomm Technologies, Inc NQxxxx NFC NCI device Near Field Communication (NFC) device is based on NFC Controller Interface (NCI) Required properties: - compatible: "qcom,nq-nci" - reg: NCI i2c slave address. - qcom,nq-ven: specific gpio for hardware reset. - qcom,nq-irq: specific gpio for read interrupt. - qcom,nq-firm: gpio for firmware download - qcom,nq-clkreq: gpio for clock - interrupt-parent: Should be phandle for the interrupt controller that services interrupts for this device. - interrupts: Nfc read interrupt,gpio-clk-req interrupt Recommended properties: - interrupt-names: names of interrupts, should include "nfc_irq", used for reference Optional properties: - pinctrl-names, pinctrl-0, pincntrl-1: references to our pincntrl settings - clocks, clock-names: must contain the NQxxxx's core clock. - qcom,nq-esepwr: gpio to control power of secure element Example: nq-nci@2b { compatible = "qcom,nq-nci"; reg = <0x2b>; qcom,nq-irq = <&tlmm 29 0x00>; qcom,nq-ven = <&tlmm 30 0x00>; qcom,nq-firm = <&tlmm 93 0x00>; qcom,nq-clkreq = <&pm8998_gpios 21 0x00>; qcom,nq-esepwr = <&tlmm 116 0x00>; qcom,clk-src = "BBCLK2"; interrupt-parent = <&tlmm>; interrupts = <29 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active","nfc_suspend"; pinctrl-0 = <&nfc_int_active &nfc_disable_active>; pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>; qcom,clk-gpio = <&pm8916_gpios 2 0>; clocks = <&clock_rpm clk_bb_clk2_pin>; clock-names = "ref_clk"; };
drivers/nfc/Kconfig +8 −0 Original line number Diff line number Diff line Loading @@ -70,3 +70,11 @@ source "drivers/nfc/nxp-nci/Kconfig" source "drivers/nfc/s3fwrn5/Kconfig" source "drivers/nfc/st95hf/Kconfig" endmenu config NFC_NQ tristate "QTI NCI based NFC Controller Driver for NQx" depends on I2C help This enables the NFC driver for NQx based devices. This is for i2c connected version. NCI protocol logic resides in the usermode and it has no other NFC dependencies.
drivers/nfc/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -17,3 +17,4 @@ obj-$(CONFIG_NFC_ST_NCI) += st-nci/ obj-$(CONFIG_NFC_NXP_NCI) += nxp-nci/ obj-$(CONFIG_NFC_S3FWRN5) += s3fwrn5/ obj-$(CONFIG_NFC_ST95HF) += st95hf/ obj-$(CONFIG_NFC_NQ) += nq-nci.o