Skip to content

Commit ce4f8c0

Browse files
Pull request #1849: Kernel: PCIe: PCIe_End_Point: Document device-tree overlays for SDK 10.x
Merge in PROCESSOR-SDK/processor-sdk-doc from ~A0492258/siddharth-processor-sdk-doc:10-0-pcie-ep-overlays to master * commit 'bd1da0eeaaa02a232780b28fc6131d20e283f603': Kernel: PCIe: PCIe_End_Point: Document device-tree overlays for SDK 10.x
2 parents 1100218 + bd1da0e commit ce4f8c0

File tree

1 file changed

+20
-82
lines changed

1 file changed

+20
-82
lines changed

source/linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_End_Point.rst

Lines changed: 20 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -347,90 +347,28 @@ file.
347347

348348
.. ifconfig:: CONFIG_part_family in ('J7_family')
349349

350-
.. rubric:: **6.x SDK (4.19 Kernel)**
350+
.. rubric:: **10.x SDK (6.6 Kernel)**
351+
352+
To enable EP mode of operation, device-tree overlays need to be applied
353+
at U-Boot.
354+
355+
+-----------+-------------------------------------------------+
356+
| SoC | Overlay file to use |
357+
+===========+=================================================+
358+
| J721E | :file:`k3-j721e-evm-pcie0-ep.dtbo` |
359+
+-----------+-------------------------------------------------+
360+
| J7200 | :file:`k3-j7200-evm-pcie1-ep.dtbo` |
361+
+-----------+-------------------------------------------------+
362+
| J721S2 | :file:`k3-j721s2-evm-pcie1-ep.dtbo` |
363+
+-----------+-------------------------------------------------+
364+
| J784S4 | :file:`k3-j784s4-evm-pcie0-pcie1-ep.dtbo` |
365+
+-----------+-------------------------------------------------+
351366

352-
To configure Beta J721E EVM in EP mode, apply the following patch:
353-
354-
::
355-
356-
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
357-
index 57d72aa945b7..3384dd6063c2 100644
358-
--- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
359-
+++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
360-
@@ -734,7 +734,7 @@
361-
};
362-
363-
&pcie0 {
364-
- pci-mode = <PCI_MODE_RC>;
365-
+ pci-mode = <PCI_MODE_EP>;
366-
num-lanes = <1>;
367-
};
368-
369-
@@ -754,6 +754,11 @@
370-
phy-names = "pcie_phy";
371-
};
372-
373-
+&pcie0_ep {
374-
+ phys = <&serdes0_pcie_link>;
375-
+ phy-names = "pcie_phy";
376-
+};
377-
+
378-
&pcie1_rc {
379-
reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
380-
phys = <&serdes1_pcie_link>;
381-
382-
To configure Alpha J721E EVM in EP mode, apply the following patch:
383-
384-
::
385-
386-
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-proc-board-tps65917.dts b/arch/arm64/boot/dts/ti/k3-j721e-proc-board-tps65917.dts
387-
index b9fece8d267c..d50f764c6642 100644
388-
--- a/arch/arm64/boot/dts/ti/k3-j721e-proc-board-tps65917.dts
389-
+++ b/arch/arm64/boot/dts/ti/k3-j721e-proc-board-tps65917.dts
390-
@@ -769,7 +769,7 @@
391-
};
392-
393-
&pcie0 {
394-
- pci-mode = <PCI_MODE_RC>;
395-
+ pci-mode = <PCI_MODE_EP>;
396-
num-lanes = <1>;
397-
};
398-
399-
@@ -789,6 +789,11 @@
400-
phy-names = "pcie_phy";
401-
};
402-
403-
+&pcie0_ep {
404-
+ phys = <&serdes0_pcie_link>;
405-
+ phy-names = "pcie_phy";
406-
+};
407-
+
408-
&pcie1_rc {
409-
reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
410-
phys = <&serdes1_pcie_link>;
411-
412-
.. rubric:: **7.x SDK (5.4 Kernel)**
413-
414-
To configure J721E EVM in EP mode, apply the following patch:
415-
416-
::
367+
.. note::
417368

418-
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
419-
index 6788a3611..b7cd6c7b6 100644
420-
--- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
421-
+++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
422-
@@ -813,6 +813,7 @@
423-
phys = <&serdes0_pcie_link>;
424-
phy-names = "pcie_phy";
425-
num-lanes = <1>;
426-
+ status = "disabled";
427-
}; &pcie1_rc {
428-
@@ -833,7 +834,6 @@
429-
phys = <&serdes0_pcie_link>;
430-
phy-names = "pcie_phy";
431-
num-lanes = <1>;
432-
- status = "disabled";
433-
}; &pcie1_ep {
369+
| To apply an overlay at U-Boot save the following command in the :file:`uEnv.txt` file:
370+
| **name_overlays="ti/<overlay-file-name>"**
371+
| where <overlay-file-name> is the corresponding overlay file from the table above.
434372
435373
.. ifconfig:: CONFIG_part_family in ('AM64X_family')
436374

0 commit comments

Comments
 (0)