How to enable UART2 in Linux on LX2160A?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable UART2 in Linux on LX2160A?

跳至解决方案
329 次查看
ZhaoZheng1
Contributor II

Hi,

I'd like to enable both UART1 and UARAT2 in Linux on LX2160A.
kernel version: 5.15.71

configuration in dts, it seems ok.

ZhaoZheng1_0-1760084260244.png

Check UART control register, UART2 has not been enabled.
root@localhost:~# devmem2 0x21d0030 32
0x00000300
root@localhost:~# devmem2 0x21c0030 32
0x00000B01

May i have your comments?
Many thanks!

Zhao

标记 (2)
0 项奖励
回复
1 解答
262 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please try below patch

https://patchwork.ozlabs.org/project/uboot/cover/1607490724-6447-1-git-send-email-vabhav.sharma@oss....

Then enable CONFIG_SERIAL_PROBE_ALL=y in lx2160ardb_tfa_defconfig after applying this patch.

在原帖中查看解决方案

0 项奖励
回复
7 回复数
297 次查看
ZhaoZheng1
Contributor II

BTW, I have a trial to modify the register of UARTCR to enable UART2, still not working..

0 项奖励
回复
263 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please try below patch

https://patchwork.ozlabs.org/project/uboot/cover/1607490724-6447-1-git-send-email-vabhav.sharma@oss....

Then enable CONFIG_SERIAL_PROBE_ALL=y in lx2160ardb_tfa_defconfig after applying this patch.

0 项奖励
回复
259 次查看
ZhaoZheng1
Contributor II

Hi Yiping,

Thanks for your great help.

I checked the patch, it's about u-boot.
Does it mean enable UART2 in Linux should probe all UARTs in u-boot?

 

Thanks,

Zhao

0 项奖励
回复
255 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Yes, you need to apply this patch in u-boot. Then check UART1 and UART2 in Linux.

0 项奖励
回复
253 次查看
ZhaoZheng1
Contributor II

That's make sense.

I just checked the patch already integrated into u-boot mainline at least in LF-5.15.y.


0 项奖励
回复
242 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please enable CONFIG_SERIAL_PROBE_ALL=y in lx2160ardb_tfa_defconfig after applying this patch.

We have verified this method in LSDK 21.08.

0 项奖励
回复
219 次查看
ZhaoZheng1
Contributor II

Thanks a lot, Yiping.

 

Regards,

Zhao

0 项奖励
回复