[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241015-nt36xxx-v1-1-3919d0bffee6@gmail.com>
Date: Tue, 15 Oct 2024 20:53:29 +0800
From: George Chan via B4 Relay <devnull+gchan9527.gmail.com@...nel.org>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Del Regno <kholk11@...il.com>,
Henrik Rydberg <rydberg@...math.org>
Cc: linux-input@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, George Chan <gchan9527@...il.com>
Subject: [PATCH RFC/RFT 1/3] dt-bindings: touchscreen: Add binding for
Novatek NT36xxx series driver
From: George Chan <gchan9527@...il.com>
Add binding for the Novatek NT36xxx series touchscreen driver.
Signed-off-by: AngeloGioacchino Del Regno <kholk11@...il.com>
Signed-off-by: George Chan <gchan9527@...il.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@...il.com>
+ - George Chan <gchan9527@...il.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
Powered by blists - more mailing lists