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 ================ ============================================
16 UDC bind a gadget to UDC/unbind a gadget;
17 write UDC's name found in /sys/class/udc/*
18 to bind a gadget, empty string "" to unbind.
20 max_speed maximum speed the driver supports. Valid
21 names are super-speed-plus, super-speed,
22 high-speed, full-speed, and low-speed.
24 bDeviceClass USB device class code
25 bDeviceSubClass USB device subclass code
26 bDeviceProtocol USB device protocol code
27 bMaxPacketSize0 maximum endpoint 0 packet size
28 bcdDevice bcd device release number
29 bcdUSB bcd USB specification version number
32 ================ ============================================
34 What: /config/usb-gadget/gadget/configs
38 This group contains a USB gadget's configurations
40 What: /config/usb-gadget/gadget/configs/config
44 The attributes of a configuration:
46 ================ ======================================
47 bmAttributes configuration characteristics
48 MaxPower maximum power consumption from the bus
49 ================ ======================================
51 What: /config/usb-gadget/gadget/configs/config/strings
55 This group contains subdirectories for language-specific
56 strings for this configuration.
58 What: /config/usb-gadget/gadget/configs/config/strings/language
64 ================ =========================
65 configuration configuration description
66 ================ =========================
69 What: /config/usb-gadget/gadget/functions
73 This group contains functions available to this USB gadget.
75 What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>
79 This group contains "Feature Descriptors" specific for one
80 gadget's USB interface or one interface group described
85 ================= =====================================
86 compatible_id 8-byte string for "Compatible ID"
87 sub_compatible_id 8-byte string for "Sub Compatible ID"
88 ================= =====================================
90 What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property>
94 This group contains "Extended Property Descriptors" specific for one
95 gadget's USB interface or one interface group described
100 ===== ===============================================
101 type value 1..7 for interpreting the data
104 - 2: unicode string with environment variable
106 - 4: little-endian 32-bit
107 - 5: big-endian 32-bit
108 - 6: unicode string with a symbolic link
109 - 7: multiple unicode strings
110 data blob of data to be interpreted depending on
112 ===== ===============================================
114 What: /config/usb-gadget/gadget/strings
118 This group contains subdirectories for language-specific
119 strings for this gadget.
121 What: /config/usb-gadget/gadget/strings/language
127 ============ =================================
128 serialnumber gadget's serial number (string)
129 product gadget's product description
130 manufacturer gadget's manufacturer description
131 ============ =================================
133 What: /config/usb-gadget/gadget/os_desc
137 This group contains "OS String" extension handling attributes.
139 ============= ===============================================
140 use flag turning "OS Desctiptors" support on/off
141 b_vendor_code one-byte value used for custom per-device and
142 per-interface requests
143 qw_sign an identifier to be reported as "OS String"
145 ============= ===============================================