This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Junny,
Regarding your 1st question, please find my reply below.
Please comment the include file portion #include <ti/csl/soc/j721e/src/cslr_soc.h> as it is a bug and will be fixed in next release.
After commenting, build should go fine.
Regarding your 2nd question, please find my reply below.
I agree with your point, right now ipc_spi_slave_app is tested on A72 only. In the next release ipc_spi_slave_app will be ported to MCU2 or MCU3 core.
For 3rd question, I will forward this query to Linux expert.
As of now, the SPI is not supported in the kernel.
You need to describe the SPI device in device tree and enable the driver config for the this to work.
Note that this has not been tried so far on Linux
Nikhil D
Hi Junny,
As this is a new requirement, need to get approval from the management and then needs to be implemented.
I will inform you earliest after implementation or when it can be provided.
Regards,
Sunil Kumar M S
HI junny,
What is the additional question you are referring to?
Regards,
NIkhil D
Dear NIkhil D,
As asked in my reply, will the next release version of Linux(version 1.0) be released with the spi code fully included?
Additionally,
Are you currently working on device tree and congifuration of SPI on Linux?
If possible, can you share me device tree and configuration working guide for now?
Please let me know your answer.
Thanks & Regards,
Junny.
Hi Junny,
As this SPI is not a standard SPI bus connected to a SPI device, it is rather difficult to verify the Linux driver standlaone.
As mentioned, this will be new requirement that needs to be approved and implemented.
Unfortunately, I do not have any code / DT changes to share with you.
Regards,
Nikhil D
Dear Nikhil D,
"As this SPI is not a standard SPI bus connected to a SPI device" ==> What does this mean?
Is the SPI IP included in TDA4 completely different from the SPI IP included in the TDA2 family or other chips?
Comparing the TRM documents seems to use the same SPI IP, isn't it?
Please let me know.
Thanks and Regards,
Junny
Hi Junny,
The IP is same, but there is no realy SPI device connected to it, that's why I said it is hard to test in standalone Linux environment,
You cannot write a SPI slave driver, because there is none.
Nikhil D
Dear Nikhil D,
1. According to the TRM document, MCU_SPI2 and Main_SPI4 are connected internally without pinout.
So, I do not understand your comment that there is no realy SPI device connected to it.
2. Currently I have downloaded the 0.9 version of Linux code.
3. I checked the 0.9 Linux code, it seems that the SPI slave driver is included.
However, as you said, it requires additional work except SPI driver (DTS, Config ... etc).
4. So, after completing the additional work, I'll try to test by setting MCU_SPI2 as Master (Running RTOS) and Main_SPI4 as Slave (Running Linux).
If I do additional work on Linux, such as DTS, Config, etc. I think SPI communication test is possible. Is it wrong? Am I misunderstanding?
Please let me know your opinion.
Thanks and Regards,
Junny
Hi Junny,
Yes your understanding is correct and the approach is correct.
You just need to program the SPI device in slave mode. There are no pinmux to be set.
You can try this out yourself.
Regards,
NIkhil D