|
发表于 2018-5-31 10:24:28
只看该作者
57#
你好,楼主,参考你的代码,我使用AIO-3288J开发板(android系统),编译成功,/dev目录下成功创建设备点,/sys/class目录下文件也创建成功;
使用逻辑分析仪,检测tx,clk,cs都没有波形产生,查看内核信息,爆出如下错误,软中断有误;一起帮忙看下,啥原因,谢谢!
另外问下,dts中的spi-rst和spi-dc需要如何设置具体的gpio?我使用AIO-3288J真实的spi2进行开发,dts设置和spi2原理图设置如下:
内核信息打印错误:
[ 1.095714] [<c0013ec4>] (unwind_backtrace+0x0/0xe0) from [<c001176c>] (show_stack+0x10/0x14)
[ 1.095741] [<c001176c>] (show_stack+0x10/0x14) from [<c02785d8>] (Ldiv0+0x8/0x10)
[ 1.095768] [<c02785d8>] (Ldiv0+0x8/0x10) from [<c034d568>] (pump_transfers+0x4c/0x67c)
[ 1.095793] [<c034d568>] (pump_transfers+0x4c/0x67c) from [<c003e78c>] (tasklet_action+0x80/0xe0)
[ 1.095813] [<c003e78c>] (tasklet_action+0x80/0xe0) from [<c003df24>] (__do_softirq+0x144/0x2b4)
[ 1.095832] [<c003df24>] (__do_softirq+0x144/0x2b4) from [<c003e0c4>] (run_ksoftirqd+0x30/0x78)
[ 1.095853] [<c003e0c4>] (run_ksoftirqd+0x30/0x78) from [<c005d4d8>] (smpboot_thread_fn+0x22c/0x234)
[ 1.095878] [<c005d4d8>] (smpboot_thread_fn+0x22c/0x234) from [<c00561bc>] (kthread+0xa0/0xac)
[ 1.095905] [<c00561bc>] (kthread+0xa0/0xac) from [<c000da98>] (ret_from_fork+0x14/0x3c) |
|