net: phy: mediatek: add Airoha PHY ID to SoC driver
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 10 Apr 2025 10:04:04 +0000 (12:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Apr 2025 03:18:31 +0000 (20:18 -0700)
commit6a325aed130bb68790e765f923e76ec5669d2da7
treec2ab7dc856855c4cb4703c4932cabc9e0ab1548b
parente5566162af8b9690e096d2e6089e4ed955a0d13d
net: phy: mediatek: add Airoha PHY ID to SoC driver

Airoha AN7581 SoC ship with a Switch based on the MT753x Switch embedded
in other SoC like the MT7581 and the MT7988. Similar to these they
require configuring some pin to enable LED PHYs.

Add support for the PHY ID for the Airoha embedded Switch and define a
simple probe function to toggle these pins. Also fill the LED functions
and add dedicated function to define LED polarity.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://patch.msgid.link/20250410100410.348-2-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mediatek/Kconfig
drivers/net/phy/mediatek/mtk-ge-soc.c