Commit 3e21ec28 authored by Andrew Davis's avatar Andrew Davis Committed by Nishanth Menon

arm64: dts: ti: k3-am64: Enable PCIe nodes at the board level

PCIe nodes defined in the top-level AM64x 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: default avatarAndrew Davis <afd@ti.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Reviewed-by: default avatarBryan Brattlof <bb@ti.com>
Acked-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20221017192532.23825-7-afd@ti.com
parent dcac8eaa
...@@ -871,6 +871,7 @@ pcie0_rc: pcie@f102000 { ...@@ -871,6 +871,7 @@ pcie0_rc: pcie@f102000 {
ranges = <0x01000000 0x00 0x68001000 0x00 0x68001000 0x00 0x0010000>, ranges = <0x01000000 0x00 0x68001000 0x00 0x68001000 0x00 0x0010000>,
<0x02000000 0x00 0x68011000 0x00 0x68011000 0x00 0x7fef000>; <0x02000000 0x00 0x68011000 0x00 0x68011000 0x00 0x7fef000>;
dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x00000010 0x0>; dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x00000010 0x0>;
status = "disabled";
}; };
pcie0_ep: pcie-ep@f102000 { pcie0_ep: pcie-ep@f102000 {
...@@ -889,6 +890,7 @@ pcie0_ep: pcie-ep@f102000 { ...@@ -889,6 +890,7 @@ pcie0_ep: pcie-ep@f102000 {
clocks = <&k3_clks 114 0>; clocks = <&k3_clks 114 0>;
clock-names = "fck"; clock-names = "fck";
max-functions = /bits/ 8 <1>; max-functions = /bits/ 8 <1>;
status = "disabled";
}; };
epwm0: pwm@23000000 { epwm0: pwm@23000000 {
......
...@@ -553,6 +553,7 @@ serdes0_pcie_link: phy@0 { ...@@ -553,6 +553,7 @@ serdes0_pcie_link: phy@0 {
}; };
&pcie0_rc { &pcie0_rc {
status = "okay";
reset-gpios = <&exp1 5 GPIO_ACTIVE_HIGH>; reset-gpios = <&exp1 5 GPIO_ACTIVE_HIGH>;
phys = <&serdes0_pcie_link>; phys = <&serdes0_pcie_link>;
phy-names = "pcie-phy"; phy-names = "pcie-phy";
...@@ -563,7 +564,6 @@ &pcie0_ep { ...@@ -563,7 +564,6 @@ &pcie0_ep {
phys = <&serdes0_pcie_link>; phys = <&serdes0_pcie_link>;
phy-names = "pcie-phy"; phy-names = "pcie-phy";
num-lanes = <1>; num-lanes = <1>;
status = "disabled";
}; };
&ecap0 { &ecap0 {
......
...@@ -557,14 +557,6 @@ &main_r5fss1_core1 { ...@@ -557,14 +557,6 @@ &main_r5fss1_core1 {
<&main_r5fss1_core1_memory_region>; <&main_r5fss1_core1_memory_region>;
}; };
&pcie0_rc {
status = "disabled";
};
&pcie0_ep {
status = "disabled";
};
&ecap0 { &ecap0 {
status = "okay"; status = "okay";
/* PWM is available on Pin 1 of header J3 */ /* PWM is available on Pin 1 of header J3 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment