IMX8QXP IOMUX - Failed to configure some pins

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

IMX8QXP IOMUX - Failed to configure some pins

Jump to solution
1,380 Views
PBR
Contributor IV

Hello,

I have a IMX8QXP-MEK board.
I wanted to use LPUART3, so I added the following lines in the DTS:

&iomuxc {
(...)
pinctrl_lpuart3: lpuart3grp {
fsl,pins = <
IMX8QXP_FLEXCAN2_TX_ADMA_UART3_TX 0x06000020
IMX8QXP_FLEXCAN2_RX_ADMA_UART3_RX 0x06000020
>;
};

(...)
}

But I had this error message when I booted it:
imx8qxp-pinctrl scu:pinctrl: pin_config_set op failed for pin 110 3a83d088 2
(with pin 110 = IMX8QXP_FLEXCAN2_TX)

I discovered I could not configure IMX8QXP_FLEXCAN2_TX, IMX8QXP_FLEXCAN2_RX.

When I do "cat /sys/kernel/debug/pinctrl/scu:pinctrl/pinconf-pins":
(...)
pin 109 (IMX8QXP_FLEXCAN2_RX): N/A
pin 110 (IMX8QXP_FLEXCAN2_TX): N/A
pin 111 (IMX8QXP_UART0_RX): 0x6000020
pin 112 (IMX8QXP_UART0_TX): 0x6000020
pin 113 (IMX8QXP_UART2_TX): 0x6000020
pin 114 (IMX8QXP_UART2_RX): 0x6000020
(...)
IMX8QXP_FLEXCAN2 are seen N/A.
Other pins are N/A (ex : IMX8QXP_QSPI0A, IMX8QXP_QSPI0B...) and they cannot be configure neither.

If I tried to follow what is going wrong in the code: when the code tries to configure the pin in calling SCU with imx_scu_ipc_write(), it returns IMX_SC_ERR_NOACCESS.
Even in the u-boot program, I cannot configure these pins: when I tried to read these pins with sc_pad_get(), I have the error -13, access problem.

So it seems SCU locks this access but why?
Is there a configuration file?
Can SCFW be responsible? Or any other software running before u-boot?

If you have any idea, it is welcome!!

0 Kudos
Reply
1 Solution
1,374 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos
Reply
2 Replies
1,338 Views
PBR
Contributor IV

Thank you Igor, it solves my problem.

0 Kudos
Reply
1,375 Views
igorpadykov
NXP Employee
NXP Employee

Hi Philippe

 

one can look at similar issue on

https://community.nxp.com/t5/i-MX-Processors/LPUART3-abnormal-imx8qxp-startup-from-SD/m-p/989503?com...

 

Best regards
igor

0 Kudos
Reply