diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-02-02 17:36:05 -0800 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2017-02-08 20:11:18 +0100 |
commit | 8e1de4a8a2b0ee50edeca3d72585f1d754a2602a (patch) | |
tree | 8a693ad292aaf4884d7431d7dbc2ea1667ae35ae /recipes-support/libusbgx/files/apalis-imx6/g1.schema | |
parent | 439cc110616fb1dbea3c392159f169deedc189cc (diff) |
libusbgx: add RNDIS configuration and systemd service for import
Update libusbgx to a version with OS Descriptor support for better
interoperability with Windows operating systems. Add configuration
using RNDIS with Toradex vendor id. Read serial number and product
id from the device tree to configure the USB gadget device.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-support/libusbgx/files/apalis-imx6/g1.schema')
-rw-r--r-- | recipes-support/libusbgx/files/apalis-imx6/g1.schema | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-support/libusbgx/files/apalis-imx6/g1.schema b/recipes-support/libusbgx/files/apalis-imx6/g1.schema new file mode 100644 index 0000000..c09d478 --- /dev/null +++ b/recipes-support/libusbgx/files/apalis-imx6/g1.schema @@ -0,0 +1,68 @@ +attrs : +{ + bcdUSB = 0x200; + bDeviceClass = 0x2; + bDeviceSubClass = 0x0; + bDeviceProtocol = 0x0; + bMaxPacketSize0 = 0x40; + idVendor = 0x1D6B; + idProduct = 0x104; + bcdDevice = 0x401; +}; +os_descs : +{ + config = "c_1"; + use = 1; + qw_sign = "MSFT100"; + b_vendor_code = 0xCD; +}; +strings = ( + { + lang = 0x409; + manufacturer = "Toradex"; + product = "Toradex Apalis iMX6"; + serialnumber = "00000000"; + } ); +functions : +{ + rndis_usb0 : + { + instance = "usb0"; + type = "rndis"; + attrs : + { + dev_addr = "00:14:2d:ff:ff:ff"; + host_addr = "00:14:2d:ff:ff:fe"; + qmult = 5; + }; + os_descs = ( + { + interface = "rndis"; + compatible_id = "RNDIS"; + sub_compatible_id = "5162001"; + } ); + }; +}; +configs : +{ + c_1 : + { + id = 1; + name = "c"; + attrs : + { + bmAttributes = 0xC0; + bMaxPower = 0x1; + }; + strings = ( + { + lang = 0x409; + configuration = "RNDIS"; + } ); + functions = ( + { + name = "rndis.usb0"; + function = "rndis_usb0"; + } ); + }; +}; |