LPUART1 not functioning in LS1021A-IOT Board Rev1

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

LPUART1 not functioning in LS1021A-IOT Board Rev1

跳至解决方案
2,382 次查看
pranavmadhu
Contributor IV

Hi,

I'm new to yocto projects. I'm having an LS1021A-IOT Board rev1, and yocto sdk v1.8. The UART1 in the board is working properly while using the default RCW.

00000000: 0608000a 00000000 00000000 00000000
00000010: 20000000 08407900 60025a00 21046000
00000020: 00000000 00000000 00000000 00038000
00000030: 20024800 881b1340 00000000 00000000

I've edited the RCW to enable LPUART1 as

00000000: 0608000a 00000000 00000000 00000000
00000010: 20000000 08407900 60025a00 21046000
00000020: 00000000 00000000 00000000 10038000
00000030: 20024800 881b1340 00000000 00000000

While using the modified RCW in our board, we are not getting u-boot as well as filesystem console in UART1, but kernel prints are getting. I've also probed the 1st and 2nd (LPUART1 SIN & SOUT) pin in J17 connector, but I didn't notice any deflection. Can you please help me to solve this problem?

LPUART1 support is enabled in the device tree source

in ls1021a.dtsi,

    lpuart0: serial@2950000 {
   compatible = "fsl,ls1021a-lpuart";
   reg = <0x2950000 0x1000>;
   interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
   clocks = <&sysclk>;
   clock-names = "ipg";
   status = "disabled";
  

};

and in ls1021a-iot.dts file as

     &lpuart0 {

         status = "okay";

     };

1 解答
2,113 次查看
prabinca4u
Contributor III

I just Found this is an erratum of SOC Rev 1. ie uart1 is enabled along with LPUART or UART2 make uart is malfunction......!

This is solved in rev 2 SOC.

在原帖中查看解决方案

5 回复数
2,114 次查看
prabinca4u
Contributor III

I just Found this is an erratum of SOC Rev 1. ie uart1 is enabled along with LPUART or UART2 make uart is malfunction......!

This is solved in rev 2 SOC.

2,113 次查看
pranavmadhu
Contributor IV

Thanks Prabin... I think this issue may be resolved in rev2. Thanks for your effort...

2,113 次查看
prabinca4u
Contributor III

You are welcome :smileyhappy:

0 项奖励
回复
2,113 次查看
nikhilprakash
Contributor IV

I am also having the same issue!

0 项奖励
回复
2,113 次查看
prabinca4u
Contributor III

I Have the same issue on my ls1021a-iot board rev1....Thanks for posting this forum.....!

0 项奖励
回复