完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一块定制板 imx8mm。我正在尝试启用 PCI1
这是在内核上:5.10。 在这里失败了。我已经进入这个 3 天了。我为 dtsi 尝试了很多变体,但我无法传递此错误 XXX 无法 获得 “ pciephy”重置 控制 [ 3.578885] imx6q-pcie 33800000.pcie: XXX imx6_pcie_VARIANT = 5 XX [ 3.612272] imx6q-pcie 33800000.pcie: reset_get exclusive failed for pciephy [ 3.624251] imx6q-pcie 33800000.pcie: ?? XXX Failed to get 'pciephy' reset control -517 case IMX7D: if (dbi_base->start == IMX8MQ_PCIE2_BASE_ADDR) imx6_pcie->controller_id = 1; imx6_pcie->pciephy_reset = devm_reset_control_get_exclusive(dev, "pciephy"); if (IS_ERR(imx6_pcie->pciephy_reset)) { dev_err(dev, "?? XXX Failed to get 'pciephy' reset control %d ", PTR_ERR(imx6_pcie->pciephy_reset)); return PTR_ERR(imx6_pcie->pciephy_reset); } 我的原理图是:(是 GPIO 扩展器不是 pci 扩展器对不起) 我的 dts 文件是: /dts-v1/; #include #include #include #include #include "imx8mm-pinfunc.h" #include "imx8mq-pinfunc.h" #define MX8MMN(a, b) MX8MM_##a b #define IMX8MMN(a) IMX8MM_##a / { /* ... */ // ----------------------- PCIE pcie0: pcie@33800000 { ///-xx compatible = "fsl,imx8mq-pcie", "snps,dw-pcie","fsl,imx7d-pcie-phy"; compatible = "fsl,imx8mm-pcie", "snps,dw-pcie"; reg = <0x0 0x33800000 0x0 0x400000>, // host config space 4M <0x0 0x32f00000 0x0 0x10000>, // IMX_REFERENCE_MANUAL page 109*/ <0x0 0x1ff00000 0x0 0x80000>; reg-names = "dbi", "config"; #address-cells = <3>; // was 3 #size-cells = <2>; device_type = "pci"; ///-xx bus-range = <0x00 0xff>; ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */ 0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */ num-lanes = <1>; num-viewport = <4>; interrupts = interrupt-names = "msi"; ///-xx, "dma"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, <0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, <0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, <0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; fsl,max-link-speed = <2>; ctrl-id = <0>; // --x power-domains = <&pcie_pd>; power-domains = <&pgc_pcie>; // my power domain resets = <&src IMX8MQ_RESET_PCIEPHY>,//<&gpio_expander_out 8 0> <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, //IMX8MQ_RESET_PCIE_CTRL_APPS_CLK_REQ>, <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>; reset-names = "pciephy", "apps", "clkreq", "turnoff"; clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>, <&clk IMX8MM_CLK_PCIE1_PHY>, <&pcie0_refclk>; clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus"; //fsl,imx7d-pcie-phy = <&pcie_phy>; status = "okay"; }; /* ... */ }; &nmb { /* ... */ // ----------------------- PCIE export-names = "reset-pcie", "enable-pcie"; export-gpios = <&gpio_expander_out 8 0>, <&gpio_expander_out 5 0>; export-flags = /* ... */ }; &iomuxc { // ----------------------- PCIE pcie0_refclk: pcie0-refclk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <100000000>; }; // ----------------------- PCIE pinctrl_pcie0: pcie0grp { fsl,pins = < #define GP_PCIE0_RESET <&gpio_expander_out 8 0> //MX8MMN(IOMUXC_SAI3_TXFS_GPIO4_IO31, 0x100) #define GP_PCIE0_DISABLE <&gpio_expander_out 5 0> //MX8MMN(IOMUXC_GPIO1_IO04_GPIO1_IO4, 0x100) >; }; }; // ----------------------- PCIE &pcie0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pcie0>; disable-gpio = GP_PCIE0_DISABLE; reset-gpio = GP_PCIE0_RESET; ext_osc = <0>; status = "okay"; }; |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1917个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36383 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
4412 浏览 0 评论
6076 浏览 1 评论
6787 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4229 浏览 0 评论
632浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
628浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
626浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
704浏览 2评论
811浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-4 02:06 , Processed in 1.110072 second(s), Total 47, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号