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