devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/3] net: axienet: Use a DT property to configure frequency of the MDIO bus
@ 2022-11-04  6:03 Andy Chiu
  2022-11-04  6:03 ` [PATCH v3 net-next 1/3] net: axienet: Unexport and remove unused mdio functions Andy Chiu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andy Chiu @ 2022-11-04  6:03 UTC (permalink / raw)
  To: davem, andrew, kuba, michal.simek, radhey.shyam.pandey
  Cc: netdev, devicetree, linux-arm-kernel, robh+dt, pabeni, edumazet,
	andy.chiu, greentime.hu

Some FPGA platforms have to set frequency of the MDIO bus lower than 2.5
MHz. Thus, we use a DT property, which is "clock-frequency", to work
with it at boot time. The default 2.5 MHz would be set if the property
is not pressent. Also, factor out mdio enable/disable functions due to
the api change since 253761a0e61b7.

Changelog:
--- v3 ---
1. Fix coding style, and make probing of the driver fail if MDC overflow
--- v2 ---
1. Use clock-frequency, as defined in mdio.yaml, to configure MDIO
   clock.
2. Only print out frequency if it is set to a non-standard value.
3. Reduce the scope of axienet_mdio_enable and remove
   axienet_mdio_disable because no one really uses it anymore.

Andy Chiu (3):
  net: axienet: Unexport and remove unused mdio functions
  net: axienet: set mdio clock according to bus-frequency
  dt-bindings: describe the support of "clock-frequency" in mdio

 .../bindings/net/xilinx_axienet.txt           |  2 +
 drivers/net/ethernet/xilinx/xilinx_axienet.h  |  2 -
 .../net/ethernet/xilinx/xilinx_axienet_mdio.c | 57 +++++++++++--------
 3 files changed, 34 insertions(+), 27 deletions(-)

-- 
2.36.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-14 14:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-04  6:03 [PATCH v3 net-next 0/3] net: axienet: Use a DT property to configure frequency of the MDIO bus Andy Chiu
2022-11-04  6:03 ` [PATCH v3 net-next 1/3] net: axienet: Unexport and remove unused mdio functions Andy Chiu
2022-11-04  6:03 ` [PATCH v3 net-next 2/3] net: axienet: set mdio clock according to bus-frequency Andy Chiu
2022-11-04  6:03 ` [PATCH v3 net-next 3/3] dt-bindings: describe the support of "clock-frequency" in mdio Andy Chiu
2022-11-09  1:02 ` [PATCH v3 net-next 0/3] net: axienet: Use a DT property to configure frequency of the MDIO bus Jakub Kicinski
2022-11-14 14:44   ` Andy Chiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).