net: cadence: macb: Expose REFCLK as a device tree property
authorRyan Wanner <Ryan.Wanner@microchip.com>
Mon, 14 Jul 2025 16:37:00 +0000 (09:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Jul 2025 00:28:37 +0000 (17:28 -0700)
commitdce32ece3bb8f3768d04d01cbe146b7ac5ccdbde
tree8b84da9a5701c16996a6105f5474faf2bc980ec6
parent1b7531c094c880f4e5a5ad8e3c7757c2c2f90a3f
net: cadence: macb: Expose REFCLK as a device tree property

The RMII and RGMII can both support internal or external provided
REFCLKs 50MHz and 125MHz respectively. Since this is dependent on
the board that the SoC is on this needs to be set via the device tree.

This property flag is checked in the MACB DT node so the REFCLK cap is
configured the correct way for the RMII or RGMII is configured on the
board.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Link: https://patch.msgid.link/7f9b65896d6b7b48275bc527b72a16347f8ce10a.1752510727.git.Ryan.Wanner@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c