u-boot/drivers/net/ti/Kconfig
Maxime Ripard 9b33be392b net: ti: am65-cpsw-nuss: Enforce pinctrl state on the MDIO child node
The binding represents the MDIO controller as a child device tree
node of the MAC device tree node.

The U-Boot driver mostly ignores that child device tree node and just
hardcodes the resources it uses to support both the MAC and MDIO in a
single driver.

However, some resources like pinctrl muxing states are thus ignored.
This has been a problem with some device trees that will put some
pinctrl states on the MDIO device tree node, like the SK-AM62 Device
Tree does.

Let's rework the driver a bit to create a dummy MDIO driver that we will
then get during our initialization to force the core to select the right
muxing.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Acked-by: Roger Quadros <rogerq@kernel.org>
Acked-by: Nishanth Menon <nm@ti.com>
2023-07-27 17:10:46 -04:00

50 lines
1.1 KiB
Text

# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
config DRIVER_TI_CPSW
bool "TI Common Platform Ethernet Switch"
select PHYLIB
help
This driver supports the TI three port switch gigabit ethernet
subsystem found in the TI SoCs.
config DRIVER_TI_EMAC
bool "TI Davinci EMAC"
help
Support for davinci emac
config DRIVER_TI_EMAC_USE_RMII
depends on DRIVER_TI_EMAC
bool "Use RMII"
help
Configure the TI EMAC driver to use RMII
config DRIVER_TI_KEYSTONE_NET
bool "TI Keystone 2 Ethernet"
help
This driver supports the TI Keystone 2 Ethernet subsystem
choice
prompt "TI Keystone 2 Ethernet NETCP IP revision"
depends on DRIVER_TI_KEYSTONE_NET
default KSNET_NETCP_V1_5
config KSNET_NETCP_V1_0
bool "NETCP version 1.0"
config KSNET_NETCP_V1_5
bool "NETCP version 1.5"
endchoice
config TI_AM65_CPSW_NUSS
bool "TI K3 AM65x MCU CPSW Nuss Ethernet controller driver"
depends on ARCH_K3
imply DM_MDIO
imply MISC_INIT_R
imply MISC
select PHYLIB
help
This driver supports TI K3 MCU CPSW Nuss Ethernet controller
in Texas Instruments K3 AM65x SoCs.