Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/focaltech,ft3658.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: FocalTech FT3658 SPI touch controller

maintainers:
- Alejandro Garcia <skipper.pelygro@gmail.com>

description:
FocalTech FT3658 capacitive touch controller on SPI, as in the Google
Pixel 7. The controller runs its firmware from its own flash and reports
up to ten touches. The I2C FocalTech controllers are covered by
edt-ft5x06.yaml and are different devices.

allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- $ref: touchscreen.yaml#

properties:
compatible:
const: focaltech,ft3658

reg:
maxItems: 1

interrupts:
maxItems: 1

vdd-supply:
description: Digital supply (1.8 V)

avdd-supply:
description: Analog supply

reset-gpios:
description: Active-low reset
maxItems: 1

spi-max-frequency: true

required:
- compatible
- reg
- interrupts
- vdd-supply
- avdd-supply
- reset-gpios
- touchscreen-size-x
- touchscreen-size-y

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

spi {
#address-cells = <1>;
#size-cells = <0>;

touchscreen@0 {
compatible = "focaltech,ft3658";
reg = <0>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpa7>;
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&ldo25m>;
avdd-supply = <&ldo26m>;
reset-gpios = <&gpp23 2 GPIO_ACTIVE_LOW>;
touchscreen-size-x = <1080>;
touchscreen-size-y = <2400>;
};
};
14 changes: 14 additions & 0 deletions drivers/input/touchscreen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,20 @@ config TOUCHSCREEN_SURFACE3_SPI
To compile this driver as a module, choose M here: the
module will be called surface3_spi.

config TOUCHSCREEN_FOCALTECH_FT3658
tristate "FocalTech FT3658 SPI touchscreen"
depends on SPI
depends on GPIOLIB || COMPILE_TEST
select CRC_CCITT
help
Say Y here if you have a FocalTech FT3658 touchscreen controller
on SPI, such as the one in the Google Pixel 7.

If unsure, say N.

To compile this driver as a module, choose M here: the
module will be called focaltech_ft3658.

config TOUCHSCREEN_SYNAPTICS_TCM_SPI
tristate "Synaptics TouchComm SPI touchscreen"
depends on SPI
Expand Down
1 change: 1 addition & 0 deletions drivers/input/touchscreen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ obj-$(CONFIG_TOUCHSCREEN_STMPE) += stmpe-ts.o
obj-$(CONFIG_TOUCHSCREEN_SUN4I) += sun4i-ts.o
obj-$(CONFIG_TOUCHSCREEN_SUR40) += sur40.o
obj-$(CONFIG_TOUCHSCREEN_SURFACE3_SPI) += surface3_spi.o
obj-$(CONFIG_TOUCHSCREEN_FOCALTECH_FT3658) += focaltech_ft3658.o
obj-$(CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_SPI) += synaptics_tcm.o
obj-$(CONFIG_TOUCHSCREEN_TI_AM335X_TSC) += ti_am335x_tsc.o
obj-$(CONFIG_TOUCHSCREEN_TOUCHIT213) += touchit213.o
Expand Down
Loading