diff options
| author | Daniel Golle <daniel@makrotopia.org> | 2025-11-03 12:19:47 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-06 14:16:17 -0800 |
| commit | 319fd7e9d446bb90469a82f876e78785f6da0bc5 (patch) | |
| tree | 5ca7564f404251c239cbbfba8bbce33efc5b41aa | |
| parent | e836824116b5644eb681777cd58cba915f4cbe75 (diff) | |
| download | linux-319fd7e9d446bb90469a82f876e78785f6da0bc5.tar.gz linux-319fd7e9d446bb90469a82f876e78785f6da0bc5.zip | |
net: dsa: lantiq_gswip: add vendor property to setup MII refclk output
Read boolean Device Tree property "maxlinear,rmii-refclk-out" and switch
the RMII reference clock to be a clock output rather than an input if it
is set.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://patch.msgid.link/947d14970f74f760e4a60c777aabee64e7e4f356.1762170107.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
| -rw-r--r-- | drivers/net/dsa/lantiq/lantiq_gswip_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/lantiq/lantiq_gswip_common.c b/drivers/net/dsa/lantiq/lantiq_gswip_common.c index fdfc265b4c73..7b3debd45b91 100644 --- a/drivers/net/dsa/lantiq/lantiq_gswip_common.c +++ b/drivers/net/dsa/lantiq/lantiq_gswip_common.c @@ -1402,6 +1402,8 @@ static void gswip_phylink_mac_config(struct phylink_config *config, break; case PHY_INTERFACE_MODE_RMII: miicfg |= GSWIP_MII_CFG_MODE_RMIIM; + if (of_property_read_bool(dp->dn, "maxlinear,rmii-refclk-out")) + miicfg |= GSWIP_MII_CFG_RMII_CLK; break; case PHY_INTERFACE_MODE_RGMII: case PHY_INTERFACE_MODE_RGMII_ID: |
