[PATCH v2 0/4] PHY: Add support to output derived and received reference clock from Torrent

Swapnil Jakhade
2021-09-22T12:38:08Z

This patch series updates reference clock driver implementation for Torrent
by adding support to output derived as well as received reference clock.
When reference clock driver is enabled, either derived or received refclk
is output on cmn_refclk_p/m.

In derived reference clock mode, cmn_refclk_p/m outputs the refclk derived
from internal PLLs while when received refclk is selected to output on
cmn_refclk_p/m, this is the internal reference clock driven on the
pma_cmn_refclk_int.

Version History:

v2:
- Removed patch 5/5 in v1 amd merged its changes to v2 3/4 and 4/4 to
keep TI AM64 functional and to not affect git bisectability.
- Added reason to move to clk_hw based API in patch 1/4.
- Added Acked-by from Rob to 2/4.

Swapnil Jakhade (4):
phy: cadence-torrent: Migrate to clk_hw based registration and OF APIs
dt-bindings: phy: cadence-torrent: Add clock IDs for derived and
received refclk
phy: cadence-torrent: Model reference clock driver as a clock to
enable derived refclk
phy: cadence-torrent: Add support to output received reference clock

drivers/phy/cadence/phy-cadence-torrent.c | 316 +++++++++++++++++++---
include/dt-bindings/phy/phy-cadence.h | 2 +
2 files changed, 286 insertions(+), 32 deletions(-)