From 029a884638c14181ace49eb3dae9d7057f05c8a3 Mon Sep 17 00:00:00 2001 From: Akshay Gola Date: Thu, 27 Jun 2024 17:24:38 +0530 Subject: [PATCH] ARM: dts: msm: Enable parade touch driver node Enable parade touch driver node and add its documentation for bring-up. Change-Id: I717186399283741c7c1957acc3319148b4d843f3 Signed-off-by: Akshay Gola --- bindings/input/touchscreen/parade_pt.yaml | 69 +++++++++++++++++++++++ qcom/monaco.dtsi | 2 +- 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 bindings/input/touchscreen/parade_pt.yaml diff --git a/bindings/input/touchscreen/parade_pt.yaml b/bindings/input/touchscreen/parade_pt.yaml new file mode 100644 index 00000000..e582ecad --- /dev/null +++ b/bindings/input/touchscreen/parade_pt.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/parade_pt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Parade pt touch controller + +description: The Parade Touch controller is connected to the + host processor via I2C. The controller generates interrupts + when the user touches the panel. The host controller is + expected to read the touch coordinates over I2C and pass + the coordinates to the rest of the system. + +maintainers: + - Akshay Gola + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - parade,pt_i2c_adapter + + reg: + description: i2c slave address of the device. + + vdd-supply: + description: digital voltage power supply needed to power device. + + vcc_i2c-supply: + description: i2c voltage power supply needed to power device. + + parade,reset-gpio: + description: reset gpio + + parade,irq-gpio: + description: irq gpio + +unevaluatedProperties: false + +required: + - compatible + - reg + - vdd-supply + - vcc_i2c-supply + - parade,reset-gpio + - parade,irq-gpio + +examples: + - | + &i2c_1 { + status = "ok"; + + tsc@24 { + compatible = "parade,pt_i2c_adapter"; + reg = <0x24>; + status = "ok"; + + vdd-supply = <&L29A>; + vcc_i2c-supply = <&L21A>; + + parade,core { + parade,rst_gpio = <&tlmm 71 0x00>; + parade,irq_gpio = <&tlmm 80 0x2008>; + }; + }; + }; diff --git a/qcom/monaco.dtsi b/qcom/monaco.dtsi index b1777b35..e99ea4d5 100644 --- a/qcom/monaco.dtsi +++ b/qcom/monaco.dtsi @@ -2157,7 +2157,7 @@ status = "ok"; tsc@24 { - /* compatible = "parade,pt_i2c_adapter"; */ + compatible = "parade,pt_i2c_adapter"; reg = <0x24>; status = "ok"; interrupt-parent = <&tlmm>;