162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_cimenuconfig NET_DSA_REALTEK
362306a36Sopenharmony_ci	tristate "Realtek Ethernet switch family support"
462306a36Sopenharmony_ci	depends on NET_DSA
562306a36Sopenharmony_ci	select FIXED_PHY
662306a36Sopenharmony_ci	select IRQ_DOMAIN
762306a36Sopenharmony_ci	select REALTEK_PHY
862306a36Sopenharmony_ci	select REGMAP
962306a36Sopenharmony_ci	help
1062306a36Sopenharmony_ci	  Select to enable support for Realtek Ethernet switch chips.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci	  Note that at least one interface driver must be enabled for the
1362306a36Sopenharmony_ci	  subdrivers to be loaded. Moreover, an interface driver cannot achieve
1462306a36Sopenharmony_ci	  anything without at least one subdriver enabled.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciif NET_DSA_REALTEK
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciconfig NET_DSA_REALTEK_MDIO
1962306a36Sopenharmony_ci	tristate "Realtek MDIO interface driver"
2062306a36Sopenharmony_ci	depends on OF
2162306a36Sopenharmony_ci	depends on NET_DSA_REALTEK_RTL8365MB || NET_DSA_REALTEK_RTL8366RB
2262306a36Sopenharmony_ci	depends on NET_DSA_REALTEK_RTL8365MB || !NET_DSA_REALTEK_RTL8365MB
2362306a36Sopenharmony_ci	depends on NET_DSA_REALTEK_RTL8366RB || !NET_DSA_REALTEK_RTL8366RB
2462306a36Sopenharmony_ci	help
2562306a36Sopenharmony_ci	  Select to enable support for registering switches configured
2662306a36Sopenharmony_ci	  through MDIO.
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig NET_DSA_REALTEK_SMI
2962306a36Sopenharmony_ci	tristate "Realtek SMI interface driver"
3062306a36Sopenharmony_ci	depends on OF
3162306a36Sopenharmony_ci	depends on NET_DSA_REALTEK_RTL8365MB || NET_DSA_REALTEK_RTL8366RB
3262306a36Sopenharmony_ci	depends on NET_DSA_REALTEK_RTL8365MB || !NET_DSA_REALTEK_RTL8365MB
3362306a36Sopenharmony_ci	depends on NET_DSA_REALTEK_RTL8366RB || !NET_DSA_REALTEK_RTL8366RB
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	  Select to enable support for registering switches connected
3662306a36Sopenharmony_ci	  through SMI.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig NET_DSA_REALTEK_RTL8365MB
3962306a36Sopenharmony_ci	tristate "Realtek RTL8365MB switch subdriver"
4062306a36Sopenharmony_ci	imply NET_DSA_REALTEK_SMI
4162306a36Sopenharmony_ci	imply NET_DSA_REALTEK_MDIO
4262306a36Sopenharmony_ci	select NET_DSA_TAG_RTL8_4
4362306a36Sopenharmony_ci	help
4462306a36Sopenharmony_ci	  Select to enable support for Realtek RTL8365MB-VC and RTL8367S.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciconfig NET_DSA_REALTEK_RTL8366RB
4762306a36Sopenharmony_ci	tristate "Realtek RTL8366RB switch subdriver"
4862306a36Sopenharmony_ci	imply NET_DSA_REALTEK_SMI
4962306a36Sopenharmony_ci	imply NET_DSA_REALTEK_MDIO
5062306a36Sopenharmony_ci	select NET_DSA_TAG_RTL4_A
5162306a36Sopenharmony_ci	help
5262306a36Sopenharmony_ci	  Select to enable support for Realtek RTL8366RB.
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciendif
55