]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: phy: Add support for PHY timing-role configuration via device tree
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 4 Oct 2024 09:01:00 +0000 (11:01 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Oct 2024 08:50:15 +0000 (10:50 +0200)
commit20a4da20e0bd0297bf1ce083362e78b6702f991e
treefa581e8377b86525827e8f10c22412a1c49a267d
parent31a9ce20fa8de604d61c3c341532717cdaf297a0
net: phy: Add support for PHY timing-role configuration via device tree

Introduce support for configuring the master/slave role of PHYs based on
the `timing-role` property in the device tree. While this functionality
is necessary for Single Pair Ethernet (SPE) PHYs (1000/100/10Base-T1)
where hardware strap pins may be unavailable or incorrectly set, it
works for any PHY type.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Divya Koppera <divya.koppera@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phy-core.c
drivers/net/phy/phy_device.c
include/linux/phy.h