summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2013-04-26 11:28:16 -0500
committerMike Fiore <mfiore@multitech.com>2013-04-26 11:28:16 -0500
commita86b1323dbc335d34e04317d7126d65f278cf0c2 (patch)
tree19f7638b3f92b053f3f96a6ca7628a5c310de947
parentcc4ae07a3689f00978fdf9afbdd3d7ddd38bb81f (diff)
udev: add rules for mtocgd (mtr hw)
-rw-r--r--multitech/recipes/udev/udev-165/mtocgd/corecdp.rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/multitech/recipes/udev/udev-165/mtocgd/corecdp.rules b/multitech/recipes/udev/udev-165/mtocgd/corecdp.rules
new file mode 100644
index 0000000..a9235e3
--- /dev/null
+++ b/multitech/recipes/udev/udev-165/mtocgd/corecdp.rules
@@ -0,0 +1,20 @@
+ACTION=="remove", GOTO="mts_end"
+SUBSYSTEM!="tty", GOTO="mts_end"
+KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*|ttyS*", GOTO="mts_end"
+
+SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
+ENV{ID_IFACE}=="", GOTO="mts_end"
+
+# H5: ttyACM0, ttyACM3
+ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0021", ENV{ID_IFACE}=="00", SYMLINK+="modem_at0"
+ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0021", ENV{ID_IFACE}=="06", SYMLINK+="modem_at1"
+# EV3: ttyUSB2, ttyUSB3
+ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="1010", ENV{ID_IFACE}=="02", SYMLINK+="modem_at0"
+ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="1010", ENV{ID_IFACE}=="03", SYMLINK+="modem_at1"
+
+# mtr revA: bluetooth on exar chip (ACM0, iface 0)
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", SYMLINK+="bt"
+# mtr revA: external serial on exar chip (ACM1, iface 2)
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", SYMLINK+="ext_serial"
+
+LABEL="mts_end"