summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Bouyack <mbouyack@google.com>2021-10-01 17:59:54 -0700
committerMatthew Bouyack <mbouyack@google.com>2021-10-11 10:16:12 -0700
commit8b511047f88bbe5315ba13f57139efdb2bfab6a2 (patch)
tree36741b1dc7dd7a2363a6c7e9ae574a72719c4c66
parent3f43b5ec9c45fbf6c07a7a171c0f19d6edd28cb6 (diff)
downloaddevicetree-8b511047f88bbe5315ba13f57139efdb2bfab6a2.tar.gz
Add NFC active gpio to the touchscreen DT
This will be used to ignore false touch events when NFC is active. Signed-off-by: Matthew Bouyack <mbouyack@google.com> Bug: 192429087 Change-Id: If5ea3bfe1fe25c5024d7fc59c6d1ee24128baf95
-rw-r--r--r11_novatek_touchscreen.dtsi16
1 files changed, 16 insertions, 0 deletions
diff --git a/r11_novatek_touchscreen.dtsi b/r11_novatek_touchscreen.dtsi
index e3c81c9..981230f 100644
--- a/r11_novatek_touchscreen.dtsi
+++ b/r11_novatek_touchscreen.dtsi
@@ -12,12 +12,27 @@
status = "disabled";
novatek,irq-gpio =<&gpa0 5 GPIO_ACTIVE_LOW>;
+ novatek,nfc-active-gpio = <&gpa1 4 0x00>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_active>;
+ novatek,nfc-active-ms = <500>;
};
};
&pinctrl_0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&nfc_active>;
+
+ /* SOC_NFC_ZM_L */
+ nfc_active: nfc-active {
+ samsung,pins = "gpa1-4";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
+ samsung,pin-drv = <0>; /* LVL1 DRV */
+ samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>;
+ samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
+ };
+
/* TP_INT */
ts_int_active: ts-int-active {
samsung,pins = "gpa0-5";
@@ -25,3 +40,4 @@
samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
};
};
+