1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/touchscreen/adi,ad7879.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C)
10 - Frank Li <Frank.Li@nxp.com>
15 for SPI slave, use "adi,ad7879"
16 for I2C slave, use "adi,ad7879-1"
27 touchscreen-max-pressure:
28 $ref: /schemas/types.yaml#/definitions/uint32
29 description: maximum reported pressure
31 adi,resistance-plate-x:
32 $ref: /schemas/types.yaml#/definitions/uint32
33 description: total resistance of X-plate (for pressure calculation)
35 touchscreen-swapped-x-y:
36 $ref: /schemas/types.yaml#/definitions/flag
37 description: X and Y axis are swapped (boolean)
39 adi,first-conversion-delay:
40 $ref: /schemas/types.yaml#/definitions/uint8
45 0-12: In 128us steps (starting with 128us)
49 This property has to be a '/bits/ 8' value
52 $ref: /schemas/types.yaml#/definitions/uint8
60 This property has to be a '/bits/ 8' value
62 adi,median-filter-size:
63 $ref: /schemas/types.yaml#/definitions/uint8
71 This property has to be a '/bits/ 8' value
74 $ref: /schemas/types.yaml#/definitions/uint8
78 0: 2 middle values (1 if median disabled)
82 This property has to be a '/bits/ 8' value
84 adi,conversion-interval:
85 $ref: /schemas/types.yaml#/definitions/uint8
88 0 : convert one time only
89 1-255: 515us + val * 35us (up to 9.440ms)
90 This property has to be a '/bits/ 8' value
102 - $ref: /schemas/spi/spi-peripheral-props.yaml
104 unevaluatedProperties: false
108 #include <dt-bindings/interrupt-controller/irq.h>
110 #address-cells = <1>;
114 compatible = "adi,ad7879-1";
116 interrupt-parent = <&gpio1>;
117 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
118 touchscreen-max-pressure = <4096>;
119 adi,resistance-plate-x = <120>;
120 adi,first-conversion-delay = /bits/ 8 <3>;
121 adi,acquisition-time = /bits/ 8 <1>;
122 adi,median-filter-size = /bits/ 8 <2>;
123 adi,averaging = /bits/ 8 <1>;
124 adi,conversion-interval = /bits/ 8 <255>;
129 #include <dt-bindings/interrupt-controller/irq.h>
131 #address-cells = <1>;
135 compatible = "adi,ad7879";
137 spi-max-frequency = <5000000>;
140 interrupt-parent = <&gpio1>;
141 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
142 touchscreen-max-pressure = <4096>;
143 adi,resistance-plate-x = <120>;
144 adi,first-conversion-delay = /bits/ 8 <3>;
145 adi,acquisition-time = /bits/ 8 <1>;
146 adi,median-filter-size = /bits/ 8 <2>;
147 adi,averaging = /bits/ 8 <1>;
148 adi,conversion-interval = /bits/ 8 <255>;