RDC usage on i.mx8, Can 1 GPIO bank be used in both A53 and M4 at the sametime?

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

RDC usage on i.mx8, Can 1 GPIO bank be used in both A53 and M4 at the sametime?

2,649 Views
wenfu
Contributor III

We are building a application with A53 and M4. I have read some document about RDC. Now I meet a problerm with GPIO accessing both by A53 and M4. I use GPIO3_IO11 in M4 to output a reset signal( normal high ). And use another pin from GPIO3 bank, for example GPIO3_IO22, in A53 to do other things. If no acction with GPIO3_IO22 through linux space, everything works normally in M4. But if I echo GPIO3_IO22 > /sys/class/gpio/export( pseudo-code) then GPIO3_IO11 go to low level and can not be pull up by M4. It seems M4 loss control of GPIO3_IO22. Any pin in GPIO3 bank using in linux will stop actions givien by M4.


If I use different GPIO bank in M4 and A53, GPIO1 in M4 and GPIO4 in A53, everthing goes OK.


So my question is whether this is a limitaion that the same GPIO bank can not be used both in the 2cores? was it caused by RDC? And how to solve this isse, we have a lot of plan to use the 2 core system so it's very important for us.

In my application scenario, what is the best way to aviod this conflict? Make sure the 2 cores do not use the GPIO pins in the same bank?

In the datasheet 3.2.1:
semaphore-based locking mechanism to
provide for temporary exclusivity while the domain software uses the peripheral. Once
the software of one domain has finished the task and finished with the peripheral then it
may release the semaphore making the peripheral available to the other domain.

It described a semaphore-based locking mechanism works, is this done by hardware or linux kernel or user software?

I want make sure If we have to change the schematic to let the different GPIO bank works in different CPU cores?

Wating for your response.

0 Kudos
Reply
5 Replies

2,394 Views
nilesh_emqos
Contributor I

Hi,

Is the configure rdc supported in atf (ARM Trusted Firmware), to set GPIO permissions for accessing  both by A7 and M4?

 

Thanks,

Warm Regards,

Nilesh.

0 Kudos
Reply

2,392 Views
igorpadykov
NXP Employee
NXP Employee

yes rdc allows to set gpio permissions for accessing  both by A53 and M4.

 

Best regards
igor

0 Kudos
Reply

2,642 Views
igorpadykov
NXP Employee
NXP Employee

Hi wenfu

 

what processor (full part number) and BSP used in the case.

 

Best regards
igor

0 Kudos
Reply

2,633 Views
wenfu
Contributor III

Chip: i.mx8mq

BSP: linux 4.14.78_1.0.0_ga

0 Kudos
Reply

2,627 Views
igorpadykov
NXP Employee
NXP Employee

one can try to configure rdc in atf,  set GPIO permissions for accessing  both by A53 and M4

https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8mq/imx8mq_bl31_setup.c?h=imx_4....

use sect.3.2 Resource Domain Controller (RDC) i.MX8MQ Reference Manual.

 

Best regards
igor

 

0 Kudos
Reply