From: George Chan via B4 Relay <devnull+gchan9527.gmail.com@kernel.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Del Regno <kholk11@gmail.com>,
Henrik Rydberg <rydberg@bitmath.org>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, George Chan <gchan9527@gmail.com>
Subject: [PATCH RFC/RFT 1/3] dt-bindings: touchscreen: Add binding for Novatek NT36xxx series driver
Date: Tue, 15 Oct 2024 20:53:29 +0800 [thread overview]
Message-ID: <20241015-nt36xxx-v1-1-3919d0bffee6@gmail.com> (raw)
In-Reply-To: <20241015-nt36xxx-v1-0-3919d0bffee6@gmail.com>
From: George Chan <gchan9527@gmail.com>
Add binding for the Novatek NT36xxx series touchscreen driver.
Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com>
Signed-off-by: George Chan <gchan9527@gmail.com>
---
.../bindings/input/touchscreen/nt36xxx.yaml | 70 ++++++++++++++++++++++
1 file changed, 70 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml b/Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml
new file mode 100644
index 0000000000..3919f0d026
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/touchscreen/nt36xxx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Novatek NT36xxx series touchscreen controller Bindings
+
+maintainers:
+ - AngeloGioacchino Del Regno <kholk11@gmail.com>
+ - George Chan <gchan9527@gmail.com>
+
+allOf:
+ - $ref: touchscreen.yaml#
+
+properties:
+ compatible:
+ enum:
+ - novatek,nt36525-spi
+ - novatek,nt36672a-spi
+ - novatek,nt36675-spi
+ - novatek,nt36676f-spi
+ - novatek,nt36772-spi
+
+ reg:
+ maxItems: 1
+
+ irq-gpio:
+ maxItems: 1
+
+ vdd-supply:
+ description: Power supply regulator for VDD pin
+
+ vio-supply:
+ description: Power supply regulator on VDD-IO pin
+
+ firmware-name:
+ description: Firmware for device initialization, if unspecify, all
+ other IC treat as no firmware needed. For nt36675, default
+ to "novatek_ts_tianma_fw.bin".
+
+ spi-max-frequency:
+ description: Set max frequency to spi bus communication. This is optional.
+
+unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+ - irq-gpio
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ touchscreen@0 {
+ compatible = "novatek,nt36675-spi";
+ reg = <0>;
+ spi-max-frequency = <4000000>;
+ irq-gpio = <&tlmm 9 0x2001>;
+ firmware-name = "novatek_ts_tianma_fw.bin";
+ };
+ };
+
+...
--
2.43.0
next prev parent reply other threads:[~2024-10-15 12:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 12:53 [PATCH RFC/RFT 0/3] Add support to Novatek's touch IC nt36xxx George Chan via B4 Relay
2024-10-15 12:53 ` George Chan via B4 Relay [this message]
2024-10-15 13:39 ` [PATCH RFC/RFT 1/3] dt-bindings: touchscreen: Add binding for Novatek NT36xxx series driver Krzysztof Kozlowski
2024-10-15 14:27 ` Rob Herring (Arm)
2024-10-15 12:53 ` [PATCH RFC/RFT 2/3] Input: Add Novatek NT36xxx touchscreen driver George Chan via B4 Relay
2024-10-15 12:53 ` [PATCH RFC/RFT 3/3] dts: sm7125-xiaomi-joyeuse: Sample device tree for reference George Chan via B4 Relay
2024-10-15 14:17 ` [PATCH RFC/RFT 0/3] Add support to Novatek's touch IC nt36xxx Rob Herring (Arm)
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=20241015-nt36xxx-v1-1-3919d0bffee6@gmail.com \
--to=devnull+gchan9527.gmail.com@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=gchan9527@gmail.com \
--cc=kholk11@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=rydberg@bitmath.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).