Skip to content

Commit d7d9203

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: stmmac: rk: rk3528: gmac0 only supports RMII
RK3528 gmac0 dtsi contains: gmac0: ethernet@ffbd0000 { phy-handle = <&rmii0_phy>; phy-mode = "rmii"; mdio0: mdio { rmii0_phy: ethernet-phy@2 { phy-is-integrated; }; }; }; This follows the same pattern as rk3328, where this gmac instance only supports RMII. Disable RGMII in phylink's supported_interfaces mask for this gmac instance. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Link: https://patch.msgid.link/E1vnYy1-00000007hp3-0hKm@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f365541 commit d7d9203

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ static int rk3528_init(struct rk_priv_data *bsp_priv)
728728
case 0:
729729
bsp_priv->clock_grf_reg = RK3528_VO_GRF_GMAC_CON;
730730
bsp_priv->clock.rmii_clk_sel_mask = BIT_U16(3);
731+
bsp_priv->supports_rgmii = false;
731732
return 0;
732733

733734
case 1:

0 commit comments

Comments
 (0)