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 max_speed - maximum speed the driver supports. Valid
20 names are super-speed-plus, super-speed,
21 high-speed, full-speed, and low-speed.
23 bDeviceClass - USB device class code
24 bDeviceSubClass - USB device subclass code
25 bDeviceProtocol - USB device protocol code
26 bMaxPacketSize0 - maximum endpoint 0 packet size
27 bcdDevice - bcd device release number
28 bcdUSB - bcd USB specification version number
29 idProduct - product ID
32 What: /config/usb-gadget/gadget/configs
36 This group contains a USB gadget's configurations
38 What: /config/usb-gadget/gadget/configs/config
42 The attributes of a configuration:
44 bmAttributes - configuration characteristics
45 MaxPower - maximum power consumption from the bus
47 What: /config/usb-gadget/gadget/configs/config/strings
51 This group contains subdirectories for language-specific
52 strings for this configuration.
54 What: /config/usb-gadget/gadget/configs/config/strings/language
60 configuration - configuration description
63 What: /config/usb-gadget/gadget/functions
67 This group contains functions available to this USB gadget.
69 What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>
73 This group contains "Feature Descriptors" specific for one
74 gadget's USB interface or one interface group described
79 compatible_id - 8-byte string for "Compatible ID"
80 sub_compatible_id - 8-byte string for "Sub Compatible ID"
82 What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property>
86 This group contains "Extended Property Descriptors" specific for one
87 gadget's USB interface or one interface group described
92 type - value 1..7 for interpreting the data
94 2: unicode string with environment variable
96 4: little-endian 32-bit
98 6: unicode string with a symbolic link
99 7: multiple unicode strings
100 data - blob of data to be interpreted depending on
103 What: /config/usb-gadget/gadget/strings
107 This group contains subdirectories for language-specific
108 strings for this gadget.
110 What: /config/usb-gadget/gadget/strings/language
116 serialnumber - gadget's serial number (string)
117 product - gadget's product description
118 manufacturer - gadget's manufacturer description
120 What: /config/usb-gadget/gadget/os_desc
124 This group contains "OS String" extension handling attributes.
126 use - flag turning "OS Desctiptors" support on/off
127 b_vendor_code - one-byte value used for custom per-device and
128 per-interface requests
129 qw_sign - an identifier to be reported as "OS String"