Input: add fts2ba61y touchscreen driver
Subsystems (3)
cover Input: add fts2ba61y touchscreen driver
This patchset adds support for the ST-Microelectronics FTS2BA61Y, a capacitive multi-touch touchscreen controller. this touchscreen is used in many mobile devices, like ones from the Galaxy S22 series and the Z Fold 5. Ivaylo Ivanov wrote the driver originally, and I'm upstreaming it on his behalf.
Thanks!
Eric Gonçalves (2):
dt-bindings: input: add ST-Microelectronics FTS2BA61Y touchscreen
binding
Input: add support for the STM FTS2BA61Y touchscreen
.../input/touchscreen/st,fts2ba61y.yaml | 52 ++ drivers/input/touchscreen/Kconfig | 11 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/fts2ba61y.c | 588 ++++++++++++++++++ 4 files changed, 652 insertions(+) create mode 100755 Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml create mode 100644 drivers/input/touchscreen/fts2ba61y.c
Signature · 1 line
2.50.1
RFC PATCH 1/2 dt-bindings: input: add ST-Microelectronics FTS2BA61Y touchscreen binding
Add the bindings for ST-Microelectronics FTS2BA61Y capacitive touchscreen.
--- .../input/touchscreen/st,fts2ba61y.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml
Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml new file +52 -0
@@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/st,fts2ba61y.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST-Microelectronics FTS2BA61Y touchscreen controller + +maintainers: + - Ivaylo Ivanov <[email protected]> + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: st,fts2ba61y + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + avdd-supply: true + vdd-supply: true + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - avdd-supply + - vdd-supply + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + spi { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@0 { + compatible = "st,fts2ba61y"; + reg = <0x0>; + interrupt-parent = <&gpa2>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + avdd-supply = <&ldo17_reg>; + vdd-supply = <&ldo28_reg>; + }; + };
Signature · 1 line
2.50.1
Re: [RFC PATCH 1/2] dt-bindings: input: add ST-Microelectronics FTS2BA61Y touchscreen binding
Quoted 1 line · Eric Gonçalves
Add the bindings for ST-Microelectronics FTS2BA61Y capacitive touchscreen.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
Quoted 10 lines
Signed-off-by Eric Gonçalves <[email protected]>Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml new file +5
-0+ +properties: + compatible: + const: st,fts2ba61y +
Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml new file +10
-0+ reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + avdd-supply: true + vdd-supply: true + +unevaluatedProperties: false
This goes after required: field.
Other than that - why isn't this finished (non RFC)? Code looks ok, but I also did not look that thorough.
Best regards,
Krzysztof
Re: [RFC PATCH 1/2] dt-bindings: input: add ST-Microelectronics FTS2BA61Y touchscreen binding
Quoted 6 lines · Krzysztof Kozlowski
Quoted 1 line · Eric Gonçalves
Add the bindings for ST-Microelectronics FTS2BA61Y capacitive touchscreen.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
The commit description is 74 characters
long, and the name is 73?
Quoted 5 lines
A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
Thanks, will do!
Quoted 28 lines
Quoted 10 lines
Signed-off-by Eric Gonçalves <[email protected]>Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml new file +5
-0+ +properties: + compatible: + const: st,fts2ba61y +Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/st,fts2ba61y.yaml new file +10
-0+ reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + avdd-supply: true + vdd-supply: true + +unevaluatedProperties: falseThis goes after required: field.
Other than that - why isn't this finished (non RFC)? Code looks ok, but I also did not look that thorough.
Best regards,
Krzysztof
Re: [RFC PATCH 1/2] dt-bindings: input: add ST-Microelectronics FTS2BA61Y touchscreen binding
Quoted 11 lines · Eric Gonçalves
Quoted 6 lines · Krzysztof Kozlowski
Quoted 1 line · Eric Gonçalves
Add the bindings for ST-Microelectronics FTS2BA61Y capacitive touchscreen.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597The commit description is 74 characters
long, and the name is 73?
Ah, sorry, misjudged.
Best regards,
Krzysztof
RFC PATCH 2/2 Input: add support for the STM FTS2BA61Y touchscreen
In reply to Eric GonçalvesThe ST-Microelectronics FTS2BA61Y touchscreen is a capacitive multi-touch controller connected through SPI at 0x0, the touchscreen is typically used in mobile devices (like the Galaxy S22 series)
---
Ivaylo Ivanov originally wrote the FTS2BA61Y driver, I am upstreaming it on his behalf.
--- drivers/input/touchscreen/Kconfig | 11 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/fts2ba61y.c | 588 ++++++++++++++++++++++++++ 3 files changed, 600 insertions(+) create mode 100644 drivers/input/touchscreen/fts2ba61y.c
drivers/input/touchscreen/Kconfig +11 -0
@@ -370,6 +370,17 @@ config TOUCHSCREEN_EXC3000 To compile this driver as a module, choose M here: the module will be called exc3000. +config TOUCHSCREEN_FTS2BA61Y + tristate "ST-Microelectronics FTS2BA61Y touchscreen" + depends on SPI + help + Say Y here if you have the ST-Microelectronics FTS2BA61Y touchscreen + + If unsure, say N. + + To compile this driver as a module, choose M here: the + module will be called fts2ba61y. + config TOUCHSCREEN_FUJITSU tristate "Fujitsu serial touchscreen" select SERIO
drivers/input/touchscreen/Makefile +1 -0
@@ -43,6 +43,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_FTS2BA61Y) += fts2ba61y.o obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix_ts.o obj-$(CONFIG_TOUCHSCREEN_GOODIX_BERLIN_CORE) += goodix_berlin_core.o
drivers/input/touchscreen/fts2ba61y.c new file +588 -0
588 lines not on this page · raw message
Signature · 1 line
2.50.1
Quoted 6 lines · Eric Gonçalves
This patchset adds support for the ST-Microelectronics FTS2BA61Y, a capacitive multi-touch touchscreen controller. this touchscreen is used in many mobile devices, like ones from the Galaxy S22 series and the Z Fold 5. Ivaylo Ivanov wrote the driver originally, and I'm upstreaming it on his behalf.
RFC means patchset is not ready, so please always mention why it is not ready or what you expect here.
Best regards,
Krzysztof
Quoted 9 lines · Krzysztof Kozlowski
Quoted 6 lines · Eric Gonçalves
This patchset adds support for the ST-Microelectronics FTS2BA61Y, a capacitive multi-touch touchscreen controller. this touchscreen is used in many mobile devices, like ones from the Galaxy S22 series and the Z Fold 5. Ivaylo Ivanov wrote the driver originally, and I'm upstreaming it on his behalf.
RFC means patchset is not ready, so please always mention why it is not ready or what you expect here.
I'm not sure if naming the compatible as it is currently is correct. The specific thing about this IC seems to be that it's flashed with samsung-made firmware, so I need to confirm that:
- we don't want to match compatible with the IC name (the same IC may be shipped with different fw on other devices)
- maintainers wouldn't want us to merge it with some other driver
Best regards,
Ivaylo
Quoted 3 lines
Best regards,
Krzysztof