From 9779dca53bdbcc1815e47ce4e1ed898b1fca6d8a Mon Sep 17 00:00:00 2001 From: zhangjun10 Date: Wed, 28 Sep 2022 11:21:29 +0800 Subject: [PATCH] : dts/nfc: change nfc VEN GPIO from 48 to 6 this change only for DVT2 later hardware and only for JP SKU SN110P Change-Id: Iae2d29cb49ed188243b3630bc341aba9ab1b5c52 Signed-off-by: zhangjun10 Reviewed-on: https://gerrit.mot.com/2393097 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/Makefile | 2 + qcom/holi-penang-dvt2-jp-overlay.dts | 78 ++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 qcom/holi-penang-dvt2-jp-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index b41807bfa7b5..e5bed529fe87 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -101,9 +101,11 @@ blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb dtbo-$(CONFIG_PENANG_DTB) += \ + holi-penang-dvt2-jp-overlay.dtbo \ holi-penang-evt1-overlay.dtbo holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-penang-dvt2-jp-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_PNANGN_DTB) += \ holi-pnangn-evt1-overlay.dtbo diff --git a/qcom/holi-penang-dvt2-jp-overlay.dts b/qcom/holi-penang-dvt2-jp-overlay.dts new file mode 100644 index 000000000000..a7fbb9d5c1a1 --- /dev/null +++ b/qcom/holi-penang-dvt2-jp-overlay.dts @@ -0,0 +1,78 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <(6<<8) 0xB200>; +}; + +&tlmm { + + nfc { + sn110_enable_active: sn110_enable_active { + mux { + /* 6: Enable, 8: Firmware*/ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + sn110_enable_suspend: sn110_enable_suspend { + mux { + /* 6: Enable, 8: Firmware */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + }; +}; + +&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>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &sn110_enable_active>; + pinctrl-1 = <&nfc_int_suspend &sn110_enable_suspend>; + }; +};