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 12*2511e0c8SAlvin Šipraga Note that at least one interface driver must be enabled for the 13*2511e0c8SAlvin Šipraga subdrivers to be loaded. Moreover, an interface driver cannot achieve 14*2511e0c8SAlvin Šipraga anything without at least one subdriver enabled. 15*2511e0c8SAlvin Šipraga 16*2511e0c8SAlvin Šipragaif NET_DSA_REALTEK 17*2511e0c8SAlvin Šipraga 18aac94001SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_MDIO 19*2511e0c8SAlvin Šipraga tristate "Realtek MDIO interface driver" 20109d8994SAlvin Šipraga depends on OF 21*2511e0c8SAlvin Šipraga depends on NET_DSA_REALTEK_RTL8365MB || NET_DSA_REALTEK_RTL8366RB 22*2511e0c8SAlvin Šipraga depends on NET_DSA_REALTEK_RTL8365MB || !NET_DSA_REALTEK_RTL8365MB 23*2511e0c8SAlvin Šipraga depends on NET_DSA_REALTEK_RTL8366RB || !NET_DSA_REALTEK_RTL8366RB 24aac94001SLuiz Angelo Daros de Luca help 25aac94001SLuiz Angelo Daros de Luca Select to enable support for registering switches configured 26aac94001SLuiz Angelo Daros de Luca through MDIO. 27aac94001SLuiz Angelo Daros de Luca 28319a70a5SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_SMI 29*2511e0c8SAlvin Šipraga tristate "Realtek SMI interface driver" 30109d8994SAlvin Šipraga depends on OF 31*2511e0c8SAlvin Šipraga depends on NET_DSA_REALTEK_RTL8365MB || NET_DSA_REALTEK_RTL8366RB 32*2511e0c8SAlvin Šipraga depends on NET_DSA_REALTEK_RTL8365MB || !NET_DSA_REALTEK_RTL8365MB 33*2511e0c8SAlvin Šipraga depends on NET_DSA_REALTEK_RTL8366RB || !NET_DSA_REALTEK_RTL8366RB 34319a70a5SLuiz Angelo Daros de Luca help 35319a70a5SLuiz Angelo Daros de Luca Select to enable support for registering switches connected 36319a70a5SLuiz Angelo Daros de Luca through SMI. 37765c39a4SLuiz Angelo Daros de Luca 38765c39a4SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_RTL8365MB 39765c39a4SLuiz Angelo Daros de Luca tristate "Realtek RTL8365MB switch subdriver" 40*2511e0c8SAlvin Šipraga imply NET_DSA_REALTEK_SMI 41*2511e0c8SAlvin Šipraga imply NET_DSA_REALTEK_MDIO 42765c39a4SLuiz Angelo Daros de Luca select NET_DSA_TAG_RTL8_4 43765c39a4SLuiz Angelo Daros de Luca help 44d40f607cSLuiz Angelo Daros de Luca Select to enable support for Realtek RTL8365MB-VC and RTL8367S. 45765c39a4SLuiz Angelo Daros de Luca 46765c39a4SLuiz Angelo Daros de Lucaconfig NET_DSA_REALTEK_RTL8366RB 47765c39a4SLuiz Angelo Daros de Luca tristate "Realtek RTL8366RB switch subdriver" 48*2511e0c8SAlvin Šipraga imply NET_DSA_REALTEK_SMI 49*2511e0c8SAlvin Šipraga imply NET_DSA_REALTEK_MDIO 50765c39a4SLuiz Angelo Daros de Luca select NET_DSA_TAG_RTL4_A 51765c39a4SLuiz Angelo Daros de Luca help 52*2511e0c8SAlvin Šipraga Select to enable support for Realtek RTL8366RB. 53*2511e0c8SAlvin Šipraga 54*2511e0c8SAlvin Šipragaendif 55