xref: /linux/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml (revision 2e23b7f3b7dbb5bffd570867eea164e88be47faf)
110ad4845SBenjamin Gaignard# SPDX-License-Identifier: GPL-2.0
210ad4845SBenjamin Gaignard%YAML 1.2
310ad4845SBenjamin Gaignard---
410ad4845SBenjamin Gaignard$id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml#
510ad4845SBenjamin Gaignard$schema: http://devicetree.org/meta-schemas/core.yaml#
610ad4845SBenjamin Gaignard
784e85359SKrzysztof Kozlowskititle: FocalTech EDT-FT5x06 Polytouch
810ad4845SBenjamin Gaignard
910ad4845SBenjamin Gaignarddescription: |
1010ad4845SBenjamin Gaignard             There are 5 variants of the chip for various touch panel sizes
1110ad4845SBenjamin Gaignard              FT5206GE1  2.8" .. 3.8"
1210ad4845SBenjamin Gaignard              FT5306DE4  4.3" .. 7"
1310ad4845SBenjamin Gaignard              FT5406EE8  7"   .. 8.9"
1410ad4845SBenjamin Gaignard              FT5506EEG  7"   .. 8.9"
1510ad4845SBenjamin Gaignard              FT5726NEI  5.7” .. 11.6"
1610ad4845SBenjamin Gaignard
1710ad4845SBenjamin Gaignardmaintainers:
1810ad4845SBenjamin Gaignard  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
1910ad4845SBenjamin Gaignard
2010ad4845SBenjamin GaignardallOf:
2110ad4845SBenjamin Gaignard  - $ref: touchscreen.yaml#
2210ad4845SBenjamin Gaignard  - if:
2310ad4845SBenjamin Gaignard      properties:
2410ad4845SBenjamin Gaignard        compatible:
2510ad4845SBenjamin Gaignard          contains:
2610ad4845SBenjamin Gaignard            enum:
2710ad4845SBenjamin Gaignard              - evervision,ev-ft5726
2810ad4845SBenjamin Gaignard
2910ad4845SBenjamin Gaignard    then:
3010ad4845SBenjamin Gaignard      properties:
3110ad4845SBenjamin Gaignard        offset-x: true
3210ad4845SBenjamin Gaignard        offset-y: true
3310ad4845SBenjamin Gaignard
3410ad4845SBenjamin Gaignardproperties:
3510ad4845SBenjamin Gaignard  compatible:
3610ad4845SBenjamin Gaignard    enum:
3710ad4845SBenjamin Gaignard      - edt,edt-ft5206
3810ad4845SBenjamin Gaignard      - edt,edt-ft5306
3910ad4845SBenjamin Gaignard      - edt,edt-ft5406
4010ad4845SBenjamin Gaignard      - edt,edt-ft5506
4110ad4845SBenjamin Gaignard      - evervision,ev-ft5726
42*2e23b7f3SAndreas Kemnade      - focaltech,ft5426
43fe962300SJoel Selvaraj      - focaltech,ft5452
4410ad4845SBenjamin Gaignard      - focaltech,ft6236
45fe962300SJoel Selvaraj      - focaltech,ft8719
4610ad4845SBenjamin Gaignard
4710ad4845SBenjamin Gaignard  reg:
4873b1e217SJohan Jonker    maxItems: 1
4910ad4845SBenjamin Gaignard
5010ad4845SBenjamin Gaignard  interrupts:
5110ad4845SBenjamin Gaignard    maxItems: 1
5210ad4845SBenjamin Gaignard
5310ad4845SBenjamin Gaignard  reset-gpios:
5410ad4845SBenjamin Gaignard    maxItems: 1
5510ad4845SBenjamin Gaignard
5610ad4845SBenjamin Gaignard  wake-gpios:
5710ad4845SBenjamin Gaignard    maxItems: 1
5810ad4845SBenjamin Gaignard
5910ad4845SBenjamin Gaignard  wakeup-source: true
6010ad4845SBenjamin Gaignard
619bfaf9c7SRob Herring  vcc-supply: true
6277191c8dSStephan Gerhold  iovcc-supply: true
6310ad4845SBenjamin Gaignard
6410ad4845SBenjamin Gaignard  gain:
6510ad4845SBenjamin Gaignard    description: Allows setting the sensitivity in the range from 0 to 31.
6610ad4845SBenjamin Gaignard                 Note that lower values indicate higher sensitivity.
673d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
683d21a460SRob Herring    minimum: 0
693d21a460SRob Herring    maximum: 31
7010ad4845SBenjamin Gaignard
7110ad4845SBenjamin Gaignard  offset:
7210ad4845SBenjamin Gaignard    description: Allows setting the edge compensation in the range from 0 to 31.
733d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
743d21a460SRob Herring    minimum: 0
753d21a460SRob Herring    maximum: 31
7610ad4845SBenjamin Gaignard
7710ad4845SBenjamin Gaignard  offset-x:
7810ad4845SBenjamin Gaignard    description: Same as offset, but applies only to the horizontal position.
7910ad4845SBenjamin Gaignard                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
803d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
813d21a460SRob Herring    minimum: 0
823d21a460SRob Herring    maximum: 80
8310ad4845SBenjamin Gaignard
8410ad4845SBenjamin Gaignard  offset-y:
8510ad4845SBenjamin Gaignard    description: Same as offset, but applies only to the vertical position.
8610ad4845SBenjamin Gaignard                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
873d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
883d21a460SRob Herring    minimum: 0
893d21a460SRob Herring    maximum: 80
9010ad4845SBenjamin Gaignard
91625f8295SDario Binacchi  report-rate-hz:
92625f8295SDario Binacchi    description: |
93625f8295SDario Binacchi                 Allows setting the scan rate in Hertz.
94625f8295SDario Binacchi                  M06 supports range from 30 to 140 Hz.
95625f8295SDario Binacchi                  M12 supports range from 1 to 255 Hz.
96625f8295SDario Binacchi    minimum: 1
97625f8295SDario Binacchi    maximum: 255
98625f8295SDario Binacchi
99685b3770SOleksij Rempel  threshold:
100685b3770SOleksij Rempel    description: Allows setting the  "click"-threshold in the range from 0 to 255.
101685b3770SOleksij Rempel    $ref: /schemas/types.yaml#/definitions/uint32
102685b3770SOleksij Rempel    minimum: 0
103685b3770SOleksij Rempel    maximum: 255
104685b3770SOleksij Rempel
10510ad4845SBenjamin Gaignard  touchscreen-size-x: true
10610ad4845SBenjamin Gaignard  touchscreen-size-y: true
10710ad4845SBenjamin Gaignard  touchscreen-fuzz-x: true
10810ad4845SBenjamin Gaignard  touchscreen-fuzz-y: true
10910ad4845SBenjamin Gaignard  touchscreen-inverted-x: true
11010ad4845SBenjamin Gaignard  touchscreen-inverted-y: true
11110ad4845SBenjamin Gaignard  touchscreen-swapped-x-y: true
11210ad4845SBenjamin Gaignard  interrupt-controller: true
11310ad4845SBenjamin Gaignard
11410ad4845SBenjamin GaignardadditionalProperties: false
11510ad4845SBenjamin Gaignard
11610ad4845SBenjamin Gaignardrequired:
11710ad4845SBenjamin Gaignard  - compatible
11810ad4845SBenjamin Gaignard  - reg
11910ad4845SBenjamin Gaignard  - interrupts
12010ad4845SBenjamin Gaignard
12110ad4845SBenjamin Gaignardexamples:
12210ad4845SBenjamin Gaignard  - |
12310ad4845SBenjamin Gaignard    #include <dt-bindings/gpio/gpio.h>
12410ad4845SBenjamin Gaignard    #include <dt-bindings/interrupt-controller/arm-gic.h>
125c6be88adSFabio Estevam    i2c {
12610ad4845SBenjamin Gaignard      #address-cells = <1>;
12710ad4845SBenjamin Gaignard      #size-cells = <0>;
12810ad4845SBenjamin Gaignard      edt-ft5x06@38 {
12910ad4845SBenjamin Gaignard        compatible = "edt,edt-ft5406";
13010ad4845SBenjamin Gaignard        reg = <0x38>;
13110ad4845SBenjamin Gaignard        interrupt-parent = <&gpio2>;
13210ad4845SBenjamin Gaignard        interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
13310ad4845SBenjamin Gaignard        reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
13410ad4845SBenjamin Gaignard        wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
13510ad4845SBenjamin Gaignard      };
13610ad4845SBenjamin Gaignard    };
13710ad4845SBenjamin Gaignard
13810ad4845SBenjamin Gaignard...
139