Failed to obtain GPIO pins touchscreen Goodix911 while porting bsp5.4 to bsp6.5 (kirkstone)
Hi
I am currently in the process of migrating bsp5.4 to bsp 6.x on verdin imx8mm. I am encountering a problem with the Goodix touchscreen - I am able to detect the touch, but I am not receiving any events when using evtest.(see the image below)
Below you will find the dmsg log message.
Upon reviewing the message log, it has come to my attention that the driver is unable to locate the GPIO IRQ and reset using the function “gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_INT_NAME, GPIOD_IN);” as depicted in the image provided.
The provided image displays the setup of the touch screen in the device tree
The touchscreen functions properly in bsp5.x with /sys/class/gpio configuration, however, it is unable to locate the GPIO in bsp6 when using libgpio. The display is facing a similar problem in finding the GPIO. How can this issue be resolved? Any suggestions?

Hi @Rabeb
Please try to enable these two features in menuconfig
[*] General setup-> Configure standard kernel features (expert users)
[*] Device Drivers->GPIO Support-> /sys/class/gpio/... (sysfs interface)
Hi @Zhiming_Liu,Thank you for your response. I have adjusted the configuration as per your instructions, however, I am still experiencing the same issue. Additionally, I am unable to locate /sys/class/gpio even after implementing the new kernel configuration. Any suggestions please?

Test result on L6.6.3
root@imx8mp-lpddr4-evk:/sys/class/gpio# ls
export gpio124 gpiochip0 gpiochip128 gpiochip32 gpiochip512 gpiochip64 gpiochip96 unexport
