Message ID | 20241118104735.3741749-3-jacky_chou@aspeedtech.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Add Aspeed G7 MDIO support | expand |
On Mon, Nov 18, 2024 at 06:47:34PM +0800, Jacky Chou wrote: > The Aspeed 7th generation SoC features three Aspeed MDIO. > The design of AST2700 MDIO controller is the same as AST2600. > Therefore, just add AST2700 compatible here. If they are "the same", you don't need to add the compatible here. You still need to add it to the binding, but make ast2600 a fallback compatible. > > Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com> > --- > drivers/net/mdio/mdio-aspeed.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c > index e55be6dc9ae7..4d5a115baf85 100644 > --- a/drivers/net/mdio/mdio-aspeed.c > +++ b/drivers/net/mdio/mdio-aspeed.c > @@ -188,6 +188,7 @@ static void aspeed_mdio_remove(struct platform_device *pdev) > > static const struct of_device_id aspeed_mdio_of_match[] = { > { .compatible = "aspeed,ast2600-mdio", }, > + { .compatible = "aspeed,ast2700-mdio", }, > { }, > }; > MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match); > -- > 2.25.1 >
diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c index e55be6dc9ae7..4d5a115baf85 100644 --- a/drivers/net/mdio/mdio-aspeed.c +++ b/drivers/net/mdio/mdio-aspeed.c @@ -188,6 +188,7 @@ static void aspeed_mdio_remove(struct platform_device *pdev) static const struct of_device_id aspeed_mdio_of_match[] = { { .compatible = "aspeed,ast2600-mdio", }, + { .compatible = "aspeed,ast2700-mdio", }, { }, }; MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match);
The Aspeed 7th generation SoC features three Aspeed MDIO. The design of AST2700 MDIO controller is the same as AST2600. Therefore, just add AST2700 compatible here. Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com> --- drivers/net/mdio/mdio-aspeed.c | 1 + 1 file changed, 1 insertion(+)