Using GPIO as interrupt on i.MX28 and linux-3.4.50

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

Using GPIO as interrupt on i.MX28 and linux-3.4.50

2,139 次查看
cono
Contributor I

Hello,

I am using the mainline linux kernel-3.4.50 built with mxs_defconfig. Based on the sysfs I am trying to init and use a GPIO as interrupt. Unfortunately the complete systems hangs when the interrupt is triggered.

For test I have connected PIO 6 and PIO 27 in hardware. PIO 27 should be act as output to trigger PIO 6 that is configured as interrupt input. On the shell I am using the commands below:

# cd /sys/class/gpio

# echo 6 >export

# echo 27 >export

# echo out >gpio27/direction

# echo in >gpio6/direction

# echo rising >gpio6/edge

# echo 1 >gpio27/value

------- from here there is no return. It seems as the complete system hangs, since it is not reachable anymore over TCP/IP (ping).

Does anyone has an idea what is going wrong here?

Regards

Christoph

标签 (2)
标记 (3)
0 项奖励
回复
2 回复数

1,233 次查看
fabio_estevam
NXP Employee
NXP Employee

Can you try it on 3.10?

0 项奖励
回复

1,233 次查看
cono
Contributor I

Hi Fabio,

there are some patches for kernel 3.5 within the newest BSP package from the company TQ for their i.MX28 based TQMa28. It seems as there is something wrong for the interrupt handling on GPIO port 0 (GPIO0..32) in mainline kernel. The patches are solving the problem.

For now this is enough for me. Thank you for your response.

Regards,

Christoph

0 项奖励
回复