From 84fdc29d743ab1de141d72e021427a2ea8f767a9 Mon Sep 17 00:00:00 2001 From: Fei Mao Date: Wed, 12 Feb 2020 11:04:02 +0800 Subject: [PATCH] dt-bindings: Add dt binding for NT36xxx driver Add device tree binding document for new touch driver. Change-Id: Ib45cabd7b2de3d094dc6832a9aff66520b033aaa --- .../input/touchscreen/novatek_nt36xxx.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bindings/input/touchscreen/novatek_nt36xxx.txt diff --git a/bindings/input/touchscreen/novatek_nt36xxx.txt b/bindings/input/touchscreen/novatek_nt36xxx.txt new file mode 100644 index 000000000000..44b963f1a264 --- /dev/null +++ b/bindings/input/touchscreen/novatek_nt36xxx.txt @@ -0,0 +1,32 @@ +* Novatek nt36xxx touch controller + +Please add this description here: The Novatek Touch controller is connected to the +host processor via I2C. The controller generates interrupts when the user touches +the panel. The host controller is expected to read the touch coordinates over I2C and +pass the coordinates to the rest of the system. + +Required properties: + - compatible : should be "novatek,NVT-ts" + - reg : i2c slave address of the device. + - vdd-supply : digital voltage power supply needed to power device. + - avdd-supply : analog voltage power supply needed to power device. + - novatek,reset-gpio : reset gpio. + - novatek,irq-gpio : irq gpio. + +Example: + &i2c_1 { + status = "ok"; + + /* Novatek device tree node */ + novatek@62 { + compatible = "novatek,NVT-ts"; + reg = <0x62>; + status = "ok"; + + vdd-supply = <&pm8994_lvs2>; + avdd-supply = <&pm8994_l22>; + + novatek,reset-gpio = <&msm_gpio 102 0x00>; + novatek,irq-gpio = <&msm_gpio 65 0x2001>; + }; + }; \ No newline at end of file