From: Oleh Kuzhylnyi <kuzhylol@gmail.com>
To: linux-input@vger.kernel.org
Cc: dmitry.torokhov@gmail.com, artur.serhiienko@gmail.com,
igor.opaniuk@gmail.com, Oleh Kuzhylnyi <kuzhylol@gmail.com>
Subject: [PATCH 2/2] dt-bindings: input: touchscreen: add Hynitron CST816X
Date: Fri, 17 May 2024 11:27:32 +0200 [thread overview]
Message-ID: <20240517092732.47715-2-kuzhylol@gmail.com> (raw)
In-Reply-To: <20240517092732.47715-1-kuzhylol@gmail.com>
Add documentation for the Hynitron CST816X touchscreen bindings.
Signed-off-by: Oleh Kuzhylnyi <kuzhylol@gmail.com>
---
.../input/touchscreen/hynitron,cst816x.yaml | 57 +++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
diff --git a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
new file mode 100644
index 000000000000..b08e907ee672
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/touchscreen/hynitron,cst816x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Hynitron CST816X series touchscreen controller
+
+description: |
+ Bindings for Hynitron CST816X series touchscreen controllers.
+
+maintainers:
+ - Oleh Kuzhylnyi <kuzhylol@gmail.com>
+
+allOf:
+ - $ref: touchscreen.yaml#
+
+properties:
+ compatible:
+ enum:
+ - hynitron,cst816s
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ reset-gpios:
+ maxItems: 1
+
+additionalProperties: false
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - reset-gpios
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cst816s: cst816s@15 {
+ compatible = "hynitron,cst816s";
+ reg = <0x15>;
+ interrupt-parent = <&gpio>;
+ interrupts = <4 1>;
+ reset-gpios = <&gpio 17 0>;
+ status="okay";
+ };
+ };
+
+...
--
2.34.1
next prev parent reply other threads:[~2024-05-17 9:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-17 9:27 [PATCH 1/2] input: add driver for Hynitron CST816X touchscreen Oleh Kuzhylnyi
2024-05-17 9:27 ` Oleh Kuzhylnyi [this message]
2024-05-19 11:46 ` [PATCH 2/2] dt-bindings: input: touchscreen: add Hynitron CST816X Krzysztof Kozlowski
2024-05-19 11:49 ` [PATCH 1/2] input: add driver for Hynitron CST816X touchscreen Krzysztof Kozlowski
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=20240517092732.47715-2-kuzhylol@gmail.com \
--to=kuzhylol@gmail.com \
--cc=artur.serhiienko@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=igor.opaniuk@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;
as well as URLs for NNTP newsgroup(s).