From 1da1978227e9c4f5f652fc42019fe8ce33bcc6d7 Mon Sep 17 00:00:00 2001 From: Karthik Poosa Date: Fri, 13 Dec 2019 12:50:58 +0530 Subject: [PATCH] dt-bindings: nfc: Add Documentation for I3C NFC devicetree node Add description of qcom,sn-nci-i3c. Change-Id: I5b18343a2fce34efa217d68ff0c90e0ee1e1b520 --- bindings/nfc/sn-nci-i3c.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 bindings/nfc/sn-nci-i3c.txt diff --git a/bindings/nfc/sn-nci-i3c.txt b/bindings/nfc/sn-nci-i3c.txt new file mode 100644 index 000000000000..eddbd04d44ec --- /dev/null +++ b/bindings/nfc/sn-nci-i3c.txt @@ -0,0 +1,37 @@ +Qualcomm Technologies, Inc SNxxx NFC NCI device + +Near Field Communication (NFC) device is based on NFC Controller Interface (NCI). +Refer to I3C bindings file for more information. + +Required properties: + +- compatible: "qcom,sn-nci-i3c" +- reg: NFC I3C device's PID. +- qcom,sn-ven: specific gpio for hardware reset. +- qcom,sn-firm: gpio for firmware download +- qcom,sn-clkreq: gpio for clock. + +Optional properties: + +- pinctrl-names, pinctrl-0, pincntrl-1: references to our pincntrl settings. +- clocks, clock-names: must contain the SNxxx's core clock. +- qcom,clk-src: NFC clock for antenna. +- assigned-address: If specific I3C dynamic address is required it can be specified here. + +Example: + + sn@0,23600000000 { + compatible = "qcom,sn-nci-i3c"; + reg = <0 0x236 0x00000000>; + assigned-address = <0xa>; + qcom,sn-ven = <&tlmm 62 0x01>; + qcom,sn-firm = <&tlmm 86 0x00>; + qcom,sn-clkreq = <&tlmm 63 0x00>; + qcom,clk-src = "BBCLK2"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&nfc_fwdl_active &nfc_clk_req_active>; + pinctrl-1 = <&nfc_fwdl_suspend &nfc_clk_req_suspend>; + clocks = <&clock_rpm clk_bb_clk2_pin>; + clock-names = "ref_clk"; + status = "ok"; + };