112b591bcSChunfeng Yun# SPDX-License-Identifier: GPL-2.0 212b591bcSChunfeng Yun 312b591bcSChunfeng Yunconfig USB_COMMON 412b591bcSChunfeng Yun tristate 512b591bcSChunfeng Yun 612b591bcSChunfeng Yun 712b591bcSChunfeng Yunconfig USB_LED_TRIG 812b591bcSChunfeng Yun bool "USB LED Triggers" 912b591bcSChunfeng Yun depends on LEDS_CLASS && LEDS_TRIGGERS 1012b591bcSChunfeng Yun select USB_COMMON 1112b591bcSChunfeng Yun help 1212b591bcSChunfeng Yun This option adds LED triggers for USB host and/or gadget activity. 1312b591bcSChunfeng Yun 1412b591bcSChunfeng Yun Say Y here if you are working on a system with led-class supported 1512b591bcSChunfeng Yun LEDs and you want to use them as activity indicators for USB host or 1612b591bcSChunfeng Yun gadget. 1712b591bcSChunfeng Yun 1812b591bcSChunfeng Yunconfig USB_ULPI_BUS 1912b591bcSChunfeng Yun tristate "USB ULPI PHY interface support" 2012b591bcSChunfeng Yun select USB_COMMON 2112b591bcSChunfeng Yun help 2212b591bcSChunfeng Yun UTMI+ Low Pin Interface (ULPI) is specification for a commonly used 2312b591bcSChunfeng Yun USB 2.0 PHY interface. The ULPI specification defines a standard set 2412b591bcSChunfeng Yun of registers that can be used to detect the vendor and product which 2512b591bcSChunfeng Yun allows ULPI to be handled as a bus. This module is the driver for that 2612b591bcSChunfeng Yun bus. 2712b591bcSChunfeng Yun 2812b591bcSChunfeng Yun The ULPI interfaces (the buses) are registered by the drivers for USB 2912b591bcSChunfeng Yun controllers which support ULPI register access and have ULPI PHY 3012b591bcSChunfeng Yun attached to them. The ULPI PHY drivers themselves are normal PHY 3112b591bcSChunfeng Yun drivers. 3212b591bcSChunfeng Yun 3312b591bcSChunfeng Yun ULPI PHYs provide often functions such as ADP sensing/probing (OTG 3412b591bcSChunfeng Yun protocol) and USB charger detection. 3512b591bcSChunfeng Yun 3612b591bcSChunfeng Yun To compile this driver as a module, choose M here: the module will 3712b591bcSChunfeng Yun be called ulpi. 3812b591bcSChunfeng Yun 394602f3bfSChunfeng Yunconfig USB_CONN_GPIO 404602f3bfSChunfeng Yun tristate "USB GPIO Based Connection Detection Driver" 414602f3bfSChunfeng Yun depends on GPIOLIB 424602f3bfSChunfeng Yun select USB_ROLE_SWITCH 43e3ee0e74SPaul Cercueil select POWER_SUPPLY 444602f3bfSChunfeng Yun help 454602f3bfSChunfeng Yun The driver supports USB role switch between host and device via GPIO 464602f3bfSChunfeng Yun based USB cable detection, used typically if an input GPIO is used 474602f3bfSChunfeng Yun to detect USB ID pin, and another input GPIO may be also used to detect 484602f3bfSChunfeng Yun Vbus pin at the same time, it also can be used to enable/disable 494602f3bfSChunfeng Yun device if an input GPIO is only used to detect Vbus pin. 504602f3bfSChunfeng Yun 514602f3bfSChunfeng Yun To compile the driver as a module, choose M here: the module will 524602f3bfSChunfeng Yun be called usb-conn-gpio.ko 53