brintos

brintos / linux-shallow public Read only

0
0
Text · 3.3 KiB · 70a922e Raw
140 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: FocalTech EDT-FT5x06 Polytouch8 9description: |10             There are 5 variants of the chip for various touch panel sizes11              FT5206GE1  2.8" .. 3.8"12              FT5306DE4  4.3" .. 7"13              FT5406EE8  7"   .. 8.9"14              FT5506EEG  7"   .. 8.9"15              FT5726NEI  5.7” .. 11.6"16 17maintainers:18  - Dmitry Torokhov <dmitry.torokhov@gmail.com>19 20allOf:21  - $ref: touchscreen.yaml#22  - if:23      properties:24        compatible:25          contains:26            enum:27              - evervision,ev-ft572628 29    then:30      properties:31        offset-x: true32        offset-y: true33 34properties:35  compatible:36    enum:37      - edt,edt-ft520638      - edt,edt-ft530639      - edt,edt-ft540640      - edt,edt-ft550641      - evervision,ev-ft572642      - focaltech,ft542643      - focaltech,ft545244      - focaltech,ft623645      - focaltech,ft820146      - focaltech,ft871947 48  reg:49    maxItems: 150 51  interrupts:52    maxItems: 153 54  reset-gpios:55    maxItems: 156 57  wake-gpios:58    maxItems: 159 60  wakeup-source: true61 62  vcc-supply: true63  iovcc-supply: true64 65  gain:66    description: Allows setting the sensitivity in the range from 0 to 31.67                 Note that lower values indicate higher sensitivity.68    $ref: /schemas/types.yaml#/definitions/uint3269    minimum: 070    maximum: 3171 72  offset:73    description: Allows setting the edge compensation in the range from 0 to 31.74    $ref: /schemas/types.yaml#/definitions/uint3275    minimum: 076    maximum: 3177 78  offset-x:79    description: Same as offset, but applies only to the horizontal position.80                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.81    $ref: /schemas/types.yaml#/definitions/uint3282    minimum: 083    maximum: 8084 85  offset-y:86    description: Same as offset, but applies only to the vertical position.87                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.88    $ref: /schemas/types.yaml#/definitions/uint3289    minimum: 090    maximum: 8091 92  report-rate-hz:93    description: |94                 Allows setting the scan rate in Hertz.95                  M06 supports range from 30 to 140 Hz.96                  M12 supports range from 1 to 255 Hz.97    minimum: 198    maximum: 25599 100  threshold:101    description: Allows setting the  "click"-threshold in the range from 0 to 255.102    $ref: /schemas/types.yaml#/definitions/uint32103    minimum: 0104    maximum: 255105 106  touchscreen-size-x: true107  touchscreen-size-y: true108  touchscreen-fuzz-x: true109  touchscreen-fuzz-y: true110  touchscreen-inverted-x: true111  touchscreen-inverted-y: true112  touchscreen-swapped-x-y: true113  interrupt-controller: true114 115additionalProperties: false116 117required:118  - compatible119  - reg120  - interrupts121 122examples:123  - |124    #include <dt-bindings/gpio/gpio.h>125    #include <dt-bindings/interrupt-controller/arm-gic.h>126    i2c {127      #address-cells = <1>;128      #size-cells = <0>;129      touchscreen@38 {130        compatible = "edt,edt-ft5406";131        reg = <0x38>;132        interrupt-parent = <&gpio2>;133        interrupts = <5 IRQ_TYPE_EDGE_FALLING>;134        reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;135        wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;136      };137    };138 139...140