How to enable UART2 in Linux on LX2160A?

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

How to enable UART2 in Linux on LX2160A?

Jump to solution
360 Views
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

Tags (2)
0 Kudos
Reply
1 Solution
293 Views
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.

View solution in original post

0 Kudos
Reply
7 Replies
328 Views
ZhaoZheng1
Contributor II

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

0 Kudos
Reply
294 Views
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 Kudos
Reply
290 Views
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 Kudos
Reply
286 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
284 Views
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 Kudos
Reply
273 Views
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 Kudos
Reply
250 Views
ZhaoZheng1
Contributor II

Thanks a lot, Yiping.

 

Regards,

Zhao

0 Kudos
Reply