LS1028 - U-Boot console on LPUART

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

LS1028 - U-Boot console on LPUART

4,321件の閲覧回数
cguer
Contributor I

Hello NXP Community,

Context
I'm using ls1028 device. U-Boot and Linux console output use duart1(duart0 on dts).
Now, i would like the console output to be on the lpuart6(lpuart5 on dts).
I'm using U-Boot qoriq 2020.04 

What i've done

  • rcw

I've set UART1_SOUTSIN_PMUX to 0b011 to use LPUART6 according datasheet Rev. 0 , 12/2019

  • u-boot defconfig

I've set following config to yes:  CONFIG_DM_SERIAL, CONFIG_FSL_LPUART, CONFIG_LPUART.
I've also set CONFIG_SYS_EXTRA_OPTIONS to "LPUART".

  • u-boot device tree

I have my own device tree which I include fsl-ls1028a.dtsi. In addition to that, i've changed the status of node to "okay" for the following nodes: &lpuart5 &serial0.
I've done aliases between serial0 and &lpuart5.
I've set also stdout-path to &lpuart5 (under chosen).

Status
After those step, I still don't have console output. 
Any suggestion? Is it possible to have console output on LPUART6?

Thanks in advance  
Kind Regards,
Cguer

 

 

0 件の賞賛
返信
7 返答(返信)

3,476件の閲覧回数
CGW
Contributor I

I would also like to use LPUART1 with ATF.

0 件の賞賛
返信

4,308件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

You could use flexbuild_lsdk2004_update_290520 release.

Please refer to the attached u-boot patches.

4,302件の閲覧回数
cguer
Contributor I

Hi @yipingwang,

I really appreciate your fast reply on this subject.

The patches you sent to me are for LPUART1(lpuart0 in dts). What should I do if I want for LPUART6?
Especially the modification done with your patch 0001-board-freescale-ls1028a-mux-changes-for-lpuart.patch concerning QIXIS_READ.

Thank you in advance.

0 件の賞賛
返信

4,239件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

The following section is used to modify pins multiplex, if your uart hardware design is the same as the QDS, you could use the following configuration and modify CFG_LPUART_EN.

+    uart = QIXIS_READ(brdcfg[13]);
+    uart &= ~CFG_LPUART_MUX_MASK;
+    uart |= CFG_LPUART_EN;
+    QIXIS_WRITE(brdcfg[13], uart);

0 件の賞賛
返信

4,017件の閲覧回数
cguer
Contributor I

Hi,

Just an update to tell that the solution worked by randomly putting this: CFG_LPUART_EN = 0xF5.
Still two opens problems:

- We don't have any ATF logs while using LPUART.
- The solution you gave mention of the #13 register of board configuration in QIXIS. I don't see any documentation that mention this register. The one I have only describe the 8 first register.

Thanks.

0 件の賞賛
返信

4,106件の閲覧回数
cguer
Contributor I

Thanks for your help.

But i need more support on this.

You told me to put the following line:
"uart = QIXIS_READ(brdcfg[13]);"

Where is the documentation of the register #13 of BRDCFG?
The documentation i have explain BRDCFG0 to BRDCFG6.

Should I put for lpuart5: CFG_LPUART_EN = 0xF5  ?

Thanks !

0 件の賞賛
返信

4,090件の閲覧回数
cguer
Contributor I

Another question,

How to get logs for ATF on LPUART6?
It seems that changing only NXP_UART_ADDR to the CCSR address of LPUART6 isn't enough.

0 件の賞賛
返信