[PATCH v2 6/8] phy: sun4i-usb: Determine VBUS detection pin from devicetree

Jernej Škrabec jernej.skrabec at gmail.com
Thu Apr 10 09:18:40 CEST 2025


Dne sreda, 9. april 2025 ob 02:20:34 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> So far Allwinner boards controlled the USB VBUS 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_vbus_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 at arm.com>

Reviewed-by: Jernej Skrabec <jernej.skrabec at gmail.com>

Best regards,
Jernej




More information about the U-Boot mailing list