From: Daniel Golle Date: Mon, 3 Nov 2025 12:19:47 +0000 (+0000) Subject: net: dsa: lantiq_gswip: add vendor property to setup MII refclk output X-Git-Tag: v6.19-rc1~170^2~220^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=319fd7e9d446bb90469a82f876e78785f6da0bc5;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Alexander Sverdlin Tested-by: Alexander Sverdlin Link: https://patch.msgid.link/947d14970f74f760e4a60c777aabee64e7e4f356.1762170107.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/dsa/lantiq/lantiq_gswip_common.c b/drivers/net/dsa/lantiq/lantiq_gswip_common.c index fdfc265b4c737..7b3debd45b916 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: