blob: dc351e9af80ad0eb93da456c8e696dea08ccbe76 [file] [log] [blame]
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +02001What: /config/usb-gadget
2Date: Jun 2013
Ard Biesheuvel06519e72014-01-29 14:05:54 -08003KernelVersion: 3.11
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +02004Description:
5 This group contains sub-groups corresponding to created
6 USB gadgets.
7
8What: /config/usb-gadget/gadget
9Date: Jun 2013
Ard Biesheuvel06519e72014-01-29 14:05:54 -080010KernelVersion: 3.11
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020011Description:
12
13 The attributes of a gadget:
14
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010015 ================ ============================================
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.
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020019
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010020 max_speed maximum speed the driver supports. Valid
21 names are super-speed-plus, super-speed,
22 high-speed, full-speed, and low-speed.
Thinh Nguyena0249702020-01-08 18:38:10 -080023
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010024 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
30 idProduct product ID
31 idVendor vendor ID
32 ================ ============================================
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020033
34What: /config/usb-gadget/gadget/configs
35Date: Jun 2013
Ard Biesheuvel06519e72014-01-29 14:05:54 -080036KernelVersion: 3.11
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020037Description:
38 This group contains a USB gadget's configurations
39
40What: /config/usb-gadget/gadget/configs/config
41Date: Jun 2013
42KernelVersion: 3.11
43Description:
44 The attributes of a configuration:
45
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010046 ================ ======================================
47 bmAttributes configuration characteristics
48 MaxPower maximum power consumption from the bus
49 ================ ======================================
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020050
51What: /config/usb-gadget/gadget/configs/config/strings
52Date: Jun 2013
53KernelVersion: 3.11
54Description:
55 This group contains subdirectories for language-specific
56 strings for this configuration.
57
58What: /config/usb-gadget/gadget/configs/config/strings/language
59Date: Jun 2013
60KernelVersion: 3.11
61Description:
62 The attributes:
63
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010064 ================ =========================
65 configuration configuration description
66 ================ =========================
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020067
68
69What: /config/usb-gadget/gadget/functions
70Date: Jun 2013
Ard Biesheuvel06519e72014-01-29 14:05:54 -080071KernelVersion: 3.11
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +020072Description:
73 This group contains functions available to this USB gadget.
74
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +020075What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>
76Date: May 2014
77KernelVersion: 3.16
78Description:
79 This group contains "Feature Descriptors" specific for one
80 gadget's USB interface or one interface group described
81 by an IAD.
82
83 The attributes:
84
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010085 ================= =====================================
86 compatible_id 8-byte string for "Compatible ID"
87 sub_compatible_id 8-byte string for "Sub Compatible ID"
88 ================= =====================================
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +020089
Andrzej Pietrasiewicz74194852014-05-08 14:06:28 +020090What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property>
91Date: May 2014
92KernelVersion: 3.16
93Description:
94 This group contains "Extended Property Descriptors" specific for one
95 gadget's USB interface or one interface group described
96 by an IAD.
97
98 The attributes:
99
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100100 ===== ===============================================
101 type value 1..7 for interpreting the data
102
103 - 1: unicode string
104 - 2: unicode string with environment variable
105 - 3: binary
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
Andrzej Pietrasiewicz74194852014-05-08 14:06:28 +0200111 type
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100112 ===== ===============================================
Andrzej Pietrasiewicz74194852014-05-08 14:06:28 +0200113
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +0200114What: /config/usb-gadget/gadget/strings
115Date: Jun 2013
Ard Biesheuvel06519e72014-01-29 14:05:54 -0800116KernelVersion: 3.11
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +0200117Description:
118 This group contains subdirectories for language-specific
119 strings for this gadget.
120
121What: /config/usb-gadget/gadget/strings/language
122Date: Jun 2013
Ard Biesheuvel06519e72014-01-29 14:05:54 -0800123KernelVersion: 3.11
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +0200124Description:
125 The attributes:
126
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100127 ============ =================================
128 serialnumber gadget's serial number (string)
129 product gadget's product description
130 manufacturer gadget's manufacturer description
131 ============ =================================
Andrzej Pietrasiewicz5b92f462013-06-13 10:37:26 +0200132
Andrzej Pietrasiewicz87213d32014-05-08 14:06:25 +0200133What: /config/usb-gadget/gadget/os_desc
134Date: May 2014
135KernelVersion: 3.16
136Description:
137 This group contains "OS String" extension handling attributes.
138
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100139 ============= ===============================================
140 use flag turning "OS Desctiptors" support on/off
141 b_vendor_code one-byte value used for custom per-device and
Andrzej Pietrasiewicz87213d32014-05-08 14:06:25 +0200142 per-interface requests
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100143 qw_sign an identifier to be reported as "OS String"
Andrzej Pietrasiewicz87213d32014-05-08 14:06:25 +0200144 proper
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100145 ============= ===============================================