xref: /linux/drivers/net/dsa/realtek/Kconfig (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1319a70a5SLuiz Angelo Daros de Luca# SPDX-License-Identifier: GPL-2.0-only
2319a70a5SLuiz Angelo Daros de Lucamenuconfig NET_DSA_REALTEK
3319a70a5SLuiz Angelo Daros de Luca	tristate "Realtek Ethernet switch family support"
4319a70a5SLuiz Angelo Daros de Luca	depends on NET_DSA
5319a70a5SLuiz Angelo Daros de Luca	select FIXED_PHY
6319a70a5SLuiz Angelo Daros de Luca	select IRQ_DOMAIN
7319a70a5SLuiz Angelo Daros de Luca	select REALTEK_PHY
8319a70a5SLuiz Angelo Daros de Luca	select REGMAP
9319a70a5SLuiz Angelo Daros de Luca	help
10319a70a5SLuiz Angelo Daros de Luca	  Select to enable support for Realtek Ethernet switch chips.
11319a70a5SLuiz Angelo Daros de Luca
122511e0c8SAlvin Šipraga	  Note that at least one interface driver must be enabled for the
132511e0c8SAlvin Šipraga	  subdrivers to be loaded. Moreover, an interface driver cannot achieve
142511e0c8SAlvin Šipraga	  anything without at least one subdriver enabled.
152511e0c8SAlvin Šipraga
162511e0c8SAlvin Šipragaif NET_DSA_REALTEK
172511e0c8SAlvin Šipraga
18aac94001SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_MDIO
19*98b75c1cSLuiz Angelo Daros de Luca	bool "Realtek MDIO interface support"
20109d8994SAlvin Šipraga	depends on OF
21aac94001SLuiz Angelo Daros de Luca	help
22aac94001SLuiz Angelo Daros de Luca	  Select to enable support for registering switches configured
23aac94001SLuiz Angelo Daros de Luca	  through MDIO.
24aac94001SLuiz Angelo Daros de Luca
25319a70a5SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_SMI
26*98b75c1cSLuiz Angelo Daros de Luca	bool "Realtek SMI interface support"
27109d8994SAlvin Šipraga	depends on OF
28319a70a5SLuiz Angelo Daros de Luca	help
29319a70a5SLuiz Angelo Daros de Luca	  Select to enable support for registering switches connected
30319a70a5SLuiz Angelo Daros de Luca	  through SMI.
31765c39a4SLuiz Angelo Daros de Luca
32765c39a4SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_RTL8365MB
33bce254b8SLuiz Angelo Daros de Luca	tristate "Realtek RTL8365MB switch driver"
34bce254b8SLuiz Angelo Daros de Luca	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
35765c39a4SLuiz Angelo Daros de Luca	select NET_DSA_TAG_RTL8_4
36765c39a4SLuiz Angelo Daros de Luca	help
37d40f607cSLuiz Angelo Daros de Luca	  Select to enable support for Realtek RTL8365MB-VC and RTL8367S.
38765c39a4SLuiz Angelo Daros de Luca
39765c39a4SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_RTL8366RB
40bce254b8SLuiz Angelo Daros de Luca	tristate "Realtek RTL8366RB switch driver"
41bce254b8SLuiz Angelo Daros de Luca	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
42765c39a4SLuiz Angelo Daros de Luca	select NET_DSA_TAG_RTL4_A
43765c39a4SLuiz Angelo Daros de Luca	help
442511e0c8SAlvin Šipraga	  Select to enable support for Realtek RTL8366RB.
452511e0c8SAlvin Šipraga
462511e0c8SAlvin Šipragaendif
47