USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit
Subsystems (3)
PATCH v2 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.
--- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 12 insertions(+)
drivers/usb/serial/ftdi_sio.c +2 -0
@@ -873,6 +873,8 @@ 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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { 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 +10 -0
@@ -877,6 +877,16 @@#define FIC_VID 0x1457#define FIC_NEO1973_DEBUG_PID 0x5118 +/* +* Microsemi/Arrow SF2PLUS Dev Kit +* +* This board has an FT4232 on it which provides four UART ports. +* UART 0 is used by the FlashPro5 programmer, UART 2 is connected +* to the UART of an CortexM3 SoC-FPGA on the board. +*/ +#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
Johan Hovold
maintainerQuoted 4 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.
Thanks for verifying that you do not want to bind to interface 0.
Judging from the above description, it seems we can do even even better and only bind to interface 2 using
USB_DEVICE_INTERFACE_NUMBER()
since you only have one uart connected that you want to expose, right?
Quoted 34 lines
Note that the USB VID is registered to Actel according to Linux USB VID database, but that was acquired by Microsemi.
Signed-off-by Marek Vasut <[email protected]>Cc stable <[email protected]>Cc usb <[email protected]>Cc Johan Hovold <[email protected]>---
V2: - Move the ID inftdi_sio_ids.hto 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.--- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 12 insertions(+)drivers/usb/serial/ftdi_sio.c +2
-0@@ -873,6 +873,8 @@ 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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { 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 +0
-0
drivers/usb/serial/ftdi_sio_ids.h line 885
Quoted 9 lines
drivers/usb/serial/ftdi_sio_ids.h +6
-0@@ -877,6 +877,16 @@#define FIC_VID 0x1457#define FIC_NEO1973_DEBUG_PID 0x5118 +/* +* Microsemi/Arrow SF2PLUS Dev Kit +* +* This board has an FT4232 on it which provides four UART ports. +* UART 0 is used by the FlashPro5 programmer, UART 2 is connected +* to the UART of an CortexM3 SoC-FPGA on the board.
You can remove this comment (having it in the git history should be sufficient), and just make this a "Microsemi (formerly Actel)" header.
drivers/usb/serial/ftdi_sio_ids.h line 892
Quoted 7 lines
drivers/usb/serial/ftdi_sio_ids.h +4
-0+*/ +#define ACTEL_VID 0x1514 +#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID 0x2008 +/* Olimex */ #define OLIMEX_VID 0x15BA#define OLIMEX_ARM_USB_OCD_PID 0x0003
Thanks,
Johan
Quoted 6 lines · Johan Hovold
Quoted 4 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.
Quoted 8 lines
Thanks for verifying that you do not want to bind to interface 0.
Judging from the above description, it seems we can do even even better and only bind to interface 2 using
USB_DEVICE_INTERFACE_NUMBER()since you only have one uart connected that you want to expose, right?
Yes
Quoted 37 lines
Quoted 37 lines
Note that the USB VID is registered to Actel according to Linux USB VID database, but that was acquired by Microsemi.
Signed-off-by Marek Vasut <[email protected]>Cc stable <[email protected]>Cc usb <[email protected]>Cc Johan Hovold <[email protected]>---
V2: - Move the ID inftdi_sio_ids.hto 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.--- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 12 insertions(+)drivers/usb/serial/ftdi_sio.c +2
-0@@ -873,6 +873,8 @@ 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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { 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 +0
-0@@ -877,6 +877,16 @@#define FIC_VID 0x1457#define FIC_NEO1973_DEBUG_PID 0x5118
Quoted 9 lines
drivers/usb/serial/ftdi_sio_ids.h line 885
Quoted 6 lines
drivers/usb/serial/ftdi_sio_ids.h +6
-0+/* +* Microsemi/Arrow SF2PLUS Dev Kit +* +* This board has an FT4232 on it which provides four UART ports. +* UART 0 is used by the FlashPro5 programmer, UART 2 is connected +* to the UART of an CortexM3 SoC-FPGA on the board. You can remove this comment (having it in the git history should be sufficient), and just make this a "Microsemi (formerly Actel)" header.
OK
Quoted 11 lines
drivers/usb/serial/ftdi_sio_ids.h line 892
Quoted 7 lines
drivers/usb/serial/ftdi_sio_ids.h +4
-0+*/ +#define ACTEL_VID 0x1514 +#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID 0x2008 +/* Olimex */ #define OLIMEX_VID 0x15BA#define OLIMEX_ARM_USB_OCD_PID 0x0003Thanks,
Johan
Signature · 2 lines
Best regards, Marek Vasut