treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / touchscreen / iqs5xx.txt
blobefa0820e2469fc5be17727f788de725d021e9cf8
1 Azoteq IQS550/572/525 Trackpad/Touchscreen Controller
3 Required properties:
5 - compatible                    : Must be equal to one of the following:
6                                   "azoteq,iqs550"
7                                   "azoteq,iqs572"
8                                   "azoteq,iqs525"
10 - reg                           : I2C slave address for the device.
12 - interrupts                    : GPIO to which the device's active-high RDY
13                                   output is connected (see [0]).
15 - reset-gpios                   : GPIO to which the device's active-low NRST
16                                   input is connected (see [1]).
18 Optional properties:
20 - touchscreen-min-x             : See [2].
22 - touchscreen-min-y             : See [2].
24 - touchscreen-size-x            : See [2]. If this property is omitted, the
25                                   maximum x-coordinate is specified by the
26                                   device's "X Resolution" register.
28 - touchscreen-size-y            : See [2]. If this property is omitted, the
29                                   maximum y-coordinate is specified by the
30                                   device's "Y Resolution" register.
32 - touchscreen-max-pressure      : See [2]. Pressure is expressed as the sum of
33                                   the deltas across all channels impacted by a
34                                   touch event. A channel's delta is calculated
35                                   as its count value minus a reference, where
36                                   the count value is inversely proportional to
37                                   the channel's capacitance.
39 - touchscreen-fuzz-x            : See [2].
41 - touchscreen-fuzz-y            : See [2].
43 - touchscreen-fuzz-pressure     : See [2].
45 - touchscreen-inverted-x        : See [2]. Inversion is applied relative to that
46                                   which may already be specified by the device's
47                                   FLIP_X and FLIP_Y register fields.
49 - touchscreen-inverted-y        : See [2]. Inversion is applied relative to that
50                                   which may already be specified by the device's
51                                   FLIP_X and FLIP_Y register fields.
53 - touchscreen-swapped-x-y       : See [2]. Swapping is applied relative to that
54                                   which may already be specified by the device's
55                                   SWITCH_XY_AXIS register field.
57 [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
58 [1]: Documentation/devicetree/bindings/gpio/gpio.txt
59 [2]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
61 Example:
63         &i2c1 {
64                 /* ... */
66                 touchscreen@74 {
67                         compatible = "azoteq,iqs550";
68                         reg = <0x74>;
69                         interrupt-parent = <&gpio>;
70                         interrupts = <17 4>;
71                         reset-gpios = <&gpio 27 1>;
73                         touchscreen-size-x = <640>;
74                         touchscreen-size-y = <480>;
76                         touchscreen-max-pressure = <16000>;
77                 };
79                 /* ... */
80         };