1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/input/touch 4 $id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: FocalTech EDT-FT5x06 Polytouch !! 7 title: FocalTech EDT-FT5x06 Polytouch Bindings 8 8 9 description: | 9 description: | 10 There are 5 variants of the chip 10 There are 5 variants of the chip for various touch panel sizes 11 FT5206GE1 2.8" .. 3.8" 11 FT5206GE1 2.8" .. 3.8" 12 FT5306DE4 4.3" .. 7" 12 FT5306DE4 4.3" .. 7" 13 FT5406EE8 7" .. 8.9" 13 FT5406EE8 7" .. 8.9" 14 FT5506EEG 7" .. 8.9" 14 FT5506EEG 7" .. 8.9" 15 FT5726NEI 5.7” .. 11.6" 15 FT5726NEI 5.7” .. 11.6" 16 16 17 maintainers: 17 maintainers: 18 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 18 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 19 19 20 allOf: 20 allOf: 21 - $ref: touchscreen.yaml# 21 - $ref: touchscreen.yaml# 22 - if: 22 - if: 23 properties: !! 23 properties: 24 compatible: !! 24 compatible: 25 contains: !! 25 contains: 26 enum: !! 26 enum: 27 - evervision,ev-ft5726 !! 27 - evervision,ev-ft5726 28 28 29 then: 29 then: 30 properties: 30 properties: 31 offset-x: true 31 offset-x: true 32 offset-y: true 32 offset-y: true 33 33 34 properties: 34 properties: 35 compatible: 35 compatible: 36 enum: 36 enum: 37 - edt,edt-ft5206 37 - edt,edt-ft5206 38 - edt,edt-ft5306 38 - edt,edt-ft5306 39 - edt,edt-ft5406 39 - edt,edt-ft5406 40 - edt,edt-ft5506 40 - edt,edt-ft5506 41 - evervision,ev-ft5726 41 - evervision,ev-ft5726 42 - focaltech,ft5426 << 43 - focaltech,ft5452 << 44 - focaltech,ft6236 42 - focaltech,ft6236 45 - focaltech,ft8201 << 46 - focaltech,ft8719 << 47 43 48 reg: 44 reg: 49 maxItems: 1 !! 45 const: 0x38 50 46 51 interrupts: 47 interrupts: 52 maxItems: 1 48 maxItems: 1 53 49 54 reset-gpios: 50 reset-gpios: 55 maxItems: 1 51 maxItems: 1 56 52 57 wake-gpios: 53 wake-gpios: 58 maxItems: 1 54 maxItems: 1 59 55 60 wakeup-source: true 56 wakeup-source: true 61 57 62 vcc-supply: true !! 58 vcc-supply: 63 iovcc-supply: true !! 59 maxItems: 1 64 60 65 gain: 61 gain: 66 description: Allows setting the sensitivit 62 description: Allows setting the sensitivity in the range from 0 to 31. 67 Note that lower values indica 63 Note that lower values indicate higher sensitivity. 68 $ref: /schemas/types.yaml#/definitions/uin !! 64 allOf: 69 minimum: 0 !! 65 - $ref: /schemas/types.yaml#/definitions/uint32 70 maximum: 31 !! 66 - minimum: 0 >> 67 - maximum: 31 71 68 72 offset: 69 offset: 73 description: Allows setting the edge compe 70 description: Allows setting the edge compensation in the range from 0 to 31. 74 $ref: /schemas/types.yaml#/definitions/uin !! 71 allOf: 75 minimum: 0 !! 72 - $ref: /schemas/types.yaml#/definitions/uint32 76 maximum: 31 !! 73 - minimum: 0 >> 74 - maximum: 31 77 75 78 offset-x: 76 offset-x: 79 description: Same as offset, but applies o 77 description: Same as offset, but applies only to the horizontal position. 80 Range from 0 to 80, only supp 78 Range from 0 to 80, only supported by evervision,ev-ft5726 devices. 81 $ref: /schemas/types.yaml#/definitions/uin !! 79 allOf: 82 minimum: 0 !! 80 - $ref: /schemas/types.yaml#/definitions/uint32 83 maximum: 80 !! 81 - minimum: 0 >> 82 - maximum: 80 84 83 85 offset-y: 84 offset-y: 86 description: Same as offset, but applies o 85 description: Same as offset, but applies only to the vertical position. 87 Range from 0 to 80, only supp 86 Range from 0 to 80, only supported by evervision,ev-ft5726 devices. 88 $ref: /schemas/types.yaml#/definitions/uin !! 87 allOf: 89 minimum: 0 !! 88 - $ref: /schemas/types.yaml#/definitions/uint32 90 maximum: 80 !! 89 - minimum: 0 91 !! 90 - maximum: 80 92 report-rate-hz: << 93 description: | << 94 Allows setting the scan rate << 95 M06 supports range from 30 t << 96 M12 supports range from 1 to << 97 minimum: 1 << 98 maximum: 255 << 99 << 100 threshold: << 101 description: Allows setting the "click"-t << 102 $ref: /schemas/types.yaml#/definitions/uin << 103 minimum: 0 << 104 maximum: 255 << 105 91 106 touchscreen-size-x: true 92 touchscreen-size-x: true 107 touchscreen-size-y: true 93 touchscreen-size-y: true 108 touchscreen-fuzz-x: true 94 touchscreen-fuzz-x: true 109 touchscreen-fuzz-y: true 95 touchscreen-fuzz-y: true 110 touchscreen-inverted-x: true 96 touchscreen-inverted-x: true 111 touchscreen-inverted-y: true 97 touchscreen-inverted-y: true 112 touchscreen-swapped-x-y: true 98 touchscreen-swapped-x-y: true 113 interrupt-controller: true 99 interrupt-controller: true 114 100 115 additionalProperties: false 101 additionalProperties: false 116 102 117 required: 103 required: 118 - compatible 104 - compatible 119 - reg 105 - reg 120 - interrupts 106 - interrupts 121 107 122 examples: 108 examples: 123 - | 109 - | 124 #include <dt-bindings/gpio/gpio.h> 110 #include <dt-bindings/gpio/gpio.h> 125 #include <dt-bindings/interrupt-controller 111 #include <dt-bindings/interrupt-controller/arm-gic.h> 126 i2c { 112 i2c { 127 #address-cells = <1>; 113 #address-cells = <1>; 128 #size-cells = <0>; 114 #size-cells = <0>; 129 touchscreen@38 { !! 115 edt-ft5x06@38 { 130 compatible = "edt,edt-ft5406"; 116 compatible = "edt,edt-ft5406"; 131 reg = <0x38>; 117 reg = <0x38>; 132 interrupt-parent = <&gpio2>; 118 interrupt-parent = <&gpio2>; 133 interrupts = <5 IRQ_TYPE_EDGE_FALLING> 119 interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 134 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LO 120 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; 135 wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIG 121 wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; 136 }; 122 }; 137 }; 123 }; 138 124 139 ... 125 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.