arm64: dts: ti: k3-j7200: Enable PCIe nodes at the board level
authorAndrew Davis <afd@ti.com>
Wed, 24 Jan 2024 18:36:56 +0000 (12:36 -0600)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 5 Feb 2024 13:55:57 +0000 (19:25 +0530)
PCIe node defined in the top-level J7200 SoC dtsi file is incomplete
and will not be functional unless it is extended with a SerDes PHY.

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

Disable the PCIe node in the dtsi files and only enable when it is
actually pinned out on a given board.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240124183659.149119-1-afd@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi

index cee2b4b0eb87dafc6f9f42f0d63ff62478ce3c92..7e4fd7ab9750c97547afe09a04d42d0ca417c0de 100644 (file)
 };
 
 &pcie1_rc {
+       status = "okay";
        reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
        phys = <&serdes0_pcie_link>;
        phy-names = "pcie-phy";
index da67bf8fe703ebcbc574f114396a710abbda4999..1e2434caa7ffa2680eec0f91aebd3f05a1b0e60c 100644 (file)
                ranges = <0x01000000 0x0 0x18001000  0x00 0x18001000  0x0 0x0010000>,
                         <0x02000000 0x0 0x18011000  0x00 0x18011000  0x0 0x7fef000>;
                dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>;
+               status = "disabled";
        };
 
        pcie1_ep: pcie-ep@2910000 {