From f25e87bc6e927a4717ecee75d3e00fef6298c0a9 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 2 Jul 2021 10:18:24 +0800 Subject: [PATCH] arm64/dt: config nfc dts node for cypfq and cypfr Cyprus 5G 4350 pro and 6375 use i2c 7 bus for nfc Nfc controller is st21nfcj Change-Id: I28b814f7e8b1ab3047c16a5c253aaf7f3d995733 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2000093 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 26 +++++++++++++------------- qcom/holi-cypfr-common-overlay.dtsi | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index ede9027a0b9a..cc0b4fc6ed83 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -183,26 +183,26 @@ }; }; -&qupv3_se0_i2c { +&qupv3_se7_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_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>; }; }; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index d792a84c2c76..633307766f2a 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -181,26 +181,26 @@ }; }; -&qupv3_se0_i2c { +&qupv3_se7_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_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>; }; };