Difference between revisions of "DESK-MX6-L/Pheripherals/PCI express"

From DAVE Developer's Wiki
Jump to: navigation, search
m (U0009 moved page AXEL Lite SOM/DESK-MX6-L/Pheripherals/PCI express to DESK-MX6-L/Pheripherals/PCI express: modifica gestione DESK come prodotto a se stante)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<section begin=History/>
+
<section begin="History" />
 
{| style="border-collapse:collapse; "
 
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
+
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
 
|-  
 
|-  
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Issue Date
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|1.0.0
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|14085|2021/07/16}}
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Oct 2020
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |First DESK-MX6-L release
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|First DESK release
 
 
|-
 
|-
 +
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|17004|2022/03/03}}
 +
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-MX6-L 3.0.0 release
 +
|-
 +
 +
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |2023/04/11
 +
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |DESK-MX6-L 4.0.0 release
 
|-
 
|-
 
|}
 
|}
<section end=History/>
+
<section end="History" />
<section begin=Body/>
+
<section begin="Body" />
  
 
==Peripheral PCI express==
 
==Peripheral PCI express==
Line 64: Line 68:
 
...
 
...
 
...
 
...
[    0.443763] PCI: CLS 0 bytes, default 64
+
[    0.158611] PCI: CLS 0 bytes, default 64
[    0.459987] imx6q-pcie 1ffc000.pcie: no reserved region node.
+
[    0.265640] imx6q-pcie 1ffc000.pcie: supply epdev_on not found, using dummy regulator
[    0.460090] imx6q-pcie 1ffc000.pcie: 1ffc000.pcie supply epdev_on not found, using dummy regulator
+
[    0.306554] imx6q-pcie 1ffc000.pcie: iATU unroll: disabled
[    0.460415] OF: PCI: host bridge /soc/pcie@1ffc000 ranges:
+
[    0.306566] imx6q-pcie 1ffc000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[    0.460451] OF: PCI:   IO 0x01f80000..0x01f8ffff -> 0x00000000
+
[    0.306592] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[    0.460470] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000
+
[    0.306654] imx6q-pcie 1ffc000.pcie:       IO 0x0001f80000..0x0001f8ffff -> 0x0000000000
[    0.709248] imx6q-pcie 1ffc000.pcie: phy link never came up
+
[    0.306685] imx6q-pcie 1ffc000.pcie:     MEM 0x0001000000..0x0001efffff -> 0x0001000000
[    0.712328] imx6q-pcie 1ffc000.pcie: failed to initialize host
+
[    0.306809] imx6q-pcie 1ffc000.pcie: iATU unroll: disabled
[    0.712343] imx6q-pcie 1ffc000.pcie: unable to add pcie port.
+
[    0.306819] imx6q-pcie 1ffc000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[    0.712571] imx6q-pcie: probe of 1ffc000.pcie failed with error -110
+
[    0.405002] imx6q-pcie 1ffc000.pcie: Link up
 +
[    0.405013] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled
 +
[    0.405022] imx6q-pcie 1ffc000.pcie: Link up, Gen1
 +
[    0.528786] imx6q-pcie 1ffc000.pcie: Link up
 +
[    0.528968] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
 
...
 
...
 
...
 
...
[    2.459055] ehci-pci: EHCI PCI platform driver
+
[    3.472568] ehci-pci: EHCI PCI platform driver
 
...
 
...
 
...
 
...
 
</pre>
 
</pre>
  
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)
+
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 ===
 
=== Additional information ===

Latest revision as of 17:06, 8 January 2024

History
Issue Date Notes

2021/07/16

First DESK-MX6-L release

2022/03/03

DESK-MX6-L 3.0.0 release
2023/04/11 DESK-MX6-L 4.0.0 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 AXELLite SOM:

From imx6qdl-sbcx-revb-common.dtsi:

&pcie {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pci_axel_sbc>;
    reset-gpio = <&gpio5 27 0>;
    wake-up-gpio = <&gpio5 20 0>;
    disable-gpio = <&gpio5 26 0>;
    status = "okay";
};

From imx6qdl-axelcommon.dtsi:


&iomuxc {
...
...
    pcie {
        pinctrl_pci_axel_sbc: pci_grp-1 {
            fsl,pins = <
                MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20     0x1b0b0 /* PCIE_WAKE_B */
                MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27        0x1b0b0 /* PCIE_RST_B */
                MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26        0x1b0b0 /* PCIE_DIS_B */
            >;
        };
    };
...
...
};

Accessing the peripheral[edit | edit source]

Linux messages at boot time[edit | edit source]

PCIe driver initialized:

...
...
[    0.158611] PCI: CLS 0 bytes, default 64
[    0.265640] imx6q-pcie 1ffc000.pcie: supply epdev_on not found, using dummy regulator
[    0.306554] imx6q-pcie 1ffc000.pcie: iATU unroll: disabled
[    0.306566] imx6q-pcie 1ffc000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[    0.306592] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[    0.306654] imx6q-pcie 1ffc000.pcie:       IO 0x0001f80000..0x0001f8ffff -> 0x0000000000
[    0.306685] imx6q-pcie 1ffc000.pcie:      MEM 0x0001000000..0x0001efffff -> 0x0001000000
[    0.306809] imx6q-pcie 1ffc000.pcie: iATU unroll: disabled
[    0.306819] imx6q-pcie 1ffc000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[    0.405002] imx6q-pcie 1ffc000.pcie: Link up
[    0.405013] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled
[    0.405022] imx6q-pcie 1ffc000.pcie: Link up, Gen1
[    0.528786] imx6q-pcie 1ffc000.pcie: Link up
[    0.528968] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
...
...
[    3.472568] 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]