15b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget 25b92f46cSAndrzej PietrasiewiczDate: Jun 2013 306519e7fSArd BiesheuvelKernelVersion: 3.11 45b92f46cSAndrzej PietrasiewiczDescription: 55b92f46cSAndrzej Pietrasiewicz This group contains sub-groups corresponding to created 65b92f46cSAndrzej Pietrasiewicz USB gadgets. 75b92f46cSAndrzej Pietrasiewicz 85b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget 95b92f46cSAndrzej PietrasiewiczDate: Jun 2013 1006519e7fSArd BiesheuvelKernelVersion: 3.11 115b92f46cSAndrzej PietrasiewiczDescription: 125b92f46cSAndrzej Pietrasiewicz 135b92f46cSAndrzej Pietrasiewicz The attributes of a gadget: 145b92f46cSAndrzej Pietrasiewicz 1534433332SMauro Carvalho Chehab ================ ============================================ 1634433332SMauro Carvalho Chehab UDC bind a gadget to UDC/unbind a gadget; 175b92f46cSAndrzej Pietrasiewicz write UDC's name found in /sys/class/udc/* 185b92f46cSAndrzej Pietrasiewicz to bind a gadget, empty string "" to unbind. 195b92f46cSAndrzej Pietrasiewicz 2034433332SMauro Carvalho Chehab max_speed maximum speed the driver supports. Valid 21a0249703SThinh Nguyen names are super-speed-plus, super-speed, 22a0249703SThinh Nguyen high-speed, full-speed, and low-speed. 23a0249703SThinh Nguyen 2434433332SMauro Carvalho Chehab bDeviceClass USB device class code 2534433332SMauro Carvalho Chehab bDeviceSubClass USB device subclass code 2634433332SMauro Carvalho Chehab bDeviceProtocol USB device protocol code 2734433332SMauro Carvalho Chehab bMaxPacketSize0 maximum endpoint 0 packet size 2834433332SMauro Carvalho Chehab bcdDevice bcd device release number 2934433332SMauro Carvalho Chehab bcdUSB bcd USB specification version number 3034433332SMauro Carvalho Chehab idProduct product ID 3134433332SMauro Carvalho Chehab idVendor vendor ID 3234433332SMauro Carvalho Chehab ================ ============================================ 335b92f46cSAndrzej Pietrasiewicz 345b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/configs 355b92f46cSAndrzej PietrasiewiczDate: Jun 2013 3606519e7fSArd BiesheuvelKernelVersion: 3.11 375b92f46cSAndrzej PietrasiewiczDescription: 385b92f46cSAndrzej Pietrasiewicz This group contains a USB gadget's configurations 395b92f46cSAndrzej Pietrasiewicz 405b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/configs/config 415b92f46cSAndrzej PietrasiewiczDate: Jun 2013 425b92f46cSAndrzej PietrasiewiczKernelVersion: 3.11 435b92f46cSAndrzej PietrasiewiczDescription: 445b92f46cSAndrzej Pietrasiewicz The attributes of a configuration: 455b92f46cSAndrzej Pietrasiewicz 4634433332SMauro Carvalho Chehab ================ ====================================== 4734433332SMauro Carvalho Chehab bmAttributes configuration characteristics 4834433332SMauro Carvalho Chehab MaxPower maximum power consumption from the bus 4934433332SMauro Carvalho Chehab ================ ====================================== 505b92f46cSAndrzej Pietrasiewicz 515b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/configs/config/strings 525b92f46cSAndrzej PietrasiewiczDate: Jun 2013 535b92f46cSAndrzej PietrasiewiczKernelVersion: 3.11 545b92f46cSAndrzej PietrasiewiczDescription: 555b92f46cSAndrzej Pietrasiewicz This group contains subdirectories for language-specific 565b92f46cSAndrzej Pietrasiewicz strings for this configuration. 575b92f46cSAndrzej Pietrasiewicz 585b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/configs/config/strings/language 595b92f46cSAndrzej PietrasiewiczDate: Jun 2013 605b92f46cSAndrzej PietrasiewiczKernelVersion: 3.11 615b92f46cSAndrzej PietrasiewiczDescription: 625b92f46cSAndrzej Pietrasiewicz The attributes: 635b92f46cSAndrzej Pietrasiewicz 6434433332SMauro Carvalho Chehab ================ ========================= 6534433332SMauro Carvalho Chehab configuration configuration description 6634433332SMauro Carvalho Chehab ================ ========================= 675b92f46cSAndrzej Pietrasiewicz 685b92f46cSAndrzej Pietrasiewicz 695b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/functions 705b92f46cSAndrzej PietrasiewiczDate: Jun 2013 7106519e7fSArd BiesheuvelKernelVersion: 3.11 725b92f46cSAndrzej PietrasiewiczDescription: 735b92f46cSAndrzej Pietrasiewicz This group contains functions available to this USB gadget. 745b92f46cSAndrzej Pietrasiewicz 75da424314SAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n> 76da424314SAndrzej PietrasiewiczDate: May 2014 77da424314SAndrzej PietrasiewiczKernelVersion: 3.16 78da424314SAndrzej PietrasiewiczDescription: 79da424314SAndrzej Pietrasiewicz This group contains "Feature Descriptors" specific for one 80da424314SAndrzej Pietrasiewicz gadget's USB interface or one interface group described 81da424314SAndrzej Pietrasiewicz by an IAD. 82da424314SAndrzej Pietrasiewicz 83da424314SAndrzej Pietrasiewicz The attributes: 84da424314SAndrzej Pietrasiewicz 8534433332SMauro Carvalho Chehab ================= ===================================== 8634433332SMauro Carvalho Chehab compatible_id 8-byte string for "Compatible ID" 8734433332SMauro Carvalho Chehab sub_compatible_id 8-byte string for "Sub Compatible ID" 8834433332SMauro Carvalho Chehab ================= ===================================== 89da424314SAndrzej Pietrasiewicz 907419485fSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property> 917419485fSAndrzej PietrasiewiczDate: May 2014 927419485fSAndrzej PietrasiewiczKernelVersion: 3.16 937419485fSAndrzej PietrasiewiczDescription: 947419485fSAndrzej Pietrasiewicz This group contains "Extended Property Descriptors" specific for one 957419485fSAndrzej Pietrasiewicz gadget's USB interface or one interface group described 967419485fSAndrzej Pietrasiewicz by an IAD. 977419485fSAndrzej Pietrasiewicz 987419485fSAndrzej Pietrasiewicz The attributes: 997419485fSAndrzej Pietrasiewicz 10034433332SMauro Carvalho Chehab ===== =============================================== 10134433332SMauro Carvalho Chehab type value 1..7 for interpreting the data 10234433332SMauro Carvalho Chehab 10334433332SMauro Carvalho Chehab - 1: unicode string 10434433332SMauro Carvalho Chehab - 2: unicode string with environment variable 10534433332SMauro Carvalho Chehab - 3: binary 10634433332SMauro Carvalho Chehab - 4: little-endian 32-bit 10734433332SMauro Carvalho Chehab - 5: big-endian 32-bit 10834433332SMauro Carvalho Chehab - 6: unicode string with a symbolic link 10934433332SMauro Carvalho Chehab - 7: multiple unicode strings 11034433332SMauro Carvalho Chehab data blob of data to be interpreted depending on 1117419485fSAndrzej Pietrasiewicz type 11234433332SMauro Carvalho Chehab ===== =============================================== 1137419485fSAndrzej Pietrasiewicz 1145b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/strings 1155b92f46cSAndrzej PietrasiewiczDate: Jun 2013 11606519e7fSArd BiesheuvelKernelVersion: 3.11 1175b92f46cSAndrzej PietrasiewiczDescription: 1185b92f46cSAndrzej Pietrasiewicz This group contains subdirectories for language-specific 1195b92f46cSAndrzej Pietrasiewicz strings for this gadget. 1205b92f46cSAndrzej Pietrasiewicz 1215b92f46cSAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/strings/language 1225b92f46cSAndrzej PietrasiewiczDate: Jun 2013 12306519e7fSArd BiesheuvelKernelVersion: 3.11 1245b92f46cSAndrzej PietrasiewiczDescription: 1255b92f46cSAndrzej Pietrasiewicz The attributes: 1265b92f46cSAndrzej Pietrasiewicz 12734433332SMauro Carvalho Chehab ============ ================================= 12834433332SMauro Carvalho Chehab serialnumber gadget's serial number (string) 12934433332SMauro Carvalho Chehab product gadget's product description 13034433332SMauro Carvalho Chehab manufacturer gadget's manufacturer description 13134433332SMauro Carvalho Chehab ============ ================================= 1325b92f46cSAndrzej Pietrasiewicz 13387213d38SAndrzej PietrasiewiczWhat: /config/usb-gadget/gadget/os_desc 13487213d38SAndrzej PietrasiewiczDate: May 2014 13587213d38SAndrzej PietrasiewiczKernelVersion: 3.16 13687213d38SAndrzej PietrasiewiczDescription: 13787213d38SAndrzej Pietrasiewicz This group contains "OS String" extension handling attributes. 13887213d38SAndrzej Pietrasiewicz 13934433332SMauro Carvalho Chehab ============= =============================================== 1403e42d1deSCarlos Bilbao use flag turning "OS Descriptors" support on/off 14134433332SMauro Carvalho Chehab b_vendor_code one-byte value used for custom per-device and 14287213d38SAndrzej Pietrasiewicz per-interface requests 14334433332SMauro Carvalho Chehab qw_sign an identifier to be reported as "OS String" 14487213d38SAndrzej Pietrasiewicz proper 14534433332SMauro Carvalho Chehab ============= =============================================== 146*93c47394SJó Ágila Bitsch 147*93c47394SJó Ágila BitschWhat: /config/usb-gadget/gadget/webusb 148*93c47394SJó Ágila BitschDate: Dec 2022 149*93c47394SJó Ágila BitschKernelVersion: 6.3 150*93c47394SJó Ágila BitschDescription: 151*93c47394SJó Ágila Bitsch This group contains "WebUSB" extension handling attributes. 152*93c47394SJó Ágila Bitsch 153*93c47394SJó Ágila Bitsch ============= =============================================== 154*93c47394SJó Ágila Bitsch use flag turning "WebUSB" support on/off 155*93c47394SJó Ágila Bitsch bcdVersion bcd WebUSB specification version number 156*93c47394SJó Ágila Bitsch bVendorCode one-byte value used for custom per-device 157*93c47394SJó Ágila Bitsch landingPage UTF-8 encoded URL of the device's landing page 158*93c47394SJó Ágila Bitsch ============= =============================================== 159