mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
Documentation: usb: ACM function testing
The newly added file will be used to provide descriptions of how to test the functions of USB gadgets. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
b797ef4e16
commit
e38eb2c8cb
1 changed files with 34 additions and 0 deletions
34
Documentation/usb/gadget-testing.txt
Normal file
34
Documentation/usb/gadget-testing.txt
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
This file summarizes information on basic testing of USB functions
|
||||||
|
provided by gadgets.
|
||||||
|
|
||||||
|
1. ACM function
|
||||||
|
|
||||||
|
|
||||||
|
1. ACM function
|
||||||
|
===============
|
||||||
|
|
||||||
|
The function is provided by usb_f_acm.ko module.
|
||||||
|
|
||||||
|
Function-specific configfs interface
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
The function name to use when creating the function directory is "acm".
|
||||||
|
The ACM function provides just one attribute in its function directory:
|
||||||
|
|
||||||
|
port_num
|
||||||
|
|
||||||
|
The attribute is read-only.
|
||||||
|
|
||||||
|
There can be at most 4 ACM/generic serial/OBEX ports in the system.
|
||||||
|
|
||||||
|
|
||||||
|
Testing the ACM function
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
On the host: cat > /dev/ttyACM<X>
|
||||||
|
On the device : cat /dev/ttyGS<Y>
|
||||||
|
|
||||||
|
then the other way round
|
||||||
|
|
||||||
|
On the device: cat > /dev/ttyGS<Y>
|
||||||
|
On the host: cat /dev/ttyACM<X>
|
Loading…
Add table
Reference in a new issue