Hello All,
I am working on i.MX6ULL and there is an issue I am facing with SDMA remapping.
When I am configuring the sdma remapping event as below, I am able to run the audio on ESAI channel,
&sdma {
gpr = <&gpr>;
/* SDMA event remap for ESAI */
fsl,sdma-event-remap = <0 14 1>, <0 15 1>;
};
But, I am experiencing an hang on UART6 bus.
Can anyone point me how the settings are causing issue on UART6?
I can see the datasheet shows below register IOMUXC_GPR_GPR0 field descriptions,
Does that mean that when ESAI is run on SDMA mode, UART6 cannot be used?
Thanks,
Kiran
Hi @igorpadykov ,
The ESAI configuration for using SDMA looks to be fine.
When I referred the documentation for sdma @ Documentation/devicetree/bindings/sdma/fsl-imx-sdma.txt, it is stated,
---------------------------------------------------------------------------------------------------------------------
>Similarly with iMX6ULL, usage of SDMA on ESAI channel means that we
>cannot use UART6 in the system?
it can be used without sdma.
Best regards
igor
Hello @igorpadykov ,
I am using SDMA on ESAI channel as I have the SDMA remapping configured for that and haven't really configured any SDMA remapping for UART6 but still the UART6 freezes when I am trying to send/receive data on UART6.
Please clarify why UART6 should be having an issue? Is there any default mapping already in place with the imx6ul.dtsi which may need to remove or something? Kindly advise.
Regards,
Kiran
could you please confirm, if you are using uart6 without sdma.
If yes, one can try to debug it checking if uart6 clocks are enabled in CCM_CCGR3
register, UART6_UCR1 bit UARTEN. Also please note that UART6 also can be used
in M4 FreeRTOS SDK.
Best regards
igor
Hi Kiran
>Does that mean that when ESAI is run on SDMA mode, UART6 cannot be used?
yes. In such case one can try to use uart without sdma (remove UART6 sdma entries in dts).
Best regards
igor
Hi Kiran
you can use memtool and check if gpr was correctly configured
https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool?h=imx_5.4.70_2.3.0
Best regards
igor