The FT8722 is a touch and display driver (TDDI) whose touch controller is connected over SPI and runs its firmware from RAM. Document its compatible, allow the SPI peripheral properties and add a firmware-name property for the firmware to download at power up.
The "-ts" suffix keeps the compatible distinct from the one of the display side of the same chip, which is a separate DSI device. The reset GPIO is required, as the firmware can only be downloaded while the boot ROM is running right after a reset. Signed-off-by: Luka Panio <[email protected]> --- .../input/touchscreen/edt-ft5x06.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml index 68b2f1601654..51d22ff42675 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml @@ -19,6 +19,7 @@ maintainers: allOf: - $ref: touchscreen.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# - if: properties: compatible: @@ -30,6 +31,17 @@ allOf: properties: offset-x: true offset-y: true + - if: + properties: + compatible: + contains: + const: focaltech,ft8722-ts + then: + required: + - reset-gpios + else: + properties: + firmware-name: false properties: compatible: @@ -47,6 +59,7 @@ properties: - focaltech,ft8201 - focaltech,ft8716 - focaltech,ft8719 + - focaltech,ft8722-ts - items: - const: focaltech,ft3519 - const: focaltech,ft3518 @@ -60,6 +73,12 @@ properties: reset-gpios: maxItems: 1 + firmware-name: + maxItems: 1 + description: + Firmware to download at power up, for controllers that run their + firmware from RAM, such as the FT8722. + wake-gpios: maxItems: 1 @@ -134,5 +153,23 @@ examples: wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; }; }; + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/irq.h> + spi { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@0 { + compatible = "focaltech,ft8722-ts"; + reg = <0>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <81 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 105 GPIO_ACTIVE_LOW>; + firmware-name = "qcom/qcm6490/nexphone/ft8722.bin"; + touchscreen-size-x = <1080>; + touchscreen-size-y = <2408>; + }; + }; ... -- 2.55.0
