iMX6 PCIE range not found

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

iMX6 PCIE range not found

跳至解决方案
2,414 次查看
randysilagi
Contributor II

I have a Sabre i.MX6 Solox board.  The PCIe bus fails with:

imx6q-pcie 8ffc000.pcie: phy link never came up
imx6q-pcie 8ffc000.pcie: DEBUG_R0: 0x00cb8300, DEBUG_R1: 0x08200000
imx6q-pcie 8ffc000.pcie: failed to initialize host: ret: -22

I have tracked this to pcie-designware.c::dw_pcie_host_init->of_pci_parse_bus_range(np, &pp->busn);

This function of_pci_parse_bus_range is looking for the "bus-range" property.  I assume that property is coming from one of the DTS files.  This version is comprised of 3 DTS included to create the one being used, imx6sx-sdb.dts.    None of the DTS files have any "bus-range".  I'm wondering if the "ranges" would from imx6sx.dtsi would work.  Maybe the property name is justed spelled wrong, again?

If anyone has any ideas about why the "bus-range" property can't be found please let me know.

Randy Silagi

标签 (2)
0 项奖励
回复
1 解答
1,982 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Randy

one can look at linux/Documentation/devicetree/bindings/pci/designware-pcie.txt

linux-2.6-imx.git - Freescale i.MX Linux Tree 

and try to add this property using example

linux-2.6-imx.git - Freescale i.MX Linux Tree 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
1,983 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Randy

one can look at linux/Documentation/devicetree/bindings/pci/designware-pcie.txt

linux-2.6-imx.git - Freescale i.MX Linux Tree 

and try to add this property using example

linux-2.6-imx.git - Freescale i.MX Linux Tree 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------