Commit 428061f7 authored by Michael Walle's avatar Michael Walle Committed by David S. Miller

net: phy: at803x: mention AR8033 as same as AR8031

The AR8033 is the AR8031 without PTP support. All other registers are
the same. Unfortunately, they share the same PHY ID. Therefore, we
cannot distinguish between the one with PTP support and the one without.
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2f664823
...@@ -442,7 +442,7 @@ config NXP_TJA11XX_PHY ...@@ -442,7 +442,7 @@ config NXP_TJA11XX_PHY
config AT803X_PHY config AT803X_PHY
tristate "Qualcomm Atheros AR803X PHYs" tristate "Qualcomm Atheros AR803X PHYs"
help help
Currently supports the AR8030, AR8031 and AR8035 model Currently supports the AR8030, AR8031, AR8033 and AR8035 model
config QSEMI_PHY config QSEMI_PHY
tristate "Quality Semiconductor PHYs" tristate "Quality Semiconductor PHYs"
......
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
#define AT803X_CLK_OUT_125MHZ_PLL 6 #define AT803X_CLK_OUT_125MHZ_PLL 6
#define AT803X_CLK_OUT_125MHZ_DSP 7 #define AT803X_CLK_OUT_125MHZ_DSP 7
/* The AR8035 has another mask which is compatible with the AR8031 mask but /* The AR8035 has another mask which is compatible with the AR8031/AR8033 mask
* doesn't support choosing between XTAL/PLL and DSP. * but doesn't support choosing between XTAL/PLL and DSP.
*/ */
#define AT8035_CLK_OUT_MASK GENMASK(4, 3) #define AT8035_CLK_OUT_MASK GENMASK(4, 3)
...@@ -449,7 +449,9 @@ static int at803x_parse_dt(struct phy_device *phydev) ...@@ -449,7 +449,9 @@ static int at803x_parse_dt(struct phy_device *phydev)
} }
} }
/* Only supported on AR8031, the AR8030/AR8035 use strapping options */ /* Only supported on AR8031/AR8033, the AR8030/AR8035 use strapping
* options.
*/
if (at803x_match_phy_id(phydev, ATH8031_PHY_ID)) { if (at803x_match_phy_id(phydev, ATH8031_PHY_ID)) {
if (of_property_read_bool(node, "qca,keep-pll-enabled")) if (of_property_read_bool(node, "qca,keep-pll-enabled"))
priv->flags |= AT803X_KEEP_PLL_ENABLED; priv->flags |= AT803X_KEEP_PLL_ENABLED;
...@@ -734,9 +736,9 @@ static struct phy_driver at803x_driver[] = { ...@@ -734,9 +736,9 @@ static struct phy_driver at803x_driver[] = {
.ack_interrupt = at803x_ack_interrupt, .ack_interrupt = at803x_ack_interrupt,
.config_intr = at803x_config_intr, .config_intr = at803x_config_intr,
}, { }, {
/* ATHEROS 8031 */ /* ATHEROS 8031/8033 */
.phy_id = ATH8031_PHY_ID, .phy_id = ATH8031_PHY_ID,
.name = "Atheros 8031 ethernet", .name = "Atheros 8031/8033 ethernet",
.phy_id_mask = AT803X_PHY_ID_MASK, .phy_id_mask = AT803X_PHY_ID_MASK,
.probe = at803x_probe, .probe = at803x_probe,
.config_init = at803x_config_init, .config_init = at803x_config_init,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment