4,My driver code can match the node of the devices-tree,but i can’t get the correct waveform signal on any pins belong spi1(pin 19 21 23 24 26),the using api function is spi_async().
5, The info below is return after exec cmd “sudo cat /sys/kernel/debug/pinctrl/2430000.pinmux/pinmux-pins |grep PZ”
1,the url cannot access,i get spidev_test.c from spidev_test.c - tools/spi/spidev_test.c - Linux source code (v5.10.120) - Bootlin
2,resolve the compiling error.
3,open the /dev/spidev0.1 (there is no node /dev/spidev0.0),get the return upon.
so what I need to do is diff difference between the driver source code spidev.c and my own driver code?
Hi,
Now I connect the slaver a chip of which the work voltage is 3.3V, the wave will be disordered in the clk gate.
I think there are two possible distant causes:
1,The wire between the module pin and slaver is too long.
2,The pinmux pull-down-up config is not suitable.
Is the cause 2 possible?
Hi KevinFFF,
1,When I cut the wire shorter, the waveform is much better, but the signal is not well enough.
2,Finaly, I found that the voltage of pin2(VCC5.0V, supply the power for the slaver) is less than 3V, the slaver is lack of power.
3,when I use electricity from other device, the waveform is well now.
so the problem is resolved. Thank you!