mediatek: bpi-r4: add support for 2.5GE PoE variant
[openwrt/staging/nbd.git] / target / linux / mediatek / files-6.6 / drivers / net / phy / mediatek-2p5ge.c
index e2e06d1ecac8cf359c50689ee5b2c29b414aa93a..d1d01190ede2b2c5be27792d0d3f06cb8fbf4253 100644 (file)
@@ -137,6 +137,11 @@ static int mt7988_2p5ge_phy_config_init(struct phy_device *phydev)
        }
 
        /* Setup LED */
+
+       /* Set polarity of led0 to active-high for BPI-R4 */
+       phy_set_bits_mmd(phydev, MDIO_MMD_VEND2, MTK_PHY_LED0_ON_CTRL,
+                        MTK_PHY_LED0_POLARITY);
+
        phy_set_bits_mmd(phydev, MDIO_MMD_VEND2, MTK_PHY_LED0_ON_CTRL,
                         MTK_PHY_LED0_ON_LINK10 |
                         MTK_PHY_LED0_ON_LINK100 |