I'm trying to use the SPI on a OragenPI One Plus (Allwinner H6), and, although I have enable it via the /boot/armbianEnv.txt configuration, communication is not working.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Nyx_
Hello. Good day.
I'm trying to use the SPI on a OragenPI One Plus (Allwinner H6), and, although I have enable it via the /boot/armbianEnv.txt configuration, communication is not working.
Here's the armbianEnv.txt
armbian@orangepioneplus:~$ cat /boot/armbianEnv.txt verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun50i-h6 rootdev=UUID=19c1886e-0b74-45b8-b9f5-5fbd4bdeb5c2 rootfstype=ext4 overlays=spi-spidev param_spidev_spi_bus=0 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
And here's the SPI device listed under /dev
armbian@orangepioneplus:~$ ls -la /dev/sp* crw------- 1 root root 153, 0 nov 28 15:06 /dev/spidev0.0
To test it, I compiled the spidev_test.c (https://github.com/rm-hull/spidev-test) and I jumped the MISO and MOSI pins on the board.
This is the response I'm getting when running the spidev_test:
armbian@orangepioneplus:~/spidev-test$ sudo ./spidev_test -v spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@....�..................�. RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................
I tested it with both a Downloaded image from Armbian website as well as one that I built. Both behave the same way.
To make sure this isn't a Hardware issue, I did the same test the a image from the OrangePi website. It worked fine.
I'm running kernel 5.9.11. Searching on dmesg from SPI doesn't bring much. Here's it in any case:
armbian@orangepioneplus:~/spidev-test$ dmesg | grep spi [ 2.693934] spidev spi0.0: probing from DT
Any ideas where I can look next to solve the problem?
I appreciate any suggestion/advice.
Thank you.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.