public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
From: KwangDeok Son <kdson@zinitix.com>
To: devicetree-spec@vger.kernel.org
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com,
	kdson@zinitix.com
Subject: [PATCH] dt-bindings: input: Document the Zinitix Touchpad bindigns.
Date: Fri, 13 Nov 2020 19:24:36 +0900	[thread overview]
Message-ID: <20201113192436.54e2f2a6@zinitix-H370AORUSGAMING3> (raw)

Add DT bindings documentation for Zinitix I2C Touchpad.

Signed-off-by: KwangDeok Son <kdson@zinitix.com>

---
diff --git a/Documentation/devicetree/bindings/input/zinitix-touchpad.txt b/Documentation/devicetree/bindings/input/zinitix-touchpad.txt
index e69de29bb2d1..29a3fe9b58cb 100644
--- a/Documentation/devicetree/bindings/input/zinitix-touchpad.txt
+++ b/Documentation/devicetree/bindings/input/zinitix-touchpad.txt
@@ -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;
+		};
+	};




                 reply	other threads:[~2020-11-13 10:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201113192436.54e2f2a6@zinitix-H370AORUSGAMING3 \
    --to=kdson@zinitix.com \
    --cc=devicetree-spec@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox