[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230415020222.216232-2-joelselvaraj.oss@gmail.com>
Date: Fri, 14 Apr 2023 21:02:18 -0500
From: Joel Selvaraj <joelselvaraj.oss@...il.com>
To: Caleb Connolly <caleb@...nolly.tech>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Henrik Rydberg <rydberg@...math.org>,
Arnd Bergmann <arnd@...db.de>,
Robert Jarzmik <robert.jarzmik@...e.fr>,
Jeff LaBundy <jeff@...undy.com>,
Markuss Broks <markuss.broks@...il.com>,
Jean Delvare <jdelvare@...e.de>,
Max Krummenacher <max.krummenacher@...adex.com>,
Chris Morgan <macromorgan@...mail.com>,
Job Noorman <job@...rman.info>,
Alistair Francis <alistair@...stair23.me>,
Hans de Goede <hdegoede@...hat.com>,
Maxime Ripard <mripard@...nel.org>
Cc: linux-input@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht, phone-devel@...r.kernel.org,
Joel Selvaraj <joelselvaraj.oss@...il.com>
Subject: [PATCH v3 1/5] dt-bindings: input: touchscreen: add focaltech,fts5452 touchscreen
Document the Focaltech FTS touchscreen driver.
Signed-off-by: Joel Selvaraj <joelselvaraj.oss@...il.com>
Signed-off-by: Caleb Connolly <caleb@...nolly.tech>
---
.../input/touchscreen/focaltech,fts5452.yaml | 71 +++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml
diff --git a/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml b/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml
new file mode 100644
index 000000000000..28270dc5ed67
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/touchscreen/focaltech,fts5452.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Focaltech FTS I2C Touchscreen Controller
+
+maintainers:
+ - Joel Selvaraj <joelselvaraj.oss@...il.com>
+ - Caleb Connolly <caleb@...nolly.tech>
+
+allOf:
+ - $ref: touchscreen.yaml#
+
+properties:
+ compatible:
+ enum:
+ - focaltech,fts5452
+ - focaltech,fts8719
+
+ reg:
+ const: 0x38
+
+ interrupts:
+ maxItems: 1
+
+ reset-gpios:
+ maxItems: 1
+
+ avdd-supply:
+ description: regulator supplying analog power (2.6V to 3.3V).
+
+ vddio-supply:
+ description: regulator supplying IO power (1.8V).
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - touchscreen-size-x
+ - touchscreen-size-y
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/gpio/gpio.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ touchscreen@38 {
+ compatible = "focaltech,fts5452";
+ reg = <0x38>;
+
+ interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
+ reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
+
+ avdd-supply = <&vreg_l28a_3p0>;
+ vddio-supply = <&vreg_l14a_1p88>;
+
+ pinctrl-0 = <&ts_int_active &ts_reset_active>;
+ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
+ pinctrl-names = "default", "suspend";
+
+ touchscreen-size-x = <1080>;
+ touchscreen-size-y = <2160>;
+ };
+ };
--
2.40.0
Powered by blists - more mailing lists