spi 驱动不能使用
firefly@firefly:~$ dmesg | grep spi[ 1.278569] rockchip-spi ff1c0000.spi: Failed to request TX DMA channel
[ 1.279170] rockchip-spi ff1c0000.spi: Failed to request RX DMA channel
[ 1.279755] rockchip-spi ff1c0000.spi: no high_speed pinctrl state
[ 1.281334] register spi return v = :0
[ 1.282417] rockchip-pinctrl pinctrl: pin gpio3-7 already requested by ff1c0000.spi; cannot claim for fe300000.ethernet
firefly@firefly:~$ sudo ./a.out -D /dev/spidev0.0 -s 200000 spi mode: 0x0
bits per word: 8
max speed: 200000 Hz (200 KHz)
333333
RX | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF| ................................
你好,我也出现了这样的打印信息,请问你的问题后来是怎么解决的 fengc234 发表于 2022-5-10 09:30
你好,我也出现了这样的打印信息,请问你的问题后来是怎么解决的
您好,请问您解决了吗,我的在/dev/下能看到设备节点,但是也是与楼主同样的问题,接收数据不对,dmesg查看显示[ 2.976889] rockchip-spi feb30000.spi: no high_speed pinctrl state
使用主线内核(测试的是6.7.0内核),没有这个报错,SPI可以正常使用。
页:
[1]