How to enable UART2 in Linux on LX2160A?

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

How to enable UART2 in Linux on LX2160A?

ソリューションへジャンプ
444件の閲覧回数
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 解決策
377件の閲覧回数
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 返答(返信)
412件の閲覧回数
ZhaoZheng1
Contributor II

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

0 件の賞賛
返信
378件の閲覧回数
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 件の賞賛
返信
374件の閲覧回数
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 件の賞賛
返信
370件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
368件の閲覧回数
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 件の賞賛
返信
357件の閲覧回数
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 件の賞賛
返信
334件の閲覧回数
ZhaoZheng1
Contributor II

Thanks a lot, Yiping.

 

Regards,

Zhao

0 件の賞賛
返信