arm64: dts: imx8mp: Switch PCIe to HSIO PLL on i.MX8MP DHCOM PDK2 and generate clock...
authorMarek Vasut <marex@denx.de>
Tue, 22 Aug 2023 00:50:07 +0000 (02:50 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 00:38:40 +0000 (08:38 +0800)
The PDK2 carrier board had to be manually patched to obtain working PCIe
with the i.MX8MP DHCOM SoM so far, because the PCIe clock generator has
not been connected to the PCIe block REF_PAD_CLK inputs.

Switch to use of HSIO PLL as the clock source for the PCIe block instead,
and use the REF_PAD_CLK as outputs to generate PCIe clock from the SoC.
This way, it is not necessary to patch the PDK2 in any way to obtain a
working PCIe.

Note that PDK3 has PCIe clock generator always connected to REF_PAD_CLK
and is not affected.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk2.dts

index e9fb5f7..3b1c940 100644 (file)
 
 &pcie_phy {
        clock-names = "ref";
-       clocks = <&clk IMX8MP_SYS_PLL2_100M>;
+       clocks = <&hsio_blk_ctrl>;
        fsl,clkreq-unsupported;
-       fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_UNUSED>;
+       fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_OUTPUT>;
        status = "okay";
 };