Failed to obtain GPIO pins touchscreen Goodix911 while porting bsp5.4 to bsp6.5 (kirkstone)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Failed to obtain GPIO pins touchscreen Goodix911 while porting bsp5.4 to bsp6.5 (kirkstone)

998 次查看
Rabeb
Contributor II

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)

Rabeb_0-1718006373076.png

Below you will find the dmsg log message.

Rabeb_1-1718006394733.png

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.

Rabeb_2-1718006415738.png

The provided image displays the setup of the touch screen in the device tree

Rabeb_3-1718006489343.png

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?

 

标签 (1)
0 项奖励
回复
5 回复数

960 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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)

0 项奖励
回复

954 次查看
Rabeb
Contributor II

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?

Rabeb_0-1718098756251.pngRabeb_1-1718098775758.png

 

0 项奖励
回复

910 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Rabeb 

Have you save your kernel config? 

0 项奖励
回复

905 次查看
Rabeb
Contributor II

@Zhiming_Liu , Yes, I have verified the configuration. Even if I make manual modifications in the config file without using menuconfig, I still experience the same behavior.

0 项奖励
回复

877 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Test result on L6.6.3

root@imx8mp-lpddr4-evk:/sys/class/gpio# ls
export  gpio124  gpiochip0  gpiochip128  gpiochip32  gpiochip512  gpiochip64  gpiochip96  unexport

 

0 项奖励
回复