2024-08-05 08:41 PM - edited 2024-08-05 09:59 PM
Do the SPI interface need an entry in the SCMI file, as what I2C requires to work ?
if yes, So far could not find the exact entry for SPI2. According to the SCMI wiki not, but you never now. (:-))
Solved! Go to Solution.
2024-08-07 01:55 AM
Hello @debugging ,
The answer is no, and the reason is the following :
Regarding this chapter in the wiki, it tells that SCMI is used to provide clock tagged as secured (with TZEN=1). In the driver of clock of MP15 (clk-stm32mp1.c), you will find a list of clock tagged as secured (look at stm32mp1_clock_secured[] table, in which you can find the ones that are provided by SCMI as you said (I2C4, I2C6..).
You see that SPI is not inside, so you can use RCC to provide your SPI clock.
I hope it will help,
Kind regards,
Erwan.
2024-08-07 01:55 AM
Hello @debugging ,
The answer is no, and the reason is the following :
Regarding this chapter in the wiki, it tells that SCMI is used to provide clock tagged as secured (with TZEN=1). In the driver of clock of MP15 (clk-stm32mp1.c), you will find a list of clock tagged as secured (look at stm32mp1_clock_secured[] table, in which you can find the ones that are provided by SCMI as you said (I2C4, I2C6..).
You see that SPI is not inside, so you can use RCC to provide your SPI clock.
I hope it will help,
Kind regards,
Erwan.
2024-08-07 02:11 AM
Thanks a lot. Expected that based on the documentation but just wanted to make sure because I can't get SPI to work. With a logic analyzer I see the driver using SPI2 pulling Chip select, but MOSI and CLK only give one pulse. I did not enable DMA for SPI in CubeMX, perhaps that's the reason.. keep on trying....