Skip to content

Commit c1547f1

Browse files
davidetronkjhovold
authored andcommitted
USB: serial: option: add u-blox LARA-L6 modem
Add LARA-L6 PIDs for three different USB compositions. LARA-L6 module can be configured (by AT interface) in three different USB modes: * Default mode (Vendor ID: 0x1546 Product ID: 0x1341) with 4 serial interfaces * RmNet mode (Vendor ID: 0x1546 Product ID: 0x1342) with 4 serial interfaces and 1 RmNet virtual network interface * CDC-ECM mode (Vendor ID: 0x1546 Product ID: 0x1343) with 4 serial interface and 1 CDC-ECM virtual network interface In default mode LARA-L6 exposes the following interfaces: If 0: Diagnostic If 1: AT parser If 2: AT parser If 3: AT parser/alternative functions In RmNet mode LARA-L6 exposes the following interfaces: If 0: Diagnostic If 1: AT parser If 2: AT parser If 3: AT parset/alternative functions If 4: RMNET interface In CDC-ECM mode LARA-L6 exposes the following interfaces: If 0: Diagnostic If 1: AT parser If 2: AT parser If 3: AT parset/alternative functions If 4: CDC-ECM interface Signed-off-by: Davide Tronchin <[email protected]> [ johan: drop PID defines in favour of comments ] Cc: [email protected] Signed-off-by: Johan Hovold <[email protected]>
1 parent d9e37a5 commit c1547f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/usb/serial/option.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ static void option_instat_callback(struct urb *urb);
162162
#define NOVATELWIRELESS_PRODUCT_G2 0xA010
163163
#define NOVATELWIRELESS_PRODUCT_MC551 0xB001
164164

165+
#define UBLOX_VENDOR_ID 0x1546
166+
165167
/* AMOI PRODUCTS */
166168
#define AMOI_VENDOR_ID 0x1614
167169
#define AMOI_PRODUCT_H01 0x0800
@@ -1130,6 +1132,12 @@ static const struct usb_device_id option_ids[] = {
11301132
.driver_info = RSVD(4) },
11311133
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x90fa),
11321134
.driver_info = RSVD(3) },
1135+
/* u-blox products */
1136+
{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1341) }, /* u-blox LARA-L6 */
1137+
{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1342), /* u-blox LARA-L6 (RMNET) */
1138+
.driver_info = RSVD(4) },
1139+
{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1343), /* u-blox LARA-L6 (ECM) */
1140+
.driver_info = RSVD(4) },
11331141
/* Quectel products using Quectel vendor ID */
11341142
{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC21, 0xff, 0xff, 0xff),
11351143
.driver_info = NUMEP2 },

0 commit comments

Comments
 (0)