DESK-MX8M-L/Peripherals/PCI express

From DAVE Developer's Wiki
< DESK-MX8M-L
Revision as of 16:17, 30 December 2021 by U0007 (talk | contribs) (Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- !style="border-le...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
History
Version Issue Date Notes
1.0.0 Jan 2022 First DESK-MX8M release


Peripheral PCI express[edit | edit source]

Device tree configuration[edit | edit source]

Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:

From imx8mp-mito8mplus-cb1001.dts:

&pcie {
	status = "okay";
};

&pcie_phy{
	ext_osc = <1>;
	status = "okay";
};

Accessing the peripheral[edit | edit source]

Linux messages at boot time[edit | edit source]

PCIe driver initialized:

...
...
[    0.443763] PCI: CLS 0 bytes, default 64
[    0.459987] imx6q-pcie 1ffc000.pcie: no reserved region node.
[    0.460090] imx6q-pcie 1ffc000.pcie: 1ffc000.pcie supply epdev_on not found, using dummy regulator
[    0.460415] OF: PCI: host bridge /soc/pcie@1ffc000 ranges:
[    0.460451] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
[    0.460470] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000
[    0.709248] imx6q-pcie 1ffc000.pcie: phy link never came up
[    0.712328] imx6q-pcie 1ffc000.pcie: failed to initialize host
[    0.712343] imx6q-pcie 1ffc000.pcie: unable to add pcie port.
[    0.712571] imx6q-pcie: probe of 1ffc000.pcie failed with error -110
...
...
[    2.459055] ehci-pci: EHCI PCI platform driver
...
...

The PCIe usage is strictly related to the peripheral type connected to the PCIe slot. Then, the peripheral type defines the linux commands used for the accessing (hiding the PCIe bus commands)

Additional information[edit | edit source]