1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunconfig USB_COMMON 4*4882a593Smuzhiyun tristate 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunconfig USB_LED_TRIG 8*4882a593Smuzhiyun bool "USB LED Triggers" 9*4882a593Smuzhiyun depends on LEDS_CLASS && USB_COMMON && LEDS_TRIGGERS 10*4882a593Smuzhiyun help 11*4882a593Smuzhiyun This option adds LED triggers for USB host and/or gadget activity. 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun Say Y here if you are working on a system with led-class supported 14*4882a593Smuzhiyun LEDs and you want to use them as activity indicators for USB host or 15*4882a593Smuzhiyun gadget. 16*4882a593Smuzhiyun 17*4882a593Smuzhiyunconfig USB_ULPI_BUS 18*4882a593Smuzhiyun tristate "USB ULPI PHY interface support" 19*4882a593Smuzhiyun select USB_COMMON 20*4882a593Smuzhiyun help 21*4882a593Smuzhiyun UTMI+ Low Pin Interface (ULPI) is specification for a commonly used 22*4882a593Smuzhiyun USB 2.0 PHY interface. The ULPI specification defines a standard set 23*4882a593Smuzhiyun of registers that can be used to detect the vendor and product which 24*4882a593Smuzhiyun allows ULPI to be handled as a bus. This module is the driver for that 25*4882a593Smuzhiyun bus. 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun The ULPI interfaces (the buses) are registered by the drivers for USB 28*4882a593Smuzhiyun controllers which support ULPI register access and have ULPI PHY 29*4882a593Smuzhiyun attached to them. The ULPI PHY drivers themselves are normal PHY 30*4882a593Smuzhiyun drivers. 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun ULPI PHYs provide often functions such as ADP sensing/probing (OTG 33*4882a593Smuzhiyun protocol) and USB charger detection. 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun To compile this driver as a module, choose M here: the module will 36*4882a593Smuzhiyun be called ulpi. 37*4882a593Smuzhiyun 38*4882a593Smuzhiyunconfig USB_CONN_GPIO 39*4882a593Smuzhiyun tristate "USB GPIO Based Connection Detection Driver" 40*4882a593Smuzhiyun depends on GPIOLIB 41*4882a593Smuzhiyun select USB_ROLE_SWITCH 42*4882a593Smuzhiyun select POWER_SUPPLY 43*4882a593Smuzhiyun help 44*4882a593Smuzhiyun The driver supports USB role switch between host and device via GPIO 45*4882a593Smuzhiyun based USB cable detection, used typically if an input GPIO is used 46*4882a593Smuzhiyun to detect USB ID pin, and another input GPIO may be also used to detect 47*4882a593Smuzhiyun Vbus pin at the same time, it also can be used to enable/disable 48*4882a593Smuzhiyun device if an input GPIO is only used to detect Vbus pin. 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun To compile the driver as a module, choose M here: the module will 51*4882a593Smuzhiyun be called usb-conn-gpio.ko 52