[PATCH v3 2/2] phy: rockchip: snps-pcie3: Load updated PHY firmware on RK3568

Manivannan Sadhasivam manivannan.sadhasivam at oss.qualcomm.com
Sun Nov 15 11:47:55 PST 2026


On 2026-11-02 09:52 +0800, Shawn Lin wrote:
> The RK3568 PCIe3 PHY can load an updated firmware into its internal
> SRAM during initialization. Without it the PHY may come up with a stale
> microcode and fail to establish a stable link.
> 
> Load the firmware named by the optional firmware-name DT property during
> probe, so that it is available in the phy_init() context and is not read
> from the filesystem on every init. During initialization, clear SDRAM
> load done and bypass, wait for the SRAM to lock, map the SRAM into the
> register window, write the firmware and finally signal SDRAM load done.
> 
> The firmware is optional: when firmware-name is absent (older DTBs) or
> the file cannot be loaded, the driver keeps the behaviour unchanged and
> uses the microcode already present in the PHY.
> 
> Signed-off-by: Shawn Lin <shawn.lin at rock-chips.com>

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam at oss.qualcomm.com>

- Mani





More information about the Linux-rockchip mailing list