blob: 558703293668d4b0218724f11c7c547433afbd7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Enable the resistive touch controller (AD7879) on the module
/dts-v1/;
/plugin/;
#include "dt-bindings/interrupt-controller/irq.h"
#include "dt-bindings/gpio/gpio.h"
#include "dt-bindings/pinctrl/pads-imx8qxp.h"
/ {
compatible = "toradex,colibri-imx8qxp";
fragment@0 {
target = <&i2c0>;
__overlay__ {
/* Touch controller */
ad7879@2c {
compatible = "adi,ad7879-1";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ad7879_int>;
reg = <0x2c>;
interrupt-parent = <&gpio3>;
interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
touchscreen-max-pressure = <4096>;
adi,resistance-plate-x = <120>;
adi,first-conversion-delay = /bits/ 8 <3>;
adi,acquisition-time = /bits/ 8 <1>;
adi,median-filter-size = /bits/ 8 <2>;
adi,averaging = /bits/ 8 <1>;
adi,conversion-interval = /bits/ 8 <255>;
};
};
};
fragment@1 {
target = <&iomuxc>;
__overlay__ {
colibri-imx8qxp {
/* On-module touch pen-down interrupt */
pinctrl_ad7879_int: ad7879-int {
fsl,pins = <
SC_P_MIPI_CSI0_I2C0_SCL_LSIO_GPIO3_IO05 0x21
>;
};
};
};
};
};
|