1 What: /config/usb-gadget
5 This group contains sub-groups corresponding to created
8 What: /config/usb-gadget/gadget
13 The attributes of a gadget:
15 UDC - bind a gadget to UDC/unbind a gadget;
16 write UDC's name found in /sys/class/udc/*
17 to bind a gadget, empty string "" to unbind.
19 bDeviceClass - USB device class code
20 bDeviceSubClass - USB device subclass code
21 bDeviceProtocol - USB device protocol code
22 bMaxPacketSize0 - maximum endpoint 0 packet size
23 bcdDevice - bcd device release number
24 bcdUSB - bcd USB specification version number
25 idProduct - product ID
28 What: /config/usb-gadget/gadget/configs
32 This group contains a USB gadget's configurations
34 What: /config/usb-gadget/gadget/configs/config
38 The attributes of a configuration:
40 bmAttributes - configuration characteristics
41 MaxPower - maximum power consumption from the bus
43 What: /config/usb-gadget/gadget/configs/config/strings
47 This group contains subdirectories for language-specific
48 strings for this configuration.
50 What: /config/usb-gadget/gadget/configs/config/strings/language
56 configuration - configuration description
59 What: /config/usb-gadget/gadget/functions
63 This group contains functions available to this USB gadget.
65 What: /config/usb-gadget/gadget/strings
69 This group contains subdirectories for language-specific
70 strings for this gadget.
72 What: /config/usb-gadget/gadget/strings/language
78 serialnumber - gadget's serial number (string)
79 product - gadget's product description
80 manufacturer - gadget's manufacturer description