Forums › Devices › OSD32MP15x › SPI
Are there any SPI ports enabled in the openstlinux image for the OSD32MP1-BRK? I see there is an i2c, but no SPI.
Thank you.
hmm.. no answer.
Is anyone using SPI ports on the linux side?
Any advice from the Octavo team on how to proceeed?
Thank you!
Orocle,
There are 3 SPI ports enabled on OSD32MP1-BRK. Please take a look at the pinout section of the Getting Started Guide for the BRK board for specific pin locations here: https://octavosystems.com/app_notes/osd32mp1-brk-getting-started/#pin. They are also highlighted in the device tree here: https://github.com/octavosystems/OSD32MP1-BRK-device-tree/blob/master/linux-v5.4/stm32mp157c-osd32mp1-brk.dts#L1021.
Best,
Neeraj
@Neeraj Dantu, thank you. I didn’t specify the issue.
The issue is that there are no SPI devices under /sys/class/spidev or /sys/class/spi_master, therefore there are no spi devices under /dev.
I can see the device tree has spi2,spi4 and spi6 speficied with the correct pin mux and enabled. So why are they not being registered? Also, lsmod, shows the following, notice there are no devices(used by) in spi_stm32 module.
root@stm32mp1:/sys/class# lsmod
Module Size Used by
cfg80211 557056 0
spi_stm32 24576 0
sch_fq_codel 20480 2
ipv6 442368 40
nf_defrag_ipv6 20480 1 ipv6
Just checked your production image and the three spi devices are shown there, so it must be somthing in the kernel build and or device tree that differs from your image. But anyhow, the production image is good enough for now, and hopefully I won’t need to build the Kernel.
It would be of great help if Octavio publishs the entire enrironment that produces your production image, as it sits on your computers, sdk, sources and divices trees, patched and all. Perhaps a VM of some sort.
Anyhow if you have some insight in the above, that be great, otherwise no worries.
orocle,
As you said, the SPI devices are available on both the OpenSTLinux image and Debian images for the BRK.
If you are referring to the minimal CubeMX project, you are right that there are not SPI devices enabled in that project as it was intended to create a minimal bootable system.
There are several resources for doing custom builds. Please take a look at the BRK Developer Package patches here: https://github.com/octavosystems/BRK_Developer_Package_patches. You can use them to build a custom OpenSTLinux image based on OpenSTLinux Developer Package(https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package).
For Debian, we have made the SDK available here: https://github.com/octavosystems/osd32mp1-debian. Note however that the Debian SDK is built on an older version of the OpenSTLinux distro.
Best,
Neeraj
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields