[PATCH 9/9] usb: gadget: add sysfs files description for Android Composite Gadget

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx>
Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
---
 Documentation/ABI/testing/sysfs-class-android_usb |  158 +++++++++++++++++++++
 1 files changed, 158 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-android_usb

diff --git a/Documentation/ABI/testing/sysfs-class-android_usb b/Documentation/ABI/testing/sysfs-class-android_usb
new file mode 100644
index 0000000..fca907f
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-android_usb
@@ -0,0 +1,158 @@
+What:		/sys/class/android_usb
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The android_usb/ class subdirectory belongs to android
+		USB gadget.
+
+What:		/sys/class/android_usb/androidX
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/android{0,1,2,3...} class
+		subdirectories correspond to each android gadget device;
+		at the time of this writing there is only android0 and it
+		represents the android gadget.
+
+What:		/sys/class/android_usb/androidX/functions
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		A comma-separated list of USB function names to be activated
+		in this android gadget. It includes both the functions provided
+		in-kernel by the android gadget and the functions provided from
+		userspace through FunctionFS.
+
+What:		/sys/class/android_usb/androidX/enable
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		A flag activating/deactivating the android usb gadget.
+
+What:		/sys/class/android_usb/androidX/state
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		Android usb gadget state:
+
+		DISCONNECTED
+		CONNECTED
+		CONFIGURED
+
+What:		/sys/class/android_usb/androidX/f_acm/
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/androidX/f_acm subdirectory
+		corresponds to the gadget's USB CDC serial (ACM) function
+		driver.
+
+What:		/sys/class/android_usb/androidX/f_acm/instances
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		Maximum number of the /dev/ttyGS<X> interface the driver uses.
+
+What:		/sys/class/android_usb/androidX/f_fs
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/androidX/f_fs subdirectory
+		corresponds to the gadget's FunctionFS driver.
+
+What:		/sys/class/android_usb/androidX/f_fs/user_functions
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		A comma-separeted list of USB function names to be supported
+		from userspace. No other userspace FunctionFS functions can
+		be supported than listed here. However, the actual activation
+		of these functions is still done through
+		/sys/class/android_usb/androidX/functions, where it is possible
+		to specify any subset (including maximum and empty) of
+		/sys/class/android_usb/androidX/f_fs/user_functions.
+
+What:		/sys/class/android_usb/androidX/f_fs/max_user_functions
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		Maximum number of USB functions to be supported from userspace.
+
+What:		/sys/class/android_usb/androidX/f_rndis
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/androidX/f_rndis subdirectory
+		corresponds to the gadget's RNDIS driver.
+
+What:		/sys/class/android_usb/androidX/f_rndis/manufacturer
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		RNDIS Ethernet port manufacturer string.
+
+What:		/sys/class/android_usb/androidX/f_rndis/wceis
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		RNDIS Ethernet port wireless flag.
+
+What:		/sys/class/android_usb/androidX/f_rndis/ethaddr
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		RNDIS Ethernet port Ethernet address.
+
+What:		/sys/class/android_usb/androidX/f_rndis/vendorID
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		RNDIS Ethernet port vendor ID.
+
+What:		/sys/class/android_usb/androidX/f_mass_storage
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/androidX/f_mass_storage subdirectory
+		corresponds to the gadget's USB mass storage driver.
+
+What:		/sys/class/android_usb/androidX/f_mass_storage/lun
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/androidX/f_mass_storage/lun
+		subdirectory corresponds to the gadget's USB mass storage
+		driver and its underlying storage.
+
+What:		/sys/class/android_usb/androidX/f_mass_storage/lun
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		The /sys/class/android_usb/androidX/f_mass_storage/lun
+		subdirectory corresponds to the gadget's USB mass storage
+		driver and its underlying storage.
+
+What:		/sys/class/android_usb/androidX/f_mass_storage/lun/file
+Date:		March 2012
+KernelVersion:	3.3
+Contact:	linux-usb@xxxxxxxxxxxxxxx
+Description:
+		Gadget's USB mass storage underlying file.
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux