Skip to content

Commit

Permalink
arm64: dts: ti: k3-am65: Enable PCIe nodes at the board level
Browse files Browse the repository at this point in the history
PCIe nodes defined in the top-level AM65x SoC dtsi files are incomplete
and will not be functional unless they are extended with a SerDes PHY.
And usually only one of the two modes can be used at a time as they
share a SerDes link.

As the PHY and mode is only known at the board integration level, these
nodes should only be enabled when provided with this information.

Disable the PCIe nodes in the dtsi files and only enable the ones that
are actually pinned out on a given board.

Signed-off-by: Andrew Davis <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
Tested-by: Jan Kiszka <[email protected]>
Reviewed-by: Bryan Brattlof <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
glneo authored and nmenon committed Nov 4, 2022
1 parent b08bf4a commit 7ff8432
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
13 changes: 1 addition & 12 deletions arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,8 @@
};
};

&pcie0_rc {
status = "disabled";
};

&pcie0_ep {
status = "disabled";
};

&pcie1_rc {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&minipcie_pins_default>;

Expand All @@ -650,10 +643,6 @@
reset-gpios = <&wkup_gpio0 27 GPIO_ACTIVE_HIGH>;
};

&pcie1_ep {
status = "disabled";
};

&mailbox0_cluster0 {
interrupts = <436>;

Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am65-main.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@
interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
msi-map = <0x0 &gic_its 0x0 0x10000>;
device_type = "pci";
status = "disabled";
};

pcie0_ep: pcie-ep@5500000 {
Expand All @@ -733,6 +734,7 @@
max-link-speed = <2>;
dma-coherent;
interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
status = "disabled";
};

pcie1_rc: pcie@5600000 {
Expand All @@ -753,6 +755,7 @@
interrupts = <GIC_SPI 355 IRQ_TYPE_EDGE_RISING>;
msi-map = <0x0 &gic_its 0x10000 0x10000>;
device_type = "pci";
status = "disabled";
};

pcie1_ep: pcie-ep@5600000 {
Expand All @@ -766,6 +769,7 @@
max-link-speed = <2>;
dma-coherent;
interrupts = <GIC_SPI 355 IRQ_TYPE_EDGE_RISING>;
status = "disabled";
};

mcasp0: mcasp@2b00000 {
Expand Down
16 changes: 0 additions & 16 deletions arch/arm64/boot/dts/ti/k3-am654-base-board.dts
Original file line number Diff line number Diff line change
Expand Up @@ -415,22 +415,6 @@
status = "disabled";
};

&pcie0_rc {
status = "disabled";
};

&pcie0_ep {
status = "disabled";
};

&pcie1_rc {
status = "disabled";
};

&pcie1_ep {
status = "disabled";
};

&mailbox0_cluster0 {
interrupts = <436>;

Expand Down

0 comments on commit 7ff8432

Please sign in to comment.