IMX8QXP IOMUX - Failed to configure some pins

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8QXP IOMUX - Failed to configure some pins

ソリューションへジャンプ
1,679件の閲覧回数
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!!

タグ(1)
0 件の賞賛
返信
1 解決策
1,673件の閲覧回数
igorpadykov
NXP Employee
NXP Employee
0 件の賞賛
返信
2 返答(返信)
1,637件の閲覧回数
PBR
Contributor IV

Thank you Igor, it solves my problem.

0 件の賞賛
返信
1,674件の閲覧回数
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 件の賞賛
返信