Re: [net-next v3 3/3] net: phy: motorcomm: Add YT8522 100M RMII PHY support
From: Paolo Abeni
Date: Tue May 12 2026 - 05:16:49 EST
On 5/8/26 11:45 AM, Minda Chen wrote:
> Add YT8522 100M RMII ethernet PHY base driver support, including
> PHY ID and base config init function.
>
> Signed-off-by: Minda Chen <minda.chen@xxxxxxxxxxxxxxxx>
> ---
> drivers/net/phy/motorcomm.c | 49 ++++++++++++++++++++++++++++++++++++-
> 1 file changed, 48 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
> index ebc24f51e626..13d57aba5487 100644
> --- a/drivers/net/phy/motorcomm.c
> +++ b/drivers/net/phy/motorcomm.c
> @@ -1,6 +1,6 @@
> // SPDX-License-Identifier: GPL-2.0+
> /*
> - * Motorcomm 8511/8521/8531/8531S/8821 PHY driver.
> + * Motorcomm 8511/8521/8522/8531/8531S/8821 PHY driver.
> *
> * Author: Peter Geis <pgwipeout@xxxxxxxxx>
> * Author: Frank <Frank.Sae@xxxxxxxxxxxxxx>
> @@ -14,6 +14,7 @@
>
> #define PHY_ID_YT8511 0x0000010a
> #define PHY_ID_YT8521 0x0000011a
> +#define PHY_ID_YT8522 0x4f51e928
> #define PHY_ID_YT8531 0x4f51e91b
> #define PHY_ID_YT8531S 0x4f51e91a
> #define PHY_ID_YT8821 0x4f51ea19
> @@ -227,6 +228,13 @@
> #define YT8521_LED_100_ON_EN BIT(5)
> #define YT8521_LED_10_ON_EN BIT(4)
>
> +#define YT8522_EXTREG_SLEEP_CONTROL 0x2027
> +#define YT8522_EN_SLEEP_SW 15
Sashiko noted that the above value looks unusual/inconsistent with other
register dedinition. Should it be:
BIT(15)
instead?
Otherwise using GENMASK() would possibly be more clear.
/P