Skip to contentSkip to conversation

USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit

PATCH In review Marek Vasut 2 participants 3 messages Apr 18, 2017 – Apr 19, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit

This development kit has an FT4232 on it with a custom USB VID/PID. The FT4232 provides four UARTs, but only two are used. The UART 0 is used by the FlashPro5 programmer and UART 2 is connected to the SmartFusion2 CortexM3 SoC UART port.

Note that the USB VID is registered to Actel according to Linux USB VID database, but that was acquired by Microsemi.

---
V2: - Move the ID in ftdi_sio_ids.h to keep it sorted by VIDs
- Use the JTAG quirk to avoid binding channel 0, this is needed by the Libero software, otherwise it cannot use the programmer.
V3: - Remove the verbose comment
- Use USB_DEVICE_INTERFACE_NUMBER() instead of the JTAG quirk

---
 drivers/usb/serial/ftdi_sio.c     | 1 +
 drivers/usb/serial/ftdi_sio_ids.h | 4 ++++
 2 files changed, 5 insertions(+)
drivers/usb/serial/ftdi_sio.c +1 -0
index 80c6d3deb80d..91a4d7346549 100644
@@ -873,6 +873,7 @@ static const struct usb_device_id id_table_combined[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(MICROCHIP_VID, MICROCHIP_USB_BOARD_PID,
 					USB_CLASS_VENDOR_SPEC,
 					USB_SUBCLASS_VENDOR_SPEC, 0x00) },
+	{ USB_DEVICE_INTERFACE_NUMBER(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID, 2) },
 	{ USB_DEVICE(JETI_VID, JETI_SPC1201_PID) },
 	{ USB_DEVICE(MARVELL_VID, MARVELL_SHEEVAPLUG_PID),
 		.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
drivers/usb/serial/ftdi_sio_ids.h +4 -0
index 168ccb03ce08..58cf17d362c5 100644
@@ -877,6 +877,10 @@
 #define	FIC_VID			0x1457
 #define	FIC_NEO1973_DEBUG_PID	0x5118
 
+/* Microsemi/Arrow SF2PLUS Dev Kit */
+#define ACTEL_VID				0x1514
+#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID	0x2008
+
 /* Olimex */
 #define OLIMEX_VID			0x15BA
 #define OLIMEX_ARM_USB_OCD_PID		0x0003
Signature · 1 line
2.11.0
maintainer
#1 lore raw
Quoted 12 lines · Marek Vasut

This development kit has an FT4232 on it with a custom USB VID/PID. The FT4232 provides four UARTs, but only two are used. The UART 0 is used by the FlashPro5 programmer and UART 2 is connected to the SmartFusion2 CortexM3 SoC UART port.

Note that the USB VID is registered to Actel according to Linux USB VID database, but that was acquired by Microsemi.

Quoted 6 lines

---
V2: - Move the ID in ftdi_sio_ids.h to keep it sorted by VIDs
- Use the JTAG quirk to avoid binding channel 0, this is needed by the Libero software, otherwise it cannot use the programmer.
V3: - Remove the verbose comment
- Use USB_DEVICE_INTERFACE_NUMBER() instead of the JTAG quirk

Applied for -next, thanks.

Johan

#2 lore raw
Quoted 20 lines · Johan Hovold
Quoted 12 lines · Marek Vasut

This development kit has an FT4232 on it with a custom USB VID/PID. The FT4232 provides four UARTs, but only two are used. The UART 0 is used by the FlashPro5 programmer and UART 2 is connected to the SmartFusion2 CortexM3 SoC UART port.

Note that the USB VID is registered to Actel according to Linux USB VID database, but that was acquired by Microsemi.

Quoted 6 lines

---
V2: - Move the ID in ftdi_sio_ids.h to keep it sorted by VIDs
- Use the JTAG quirk to avoid binding channel 0, this is needed by the Libero software, otherwise it cannot use the programmer.
V3: - Remove the verbose comment
- Use USB_DEVICE_INTERFACE_NUMBER() instead of the JTAG quirk

Quoted 1 line

Applied for -next, thanks.

Super, thanks.

Signature · 2 lines
Best regards,
Marek Vasut