arm64: dts: ti: k3-am625-beagleplay: Fix Ethernet PHY RESET GPIOs
authorRoger Quadros <rogerq@kernel.org>
Tue, 5 Mar 2024 13:15:32 +0000 (15:15 +0200)
committerNishanth Menon <nm@ti.com>
Mon, 29 Apr 2024 20:02:48 +0000 (15:02 -0500)
commit0b1133ee36ecbf3b02f69cc4e8a169f1b6019e40
treec2a6079d461f033e6d50b8d9a5145c40969da43b
parent8e558642d9ff3341be75426152e4eccc0f277b53
arm64: dts: ti: k3-am625-beagleplay: Fix Ethernet PHY RESET GPIOs

The RESET GPIO pinmux should be part of MDIO bus node
so that they can be in the right state before the PHY
can be probed via MDIO bus scan.

The GPIO pin should be setup with PIN_INPUT so that
input circuitry is enabled in case software wants to
check pin status. Without this, incorrect status is shown
in /sys/kernel/debug/gpio.

Add GPIO reset for the Gigabit Ethernet PHY. As per
RTL8211F datasheet, reset assert width is 10ms and
PHY registers can be access accessed after 50ms of
reset deassert.

Fixes: f5a731f0787f ("arm64: dts: ti: Add k3-am625-beagleplay")
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20240305-b4-for-v6-9-am65-beagleplay-ethernet-reset-v2-1-2bf463a7bf13@kernel.org
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts