xref: /linux/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml (revision 685b37704ce68924fa823d1cc37e512555526e06)
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
4210ad4845SBenjamin Gaignard      - focaltech,ft6236
4310ad4845SBenjamin Gaignard
4410ad4845SBenjamin Gaignard  reg:
4573b1e217SJohan Jonker    maxItems: 1
4610ad4845SBenjamin Gaignard
4710ad4845SBenjamin Gaignard  interrupts:
4810ad4845SBenjamin Gaignard    maxItems: 1
4910ad4845SBenjamin Gaignard
5010ad4845SBenjamin Gaignard  reset-gpios:
5110ad4845SBenjamin Gaignard    maxItems: 1
5210ad4845SBenjamin Gaignard
5310ad4845SBenjamin Gaignard  wake-gpios:
5410ad4845SBenjamin Gaignard    maxItems: 1
5510ad4845SBenjamin Gaignard
5610ad4845SBenjamin Gaignard  wakeup-source: true
5710ad4845SBenjamin Gaignard
589bfaf9c7SRob Herring  vcc-supply: true
5977191c8dSStephan Gerhold  iovcc-supply: true
6010ad4845SBenjamin Gaignard
6110ad4845SBenjamin Gaignard  gain:
6210ad4845SBenjamin Gaignard    description: Allows setting the sensitivity in the range from 0 to 31.
6310ad4845SBenjamin Gaignard                 Note that lower values indicate higher sensitivity.
643d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
653d21a460SRob Herring    minimum: 0
663d21a460SRob Herring    maximum: 31
6710ad4845SBenjamin Gaignard
6810ad4845SBenjamin Gaignard  offset:
6910ad4845SBenjamin Gaignard    description: Allows setting the edge compensation in the range from 0 to 31.
703d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
713d21a460SRob Herring    minimum: 0
723d21a460SRob Herring    maximum: 31
7310ad4845SBenjamin Gaignard
7410ad4845SBenjamin Gaignard  offset-x:
7510ad4845SBenjamin Gaignard    description: Same as offset, but applies only to the horizontal position.
7610ad4845SBenjamin Gaignard                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
773d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
783d21a460SRob Herring    minimum: 0
793d21a460SRob Herring    maximum: 80
8010ad4845SBenjamin Gaignard
8110ad4845SBenjamin Gaignard  offset-y:
8210ad4845SBenjamin Gaignard    description: Same as offset, but applies only to the vertical position.
8310ad4845SBenjamin Gaignard                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
843d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
853d21a460SRob Herring    minimum: 0
863d21a460SRob Herring    maximum: 80
8710ad4845SBenjamin Gaignard
88625f8295SDario Binacchi  report-rate-hz:
89625f8295SDario Binacchi    description: |
90625f8295SDario Binacchi                 Allows setting the scan rate in Hertz.
91625f8295SDario Binacchi                  M06 supports range from 30 to 140 Hz.
92625f8295SDario Binacchi                  M12 supports range from 1 to 255 Hz.
93625f8295SDario Binacchi    minimum: 1
94625f8295SDario Binacchi    maximum: 255
95625f8295SDario Binacchi
96*685b3770SOleksij Rempel  threshold:
97*685b3770SOleksij Rempel    description: Allows setting the  "click"-threshold in the range from 0 to 255.
98*685b3770SOleksij Rempel    $ref: /schemas/types.yaml#/definitions/uint32
99*685b3770SOleksij Rempel    minimum: 0
100*685b3770SOleksij Rempel    maximum: 255
101*685b3770SOleksij Rempel
10210ad4845SBenjamin Gaignard  touchscreen-size-x: true
10310ad4845SBenjamin Gaignard  touchscreen-size-y: true
10410ad4845SBenjamin Gaignard  touchscreen-fuzz-x: true
10510ad4845SBenjamin Gaignard  touchscreen-fuzz-y: true
10610ad4845SBenjamin Gaignard  touchscreen-inverted-x: true
10710ad4845SBenjamin Gaignard  touchscreen-inverted-y: true
10810ad4845SBenjamin Gaignard  touchscreen-swapped-x-y: true
10910ad4845SBenjamin Gaignard  interrupt-controller: true
11010ad4845SBenjamin Gaignard
11110ad4845SBenjamin GaignardadditionalProperties: false
11210ad4845SBenjamin Gaignard
11310ad4845SBenjamin Gaignardrequired:
11410ad4845SBenjamin Gaignard  - compatible
11510ad4845SBenjamin Gaignard  - reg
11610ad4845SBenjamin Gaignard  - interrupts
11710ad4845SBenjamin Gaignard
11810ad4845SBenjamin Gaignardexamples:
11910ad4845SBenjamin Gaignard  - |
12010ad4845SBenjamin Gaignard    #include <dt-bindings/gpio/gpio.h>
12110ad4845SBenjamin Gaignard    #include <dt-bindings/interrupt-controller/arm-gic.h>
122c6be88adSFabio Estevam    i2c {
12310ad4845SBenjamin Gaignard      #address-cells = <1>;
12410ad4845SBenjamin Gaignard      #size-cells = <0>;
12510ad4845SBenjamin Gaignard      edt-ft5x06@38 {
12610ad4845SBenjamin Gaignard        compatible = "edt,edt-ft5406";
12710ad4845SBenjamin Gaignard        reg = <0x38>;
12810ad4845SBenjamin Gaignard        interrupt-parent = <&gpio2>;
12910ad4845SBenjamin Gaignard        interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
13010ad4845SBenjamin Gaignard        reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
13110ad4845SBenjamin Gaignard        wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
13210ad4845SBenjamin Gaignard      };
13310ad4845SBenjamin Gaignard    };
13410ad4845SBenjamin Gaignard
13510ad4845SBenjamin Gaignard...
136