What are the conditions for PCIE-PHY to start negotiation?

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

What are the conditions for PCIE-PHY to start negotiation?

368 Views
tamotsu
Contributor V

Hi.

This is an original circuit based on the i.MX7D SABRE circuit.

I'm debugging u-boot.

I have an M.2 SATA card inserted into the PCIE connector on this board.

The PCIE-PHY does not send a signal to the SATA card to start negotiation.

What are the conditions for starting negotiation?

Best Regards.

0 Kudos
Reply
3 Replies

324 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @tamotsu 

If you use pci command in uboot to read M.2 card and no signal, this indicates an issue with your driver's power-up/reset process. You can add log print with register value to check that.

Best Regards,
Zhiming

0 Kudos
Reply

244 Views
tamotsu
Contributor V

Hi Zhiming_Liu.

I did some research after asking the question.

I received a response from the M.2 SATA SSD manufacturer that they do not send out any signals to start negotiation.

I think that M.2SATA needs to be initialized in order for PCIE-PHY and M.2SATA to negotiate.

I wrote code that uses "bootcmd" to execute "do_sata()".

"do_sata()" executes u-boot's "uclass_get_device() in uclass.c". However, SATA cannot be registered as a device.

The i.MX6Q has a SATA address and there is a SATA item in the device tree.

To create a SATA item in the device tree of the i.MX7D, can I refer to the i.MX6Q?

How do you enable mSATA in u-boot on an i.MX7D SABRE board?

Best Ragerds.

0 Kudos
Reply

192 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @tamotsu 

We didn't test SATA in uboot, please refer other platform like i.MX6Q to support SATA.

Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2281527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWhat%20are%20the%20conditions%20for%20PCIE-PHY%20to%20start%20negotiation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2281527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3EThis%20is%20an%20original%20circuit%20based%20on%20the%20i.MX7D%20SABRE%20circuit.%3C%2FP%3E%3CP%3EI'm%20debugging%20u-boot.%3C%2FP%3E%3CP%3EI%20have%20an%20M.2%20SATA%20card%20inserted%20into%20the%20PCIE%20connector%20on%20this%20board.%3C%2FP%3E%3CP%3EThe%20PCIE-PHY%20does%20not%20send%20a%20signal%20to%20the%20SATA%20card%20to%20start%20negotiation.%3C%2FP%3E%3CP%3EWhat%20are%20the%20conditions%20for%20starting%20negotiation%3F%3C%2FP%3E%3CP%3EBest%20Regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2284553%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What%20are%20the%20conditions%20for%20PCIE-PHY%20to%20start%20negotiation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2284553%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203270%22%20target%3D%22_blank%22%3E%40tamotsu%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20use%20pci%20command%20in%20uboot%20to%20read%20M.2%20card%20and%20no%20signal%2C%20this%20indicates%20an%20issue%20with%20your%20driver's%20power-up%2Freset%20process.%20You%20can%20add%20log%20print%20with%20register%20value%20to%20check%20that.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289792%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What%20are%20the%20conditions%20for%20PCIE-PHY%20to%20start%20negotiation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289792%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Zhiming_Liu.%3C%2FP%3E%3CP%3EI%20did%20some%20research%20after%20asking%20the%20question.%3C%2FP%3E%3CP%3EI%20received%20a%20response%20from%20the%20M.2%20SATA%20SSD%20manufacturer%20that%20they%20do%20not%20send%20out%20any%20signals%20to%20start%20negotiation.%3C%2FP%3E%3CP%3EI%20think%20that%20M.2SATA%20needs%20to%20be%20initialized%20in%20order%20for%20PCIE-PHY%20and%20M.2SATA%20to%20negotiate.%3C%2FP%3E%3CP%3EI%20wrote%20code%20that%20uses%20%22bootcmd%22%20to%20execute%20%22do_sata()%22.%3C%2FP%3E%3CP%3E%22do_sata()%22%20executes%20u-boot's%20%22uclass_get_device()%20in%20uclass.c%22.%20However%2C%20SATA%20cannot%20be%20registered%20as%20a%20device.%3C%2FP%3E%3CP%3EThe%20i.MX6Q%20has%20a%20SATA%20address%20and%20there%20is%20a%20SATA%20item%20in%20the%20device%20tree.%3C%2FP%3E%3CP%3ETo%20create%20a%20SATA%20item%20in%20the%20device%20tree%20of%20the%20i.MX7D%2C%20can%20I%20refer%20to%20the%20i.MX6Q%3F%3C%2FP%3E%3CP%3EHow%20do%20you%20enable%20mSATA%20in%20u-boot%20on%20an%20i.MX7D%20SABRE%20board%3F%3C%2FP%3E%3CP%3EBest%20Ragerds.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290521%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What%20are%20the%20conditions%20for%20PCIE-PHY%20to%20start%20negotiation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290521%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203270%22%20target%3D%22_blank%22%3E%40tamotsu%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20didn't%20test%20SATA%20in%20uboot%2C%20please%20refer%20other%20platform%20like%20i.MX6Q%20to%20support%20SATA.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E