Skip to contentSkip to conversation

dt-bindings: input: Document the Zinitix Touchpad bindigns.

PATCH New KwangDeok Son 1 participant 1 message Nov 13, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: input: Document the Zinitix Touchpad bindigns.

Add DT bindings documentation for Zinitix I2C Touchpad.

---

Documentation/devicetree/bindings/input/zinitix-touchpad.txt +28 -0
index e69de29bb2d1..29a3fe9b58cb 100644
@@ -0,0 +1,28 @@
+Zinitix I2C Touchpad
+
+
+Required properties:
+- compatible: must be "zinitix,zntxtp".
+- reg: I2C address of the chip.
+- interrupts: interrupt to which the chip is connected (see interrupt
+  binding[0]).
+
+
+Optional properties:
+- wakeup-source: touchpad can be used as a wakeup source.
+- vcc-supply: a phandle for the regulator supplying 2.7V to 3.6V power.
+
+[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
+[1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
+
+
+Example:
+	&i2c0 {
+		touchpad@40 {
+			compatible = "zinitix,zntxtp";
+			reg = <0x40>;
+			interrupt-parent = <&gpio>;
+			interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
+			wakeup-source;
+		};
+	};