mipi-csi access issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mipi-csi access issue

768 Views
t-sugiyama
Contributor II

Hello,
I understand the lack of performance of iMX8Mmini's cortex-M4 and dare to access MIPI-CSI and CSI Bridge with cortex-M4.
I actually made a program to access MIPI-CSI and CSI Bridge registers with cortex-M4, and confirmed that the camera data was acquired.
However, the process succeeds when I run only the cortex-M4 program from u-boot, but when IMX-Linux is run in parallel, when the cortex-M4 program accesses the MIPI-CSI register. It freezes.

I intend to edit the device tree of IMX-Linux and delete the nodes related to MIPI-CSI and CSI Bridge. Is it still insufficient?


Or is there a mechanism that the register access from the cortex-M4 cannot be done when the cortex-A53 operates as the SoC specifications?

IMX-Linux: Rev. L4.14.98_2.3.0, 22 January 2020
Board: 8MMINILPD4-EVK

Attach the used device tree.

Thanks.
Tetsuya.

0 Kudos
3 Replies

677 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tetsuya

>I intend to edit the device tree of IMX-Linux and delete the nodes related to

>MIPI-CSI and CSI Bridge. Is it still insufficient?

I believe it is sufficient.


>Or is there a mechanism that the register access from the cortex-M4 cannot be

>done when the cortex-A53 operates as the SoC specifications?

such mechanism is provided using RDC, it is described in sect.3.2 Resource Domain Controller (RDC)

i.MX 8M Mini Applications Processor Reference Manual

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

678 Views
t-sugiyama
Contributor II

Hi igor

Thank you for your consultation.

I tried setting RDC on cortex-M4.
When setting No Read Access except Domain 1 in the register RDC_PDAP34 (CSI), a kernel panic occurred during IMX Linux startup and only IMX Linux stopped.
* (UW) 0x303D0488 = 0x0000000c;

I expect IMX Linux to try to access the CSI.
In this case, do I need to check the kernel source code as well as edit the device tree?

Best regards
Tetsuya

0 Kudos

678 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tetsuya

also one can check rdc configuration in

imx8mm_bl31_setup.c\imx8mm\imx\plat - imx-atf - i.MX ARM Trusted firmware 

Best regards
igor

0 Kudos