spi interface in Beagle Bone Black

3 views
Skip to first unread message

Shiva

unread,
Sep 20, 2023, 12:49:45 PM9/20/23
to SysPlay's Inside Linux
Dear All,

I am trying to send and receive data from Beagle bone to my FPGA board. 
HW connections are made properly. 
When I boot the BBB, I could see /dev/spidev*.* devices. 
Start the FPGA in slave mode and BBB in master mode. 
Configured the BBB as following: 
config-pin P9.17 spi_cs
config-pin P9.18 spi
config-pin P9.21 spi
config-pin P9.22 spi_sclk


Then I tried to send some data from BBB. But Data always returns as 255. when I check clock it is always low and all other lines are always high. 

Could any one let me know if anything else, we need to add for SPI0 to work? 

The linux version I am using is:
Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l GNU/Linux

regards
ksr

Anil Kumar Pugalia

unread,
Sep 20, 2023, 11:13:37 PM9/20/23
to inside...@googlegroups.com

Have you configured their pin muxing in the dtb? By default they are not configured as SPI.

Regards
Anil
Passion: https://sysplay.in (Playing with Systems)
Shiva wrote on 20/09/23 10:19 pm:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/975cd084-0b80-49ed-b4a8-0eb85b861a7an%40googlegroups.com.

Shiva Reddy

unread,
Sep 21, 2023, 1:52:48 PM9/21/23
to inside...@googlegroups.com
Hi Anil,
For this version of OS, they are already enabled. 
The reason I would say this because, I see spi devices in /dev/ . 
So, we still need to still do anything in dtb?

image.png



--
Thanks & Regards
- Shiva

Anil Kumar Pugalia

unread,
Sep 30, 2023, 12:27:33 PM9/30/23
to inside...@googlegroups.com

It would be best if you could confirm on the SPI lines, if signals are coming as expected.

Regards
Anil
Passion: https://sysplay.in (Playing with Systems)
Shiva Reddy wrote on 21/09/23 11:22 pm:
Reply all
Reply to author
Forward
0 new messages