2023-12-08 01:32 AM
Working on setting up SPI bus and get a connection to ESP32C6 WiFi/BT module. Trying to configure SPI5 clock in device tree for STM32MP151. Have used different sources (HSI, HSE, PLL4Q), but the enable count on the SPI5_k clock is always zero. I am suspecting now that problem must be elsewhere. Has anyone stumbled upon this?
2023-12-08 08:07 AM
Thanks. I also suspect it is a driver issue. I tried to plug in a driver from ESP32 (esp-hosted-ng), but I am not sure how to do it properly right now. It is "baked" together with image, but I am just not sure what to write in "compatible" field
2023-12-08 09:01 AM
@vsaakian ,
I have no knowledge about this driver, I think you could get some support to know how to use it with your Linux system thanks to people who made it.
Kind regards,
Erwan.
2023-12-19 02:54 AM
Hi Erwan,
We had some progress on this and currently the driver kernel module is loaded, but the clock looks still disabled
2023-12-20 08:55 AM
Hello @vsaakian ,
Did you try to get the clk_summary after the load of the module ?
Did you try to check signals at oscilloscope to see if everything looks okay ?
Kind regards,
Erwan.
2023-12-22 04:13 AM
I could see the clock using oscilloscope, it's frequency however is 20 times lower than configured. I start the driver with 1MHz configured and what I get out is 50KHz. SPI5 is set up to use HSE clock of 24MHz. Trying to understand if there's any divider on the driver side..