请教一下,IMX6Q怎么使能两个两个pcie呢,目前我们有两个pcie接口,但只有接在一个接口上的pcie设备可以发现,另一个发现不了,其中设备描述文件相关部分如下:
imx6qdl.dtsi文件中
pcie: pcie@0x01000000 {
compatible = "fsl,imx6q-pcie", "snps,dw-pcie";
reg = <0x01ffc000 0x04000>,
<0x01f00000 0x80000>;
reg-names = "dbi", "config";
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
ranges = <0x00000800 0 0x01f00000 0x01f00000 0 0x00080000 /* configuration space */
0x81000000 0 0 0x01f80000 0 0x00010000 /* downstream I/O */
0x82000000 0 0x01000000 0x01000000 0 0x00f00000>; /* non-prefetchable memory */
num-lanes = <1>;
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi";
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 0x7>;
interrupt-map = <0 0 0 1 &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
<0 0 0 2 &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
<0 0 0 3 &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
<0 0 0 4 &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_PCIE_AXI>,
<&clks IMX6QDL_CLK_LVDS1_GATE>,
<&clks IMX6QDL_CLK_PCIE_REF_125M>;
clock-names = "pcie", "pcie_bus", "pcie_phy";
status = "disabled";
};
我们板卡的配置信息:
&pcie {
reset-gpio = <&gpio1 20 GPIO_ACTIVE_LOW>;
status = "okay";
};
您好,
请问IMX6Q的PCIE时钟为什么只在上电后一瞬间有100MHZ时钟信号,之后一直为低,能否让CLK1_N和CLK1_P一直输出时钟信号?
谢谢!
Hello Mark,
i.MX6处理器,只支持一个PCIe X1 GEN2 5.0Gbps的接口,所以你无法直接连接2个PCIe设备在这个端口上。但是,你可以采用扩展的方式,首先在电路上进行实现它。
i.MX6 PCIe--->PCIe switch(1channel root--->2--4chanel x1 switch end ),这类switch IC,PLX公司或者IDT公司有,你可以网上搜索一下,或者和他们联系一下。 纯粹在软件上,是无法实现的!
伟东