Other Parts Discussed in Thread: ADS7846, TSC2046
Tool/software:
Dear All,
I have been working on touchscreen.
Platform is linux on STM32MP151AAC.
Resistive touch screen is used.
This is a part of dts for touchscreen.
&spi2 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&spi2_pins_a>;
pinctrl-1 = <&spi2_sleep_pins_a>;
cs-gpios = <&gpioi 0 0>;
status = "okay";
//spidev@0 {
// compatible = "spidev";
// spi-max-frequency = <20000000>;
// reg = <0>;
//};
ads7846@0 {
compatible = "ti,ads7846";
//compatible = "ti,tsc2046";
reg = <0x0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpioe>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
//gpios = <&gpioe 12 0>;
pendown-gpio = <&gpioe 12 0>; /*GPIOE 12*/
vcc-supply = <&v3v3>;
ti,x-min = /bits/ 16 <0>;
ti,x-max = /bits/ 16 <3872>;
ti,y-min = /bits/ 16 <0>;
ti,y-max = /bits/ 16 <4997>;
ti,x-plate-ohms = /bits/ 16 <200>;
//ti,y-plate-ohms = /bits/ 16 <300>;
ti,pressure-max = /bits/ 16 <255>;
ti,debounce-max = /bits/ 16 <10>;
ti,debounce-tol = /bits/ 16 <30>;
ti,debounce-rep = /bits/ 16 <1>;
ti,settle-delay-usec = /bits/ 16 <100>;
//ti,keep-vref-on = <1>;
//ti,vref-delay-usecs = /bits/ 16 <1>;
//touchscreen-size-x = <240>;
//touchscreen-size-y = <320>;
wakeup-source = <1>;
status = "okay";
};
};
ADS7846 module is inserted properly.
Touchscreen is added in /dev/input/
event2 is handler for touchscreen.
ads7846 is listed as below by lsmod.
ads7846 24576 0.
But when I checked event by evtest, nothing happens.