How to change LANEC to SATA1

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change LANEC to SATA1

Jump to solution
436 Views
yuqianli
Contributor I

We have a customised board based on NXP LS1021A CPU, we made few changes for the SerDes LANEA to LANED, in details

LANEA/LANEB -> PCIEX2

LANC -> SATA1

LAND -> SGMII

I just changed the SRDS_PRTCL_S1=32 to 64 follow the datasheet "Table 32-2. Supported SerDes options" listed in rcw_1000_sdboot.rcw file, then recompiled RCW got binary and converted it to uboot format and was put it to ls102xa_rcw_sd.cfg file, then compiled uboot, now I used new uboot I can got LANEA/B and LAND working, just the SATA1 in LANC not working. 

my question is: do I need change other parameters in rcw_1000_sdboot.rcw? 

here is my rcw_1000_sdboot.rcw contents

--------

#include <../ls1021aqds/ls1021a.rcwi>

SYS_PLL_RAT=3

MEM_PLL_RAT=8

CGA_PLL1_RAT=10

SRDS_PRTCL_S1=64

SRDS_PLL_PD_S1=1

SRDS_DIV_PEX=1

USB3_REFCLK_SEL=0

USB3_CLK_FSEL=57

A7_ACE_CLKDIV=2

A7_DBG_CLKDIV=2

HWA_CGA_M1_CLK_SEL=1

PBI_SRC=6

DP_DIV=1

OCN_DIV=1

IFC_MODE=64

DRAM_LAT=1

SYS_PLL_SPD=1

UART_BASE=7

IFC_GRP_E1_EXT=4

EC1=4

EC2=2

QE-TDMA=6

QE-TDMB=6

SDHC=3

DVDD_VSEL=2

LVDD_VSEL=1

EVDD_VSEL=2

BVDD_VSEL=2

#include <../ls1021aqds/scfg_bit_reverse.rcw>

#include <../ls1021aqds/uboot_address.rcw>

----------

and uboot shows rcw binary hex format

----------

Reset Configuration Word (RCW):
00000000: 0608000a 00000000 00000000 00000000
00000010: 40000000 00407900 60040a00 21046000
00000020: 00000000 00000000 00000000 00038000
00000030: 00080000 881b7340 00000000 00000000

 ------------

Thank you!

Tags (1)
0 Kudos
1 Solution
153 Views
ufedor
NXP TechSupport
NXP TechSupport

Provided schematics shows multiplexor.

Example driver:

MAX4951     SATA I/SATA II Bidirectional Re-Driver

View solution in original post

0 Kudos
9 Replies
153 Views
ufedor
NXP TechSupport
NXP TechSupport

Please note that for the selected SerDes protocol 0x40 both PLLs have to be enabled - PLL2 is used by SATA (refer to the QorIQ LS1021A Reference Manual, Table 32-2. Supported SerDes options).

Modification:

SRDS_PLL_PD_S1=0

0 Kudos
153 Views
yuqianli
Contributor I

Hi Ufedor,

Thanks for your response. 

I tried to change it and still can't get SATA link working, i used IOT SDK 0.4, is that version fixed SATA issue as i remember old version of SDK had a SATA issue.

------------

Reset Configuration Word (RCW):
00000000: 0608000a 00000000 00000000 00000000
00000010: 40000000 00007900 60040a00 21046000
00000020: 00000000 00000000 00000000 00038000
00000030: 00080000 881b7340 00000000 00000000
Board: LS1021AIOT
CPLD: V2.5
I2C: ready
DRAM: 1 GiB
Using SERDES1 Protocol: 64 (0x40)
MMC: FSL_SDHC: 0
EEPROM: Read failed.
PCIe1: Root Complex no link, regs @ 0x3400000
PCIe2: disabled
In: serial
Out: serial
Err: serial
SATA link 0 timeout.
AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc
scanning bus for devices...
Found 0 device(s).

-----------

Thank you.

0 Kudos
153 Views
ufedor
NXP TechSupport
NXP TechSupport

The log shows that SATA should be operational.

Which device you connected and how exactly?

Please provide the processor connection schematics for inspection after creating a Technical Case:

How I could create a Service Request? | NXP Community 

0 Kudos
153 Views
yuqianli
Contributor I

Hi Ufedor,

here is the schematic of our design, we connect that SATA connector P3 as a ESATA. 

thank youScreen Shot 2016-12-12 at 11.22.56 AM.png

0 Kudos
153 Views
ufedor
NXP TechSupport
NXP TechSupport

Have you simulated or measured signal loss for the SATA lane?

0 Kudos
153 Views
yuqianli
Contributor I

not yet, planning to do that. as we used SATA for connecting to an ESATA device, is it fine for the schematic and theory? 

Thanks

0 Kudos
153 Views
ufedor
NXP TechSupport
NXP TechSupport

According to available reference designs multiplexors for high-speed lanes are not recommended.

0 Kudos
153 Views
yuqianli
Contributor I

You mean it is not recommended for connect the LANE of LS1021a to an eSATA driver? 

Thanks

0 Kudos
154 Views
ufedor
NXP TechSupport
NXP TechSupport

Provided schematics shows multiplexor.

Example driver:

MAX4951     SATA I/SATA II Bidirectional Re-Driver

View solution in original post

0 Kudos