net: phy: adin: add support for clock output
authorJosua Mayer <josua@solid-run.com>
Tue, 17 May 2022 08:54:30 +0000 (11:54 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 May 2022 02:58:25 +0000 (19:58 -0700)
commitce3342161edcb9ccac60ed6964652d37de8788c8
treee2f894e131a186fd75e41891c5059cb55bcbfdae
parent1f77204e11f8b9e5d77d65197a03b702c50ea29b
net: phy: adin: add support for clock output

The ADIN1300 supports generating certain clocks on its GP_CLK pin, as
well as providing the reference clock on CLK25_REF.

Add support for selecting the clock via device-tree properties.

Technically the phy also supports a recovered 125MHz clock for
synchronous ethernet. SyncE should be configured dynamically at
runtime, however Linux does not currently have a toggle for this,
so support is explicitly omitted.

Co-developed-by: Alvaro Karsz <alvaro.karsz@solid-run.com>
Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com>
Signed-off-by: Josua Mayer<josua@solid-run.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/adin.c