]> git.ipfire.org Git - thirdparty/u-boot.git/commit
phy: cadence-torrent: Add support to drive refclk out
authorGeorge McCollister <george.mccollister@konsulko.com>
Fri, 30 Jan 2026 15:38:03 +0000 (09:38 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 4 Feb 2026 16:40:28 +0000 (10:40 -0600)
commit88e3fcef7ff0ae96eb2a24affd0f074643499381
tree4b0a2274c996cbcfe32f9de0613cdd8c8ab2a717
parentd7817a20c9e59b6a534403e90417b6910bb4a7cc
phy: cadence-torrent: Add support to drive refclk out

cmn_refclk_<p/m> lines in Torrent SERDES are used for connecting an
external reference clock. cmn_refclk_<p/m> can also be configured to
output the reference clock. Model this derived reference clock as a
"clock" so that platforms like AM642 EVM can enable it.

This is used by PCIe to use the same refclk both in local SERDES
and remote device. Add support here to drive refclk out.

Based on: https://lore.kernel.org/all/20210310120840.16447-7-kishon@ti.com/

Signed-off-by: George McCollister <george.mccollister@konsulko.com>
Tested-by: Bryan Brattlof <bb@ti.com>
drivers/phy/cadence/phy-cadence-torrent.c