u-boot/drivers/phy/allwinner
Andre Przywara ab4c636484 phy: sun4i-usb: Determine USB OTG detection pin from devicetree
So far Allwinner boards controlled the USB OTG ID detection via the
respective GPIO pin specified in Kconfig, as a string. All boards should
have the same GPIO already specified in the devicetree, in the
usb0_id_det-gpios property.

Convert the usage of the Kconfig configured GPIO over to query that
information from the devicetree, then use the existing DM GPIO
infrastructure to request the GPIO.
Only PHY0 supports USB-OTG, so limit the GPIO request to that PHY, to
avoid claiming it multiple times.

This removes the need to name that GPIO in the defconfig file.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
2025-04-28 12:45:44 -06:00
..
Kconfig phy: sun4i: Add H616 USB PHY support 2023-07-21 00:28:13 +01:00
Makefile phy: sun50i-usb3: Add a driver for the H6 USB3 PHY 2021-09-22 21:29:56 +02:00
phy-sun4i-usb.c phy: sun4i-usb: Determine USB OTG detection pin from devicetree 2025-04-28 12:45:44 -06:00
phy-sun50i-usb3.c drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00