net: phy: dp83826: support configuring RMII master/slave operation mode
authorJérémie Dautheribes <jeremie.dautheribes@bootlin.com>
Thu, 22 Feb 2024 10:31:17 +0000 (11:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2024 11:38:44 +0000 (11:38 +0000)
commit2844a0d7cffe0567d1d3d18be227542bd1f15d2e
tree6906d8e4abe80ffc382ae116badc7c9f9c3a8bc0
parentd2ed0774b6334ce3986c5efb17ab9c4095b8d969
net: phy: dp83826: support configuring RMII master/slave operation mode

The TI DP83826 PHY can operate between two RMII modes:
- master mode (PHY operates from a 25MHz clock reference)
        - slave mode (PHY operates from a 50MHz clock reference)

By default, the operation mode is configured by hardware straps.

Add support to configure the operation mode from within the driver.

Signed-off-by: Jérémie Dautheribes <jeremie.dautheribes@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83822.c