Add support for Focaltech FTS Touchscreen
Subsystems (5)
v2 cover Add support for Focaltech FTS Touchscreen
Changes in v2:
--------------
1. dt-bindings changes (Suggested by Krzysztof Kozlowski)
- changed file name from focaltech,fts.yaml to focaltech,fts5452.yaml
- removed focaltech,max-touch-number property, handled in driver now
- removed touchscreen-* properties and used unevaluatedProperties: false instead of additionalProperties: false
- fixed the example dts node name to be generic
2. FTS Touchscreen driver changes (Suggested by Markuss Broks and Jeff LaBundy)
- removed repeated license terms since SPDX tag is used
- includes are now sorted
- added the missing input_mt_sync_frame when reporting touch
- focaltech,max-touch-number is no longer read from dts and instead specified in the driver as compatible data.
- removed redundant __set_bits
- input_mt_init_slots is now called after the axes are defined
- irq handler now returns IRQ_NONE when there is an i2c error
- other minor fixes and refactoring as suggested
- renamed driver filename from focaltech_fts.c to focaltech_fts5452.c (Suggested by Krzysztof Kozlowski)
3. dts changes (Suggested by Krzysztof Kozlowski)
- use generic touchscreen nodes
- removed focaltech,max-touch-number property
- irq type was specified wrongly for Poco F1 in v1. Changed the irq type to IRQ_TYPE_EDGE_FALLING as that is correct.
Some Clarifications:
--------------------
1. Jeff LaBundy suggested I could read chip id with the following:
__be16 val;
regmap_raw_read(data->regmap, FTS_REG_CHIP_ID_H, &val, sizeof(val));
But this is not possible because FTS_REG_CHIP_ID_H and FTS_REG_CHIP_ID_L
are not continous register, therefore reading it together as 16-bit values
will not work. So I went with what Markuss Broks suggested:
regmap_read(data->regmap, FTS_REG_CHIP_ID_L, &id);
regmap_read(data->regmap, FTS_REG_CHIP_ID_H, &val);
id |= val << 8;2. As Markuss Broks suggested, I tried to cast the buffer to struct, but unfortunately was not able to successfully do it. The buffer layout is weirdly split into 4 bits and 12 bits at someplaces which makes it hard to cast into a struct. For example, we can note
type = buf[base + 3] >> 6 x = ((buf[base + 3] & 0x0F) << 8) + (buf[base + 4] & 0xFF);
Here at buffer index 3, the first two bits (>>6) are used for denoting event type. The next two bits are not used. But the last 4 bits (&0x0F) of buffer[3] are added with buffer index 4 to get the x position. I don't know how to handle these when casting to a struct. I tried experimenting with bitfields in struct, but to no avail. So I am sticking with my initial implementation for now.
Kindly let me know if any further improvements are needed. Thanks.
The Focaltech FTS driver supports several variants of focaltech touchscreens found in ~2018 era smartphones including variants found on the PocoPhone F1 and the SHIFT6mq which are already present in mainline. This driver is loosely based on the original driver from Focaltech and the patches submitted by Caleb Connolly previously[1] but has been simplified and largely reworked.
[1] https://patchwork.kernel.org/project/linux-input/patch/[email protected]/
Joel Selvaraj (5):
dt-bindings: input: touchscreen: add bindings for focaltech,fts5452
Input: add driver for Focaltech FTS touchscreen
arm64: dts: qcom: sdm845-xiaomi-beryllium-common: add touchscreen
related nodes
arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce support for
fts touchscreen
arm64: dts: qcom: sdm845-shift-axolotl: update focaltech touchscreen
properties
.../input/touchscreen/focaltech,fts5452.yaml | 71 +++ MAINTAINERS | 8 + .../boot/dts/qcom/sdm845-shift-axolotl.dts | 15 +- .../qcom/sdm845-xiaomi-beryllium-common.dtsi | 39 ++ .../dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 26 ++ drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/focaltech_fts5452.c | 432 ++++++++++++++++++ 8 files changed, 596 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml create mode 100644 drivers/input/touchscreen/focaltech_fts5452.c
Signature · 1 line
2.40.0
PATCH v2 1/5 dt-bindings: input: touchscreen: add bindings for focaltech,fts5452
Add devicetree bindings for the Focaltech FTS touchscreen drivers.
--- .../input/touchscreen/focaltech,fts5452.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml
Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml new file +71 -0
@@ -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 <[email protected]> + - Caleb Connolly <[email protected]> + +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). + +unevaluatedProperties: false + +required: + - compatible + - reg + - touchscreen-size-x + - touchscreen-size-y + +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>; + + interrupt-parent = <&tlmm>; + interrupts = <125 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; + + avdd-supply = <&vreg_l28a_3p0>; + vddio-supply = <&vreg_l14a_1p88>; + + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&ts_int_active &ts_reset_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2160>; + }; + };
Signature · 1 line
2.40.0
PATCH v2 3/5 arm64: dts: qcom: sdm845-xiaomi-beryllium-common: add touchscreen related nodes
In reply to Joel SelvarajEnable qupv3_id_1 and gpi_dma1 as they are required for configuring touchscreen. Also add pinctrl configurations needed for touchscreen. These are common for both the tianma and ebbg touchscreen variant. In the subsequent patch, we will initially enable support for the focaltech touchscreen used in the EBBG variant. This is done in preparation for that.
--- .../qcom/sdm845-xiaomi-beryllium-common.dtsi | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +39 -0
@@ -268,6 +268,10 @@ &gmu { status = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &gpu { status = "okay";
@@ -376,6 +380,10 @@ &qupv3_id_0 { status = "okay"; }; +&qupv3_id_1 { + status = "okay"; +}; + &sdhc_2 { status = "okay";
@@ -481,6 +489,37 @@ sdc2_card_det_n: sd-card-det-n-state { function = "gpio"; bias-pull-up; }; + + ts_int_default: ts-int-default-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <16>; + bias-pull-down; + input-enable; + }; + + ts_reset_default: ts-reset-default-state { + pins = "gpio32"; + function = "gpio"; + drive-strength = <16>; + output-high; + }; + + ts_int_sleep: ts-int-sleep-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; + + ts_reset_sleep: ts-reset-sleep-state { + pins = "gpio32"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; }; &uart6 {
Signature · 1 line
2.40.0
PATCH v2 4/5 arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce support for fts touchscreen
In reply to Joel SelvarajThe Poco F1 EBBG variant uses Focaltech FTS8719 touchscreen. Introduce support for it.
--- .../dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +26 -0
@@ -13,3 +13,29 @@ &display_panel { compatible = "ebbg,ft8719"; status = "okay"; }; + +&i2c14 { + status = "okay"; + + dmas = <&gpi_dma1 0 6 QCOM_GPI_I2C>, + <&gpi_dma1 1 6 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; + + touchscreen@38 { + compatible = "focaltech,fts8719"; + reg = <0x38>; + + interrupt-parent = <&tlmm>; + interrupts = <31 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + + vddio-supply = <&vreg_l14a_1p8>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&ts_int_default &ts_reset_default>; + pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2246>; + }; +};
Signature · 1 line
2.40.0
PATCH v2 2/5 Input: add driver for Focaltech FTS touchscreen
In reply to Joel SelvarajThe Focaltech FTS driver supports several variants of focaltech touchscreens found in ~2018 era smartphones including variants found on the PocoPhone F1 and the SHIFT6mq which are already present in mainline. This driver is loosely based on the original driver from Focaltech but has been simplified and largely reworked.
--- MAINTAINERS | 8 + drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/focaltech_fts5452.c | 432 ++++++++++++++++++ 4 files changed, 453 insertions(+) create mode 100644 drivers/input/touchscreen/focaltech_fts5452.c
MAINTAINERS +8 -0
@@ -8028,6 +8028,14 @@ L: [email protected] S: Maintained F: drivers/input/joystick/fsia6b.c +FOCALTECH FTS5452 TOUCHSCREEN DRIVER +M: Joel Selvaraj <[email protected]> +M: Caleb Connolly <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml +F: drivers/input/touchscreen/focaltech_fts5452.c + FOCUSRITE SCARLETT GEN 2/3 MIXER DRIVER M: Geoffrey D. Bennett <[email protected]> L: [email protected] (moderated for non-subscribers)
drivers/input/touchscreen/Kconfig +12 -0
@@ -388,6 +388,18 @@ config TOUCHSCREEN_EXC3000 To compile this driver as a module, choose M here: the module will be called exc3000. +config TOUCHSCREEN_FOCALTECH_FTS5452 + tristate "Focaltech FTS Touchscreen" + depends on I2C + help + Say Y here to enable support for I2C connected Focaltech FTS + based touch panels, including the 5452 and 8917 panels. + + If unsure, say N. + + To compile this driver as a module, choose M here: the + module will be called focaltech_fts. + config TOUCHSCREEN_FUJITSU tristate "Fujitsu serial touchscreen" select SERIO
drivers/input/touchscreen/Makefile +1 -0
@@ -45,6 +45,7 @@ obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o obj-$(CONFIG_TOUCHSCREEN_EGALAX) += egalax_ts.o obj-$(CONFIG_TOUCHSCREEN_EGALAX_SERIAL) += egalax_ts_serial.o obj-$(CONFIG_TOUCHSCREEN_EXC3000) += exc3000.o +obj-$(CONFIG_TOUCHSCREEN_FOCALTECH_FTS5452) += focaltech_fts5452.o obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix_ts.o obj-$(CONFIG_TOUCHSCREEN_HIDEEP) += hideep.o
drivers/input/touchscreen/focaltech_fts5452.c new file +432 -0
432 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH v2 5/5 arm64: dts: qcom: sdm845-shift-axolotl: update focaltech touchscreen properties
In reply to Joel SelvarajThe touchscreen nodes were added before the driver patches were merged. Update the focaltech touchscreen properties to match with the upstreamed focaltech driver. Also, the touchscreen used is in axolotl is fts5452 and not fts8719.
--- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +7 -8
@@ -474,23 +474,22 @@ &i2c5 { status = "okay"; touchscreen@38 { - compatible = "focaltech,fts8719"; + compatible = "focaltech,fts5452"; reg = <0x38>; - wakeup-source; + interrupt-parent = <&tlmm>; - interrupts = <125 0x2>; - vdd-supply = <&vreg_l28a_3p0>; - vcc-i2c-supply = <&vreg_l14a_1p88>; + interrupts = <125 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; + + avdd-supply = <&vreg_l28a_3p0>; + vddio-supply = <&vreg_l14a_1p88>; pinctrl-names = "default", "suspend"; pinctrl-0 = <&ts_int_active &ts_reset_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - reset-gpio = <&tlmm 99 GPIO_ACTIVE_HIGH>; - irq-gpio = <&tlmm 125 GPIO_TRANSITORY>; touchscreen-size-x = <1080>; touchscreen-size-y = <2160>; - focaltech,max-touch-number = <5>; }; };
Signature · 1 line
2.40.0
Re: [PATCH v2 1/5] dt-bindings: input: touchscreen: add bindings for focaltech,fts5452
In reply to Joel SelvarajQuoted 2 lines · Joel Selvaraj
Add devicetree bindings for the Focaltech FTS touchscreen drivers.
Subject: drop second/last, redundant "bindings for". The "dt-bindings" prefix is already stating that these are bindings.
Quoted 46 lines
Signed-off-by Joel Selvaraj <[email protected]>Signed-off-by Caleb Connolly <[email protected]>--- .../input/touchscreen/focaltech,fts5452.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yamlDocumentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml new file +33
-0@@ -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 <[email protected]> + - Caleb Connolly <[email protected]> + +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). +
Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml line 43
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/focaltech,fts5452.yaml new file +10
-0+ vddio-supply: + description: regulator supplying IO power (1.8V). + +unevaluatedProperties: false + +required: + - compatible + - reg + - touchscreen-size-x + - touchscreen-size-y
We always put required: before unevaluatedProperties. Base your schema on example-schema.yaml.
Best regards,
Krzysztof
Re: [PATCH v2 3/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-common: add touchscreen related nodes
In reply to Joel SelvarajQuoted 38 lines · Joel Selvaraj
Enable
qupv3_id_1andgpi_dma1as they are required for configuring touchscreen. Also add pinctrl configurations needed for touchscreen. These are common for both the tianma and ebbg touchscreen variant. In the subsequent patch, we will initially enable support for the focaltech touchscreen used in the EBBG variant. This is done in preparation for that.Signed-off-by Joel Selvaraj <[email protected]>--- .../qcom/sdm845-xiaomi-beryllium-common.dtsi | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+)arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +8
-0@@ -268,6 +268,10 @@ &gmu { status = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &gpu { status = "okay";@@ -376,6 +380,10 @@ &qupv3_id_0 { status = "okay"; }; +&qupv3_id_1 { + status = "okay"; +}; + &sdhc_2 { status = "okay";
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi sdc2_card_det_n: sd-card-det-n-state { · line 498
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +7
-0@@ -481,6 +489,37 @@ sdc2_card_det_n: sd-card-det-n-state { function = "gpio"; bias-pull-up; }; + + ts_int_default: ts-int-default-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <16>; + bias-pull-down; + input-enable;
input-enable is not valid.
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +5
-0+ }; + + ts_reset_default: ts-reset-default-state { + pins = "gpio32"; + function = "gpio";
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi sdc2_card_det_n: sd-card-det-n-state { · line 513
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +10
-0+ drive-strength = <16>; + output-high; + }; + + ts_int_sleep: ts-int-sleep-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + input-enable;
input-enable is not valid.
Best regards,
Krzysztof
Re: [PATCH v2 4/5] arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce support for fts touchscreen
In reply to Joel SelvarajQuoted 13 lines · Joel Selvaraj
The Poco F1 EBBG variant uses Focaltech FTS8719 touchscreen. Introduce support for it.
Signed-off-by Joel Selvaraj <[email protected]>--- .../dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +0
-0
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts &display_panel { · line 22
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +7
-0@@ -13,3 +13,29 @@ &display_panel { compatible = "ebbg,ft8719"; status = "okay"; }; + +&i2c14 { + status = "okay"; + + dmas = <&gpi_dma1 0 6 QCOM_GPI_I2C>, + <&gpi_dma1 1 6 QCOM_GPI_I2C>; + dma-names = "tx", "rx";
That's totally in sdm845.dtsi already!
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts &display_panel { · line 29
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +7
-0+ + touchscreen@38 { + compatible = "focaltech,fts8719"; + reg = <0x38>; + + interrupt-parent = <&tlmm>; + interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
interrupts-extended
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts &display_panel { · line 36
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +7
-0+ reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + + vddio-supply = <&vreg_l14a_1p8>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&ts_int_default &ts_reset_default>; + pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>;
property
property-names
Konrad
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +5
-0+ + touchscreen-size-x = <1080>; + touchscreen-size-y = <2246>; + }; +};
Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-shift-axolotl: update focaltech touchscreen properties
In reply to Joel SelvarajQuoted 7 lines · Joel Selvaraj
The touchscreen nodes were added before the driver patches were merged. Update the focaltech touchscreen properties to match with the upstreamed focaltech driver. Also, the touchscreen used is in axolotl is fts5452 and not fts8719.
Signed-off-by Joel Selvaraj <[email protected]>---
same comments as 4/5
Konrad
Quoted 38 lines
arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +7
-8@@ -474,23 +474,22 @@ &i2c5 { status = "okay"; touchscreen@38 { - compatible = "focaltech,fts8719"; + compatible = "focaltech,fts5452"; reg = <0x38>; - wakeup-source; + interrupt-parent = <&tlmm>; - interrupts = <125 0x2>; - vdd-supply = <&vreg_l28a_3p0>; - vcc-i2c-supply = <&vreg_l14a_1p88>; + interrupts = <125 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; + + avdd-supply = <&vreg_l28a_3p0>; + vddio-supply = <&vreg_l14a_1p88>; pinctrl-names = "default", "suspend"; pinctrl-0 = <&ts_int_active &ts_reset_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - reset-gpio = <&tlmm 99 GPIO_ACTIVE_HIGH>; - irq-gpio = <&tlmm 125 GPIO_TRANSITORY>; touchscreen-size-x = <1080>; touchscreen-size-y = <2160>; - focaltech,max-touch-number = <5>; }; };
Re: [PATCH v2 1/5] dt-bindings: input: touchscreen: add bindings for focaltech,fts5452
In reply to Krzysztof KozlowskiHi Krzysztof Kozlowski,
Konrad Dybcio suggested to use interrupts-extended instead interrupts. So in my WIP v3, I have updated it in the dts and bindings example. However, I am confused if I should replace the "interrupts" with "interrupts-extended" property in the schema too? I see a lot of schemas specifying "interrupts", with examples using "interrupts" or "interrupts-extended". At the same time, I see some specifying both "interrupts" and "interrupts-extended" (like one of these two) and very few others specify only "interrupts-extended" in the schema. Which is the currently recommended way to do this?
In between, the interrupt property should be a required property as the driver will not function without an interrupt. I will fix that in v3.
Thanks,
Joel Selvaraj
Re: [PATCH v2 1/5] dt-bindings: input: touchscreen: add bindings for focaltech,fts5452
Quoted 3 lines · Joel Selvaraj
Hi Krzysztof Kozlowski,
Konrad Dybcio suggested to use interrupts-extended instead interrupts.
Sorry,
I have no idea what this email is about.
There is no context here, no reply, it just appeared alone in my inbox without any reference. Please respond inline to existing messages, keeping necessary context you are replying to.
Quoted 3 lines
So in my WIP v3, I have updated it in the dts and bindings example. However, I am confused if I should replace the "interrupts" with "interrupts-extended" property in the schema too? I see a lot of schemas
No.
Quoted 11 lines
specifying "interrupts", with examples using "interrupts" or "interrupts-extended". At the same time, I see some specifying both "interrupts" and "interrupts-extended" (like one of these two) and very few others specify only "interrupts-extended" in the schema. Which is the currently recommended way to do this?
In between, the interrupt property should be a required property as the driver will not function without an interrupt. I will fix that in v3.
Thanks,
Joel Selvaraj
Best regards,
Krzysztof