USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit
Subsystems (3)
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.
--- drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 11 insertions(+)
drivers/usb/serial/ftdi_sio.c +1 -0
@@ -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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID) }, { 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
@@ -627,6 +627,16 @@#define MICROCHIP_USB_BOARD_PID 0x000A/* CDC RS-232 Emulation Demo */ /* +* 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 + +/* * RATOC REX-USB60F */ #define RATOC_VENDOR_ID 0x0584
Signature · 1 line
2.11.0
Johan Hovold
maintainer[+CC: linux-usb]
Always make sure to CC linux-usb for USB patches.
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.
Don't you want to use the "jtag" quirk for this one then to prevent the driver from binding to interface 0? Or do you still need this interface to be accessible as a tty device?
Quoted 30 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 Johan Hovold <[email protected]>--- drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 11 insertions(+)drivers/usb/serial/ftdi_sio.c +1
-0@@ -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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID) }, { 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@@ -627,6 +627,16 @@#define MICROCHIP_USB_BOARD_PID 0x000A/* CDC RS-232 Emulation Demo */
drivers/usb/serial/ftdi_sio_ids.h line 638
Quoted 10 lines
drivers/usb/serial/ftdi_sio_ids.h +9
-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. +*/ +#define ACTEL_VID 0x1514 +#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID 0x2008 +
Please place this before the Olimex section to try to maintain some order based on VID.
drivers/usb/serial/ftdi_sio_ids.h line 642
Quoted 4 lines
drivers/usb/serial/ftdi_sio_ids.h +1
-0+/* * RATOC REX-USB60F */ #define RATOC_VENDOR_ID 0x0584
Thanks,
Johan
Quoted 3 lines · Johan Hovold
[+CC: linux-usb]
Always make sure to CC linux-usb for USB patches.
Got it
Quoted 9 lines · Marek Vasut
Quoted 4 lines
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.
Don't you want to use the "jtag" quirk for this one then to prevent the driver from binding to interface 0? Or do you still need this interface to be accessible as a tty device?
I will check that next week as I don't have access to the HW this week.
Quoted 30 lines
Quoted 30 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 Johan Hovold <[email protected]>--- drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 11 insertions(+)drivers/usb/serial/ftdi_sio.c +1
-0@@ -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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID) }, { 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@@ -627,6 +627,16 @@#define MICROCHIP_USB_BOARD_PID 0x000A/* CDC RS-232 Emulation Demo */
Quoted 13 lines
drivers/usb/serial/ftdi_sio_ids.h line 638
Quoted 10 lines
drivers/usb/serial/ftdi_sio_ids.h +9
-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. +*/ +#define ACTEL_VID 0x1514 +#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID 0x2008 +Please place this before the Olimex section to try to maintain some order based on VID.
So ordering of the file is based on the VIDs , got it and done.
Quoted 8 lines
drivers/usb/serial/ftdi_sio_ids.h line 642
Quoted 4 lines
drivers/usb/serial/ftdi_sio_ids.h +1
-0+/* * RATOC REX-USB60F */ #define RATOC_VENDOR_ID 0x0584Thanks,
Johan
Signature · 2 lines
Best regards, Marek Vasut
Quoted 5 lines · Johan Hovold
[+CC: linux-usb]
Always make sure to CC linux-usb for USB patches.
On Fri, Feb 10, 2017 at 05:16:12PM +0100, Marek Vasut wrote:
Quoted 8 lines
Quoted 4 lines
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.
Don't you want to use the "jtag" quirk for this one then to prevent the driver from binding to interface 0? Or do you still need this interface to be accessible as a tty device?
I just got the programmer working and yes, I need the JTAG quirk, thanks for pointing that out. V2 is out.
NOTE that the MS Libero software experience on Linux is really abysmal, neither the flashpro5 or flashpro express are usable, one has to use the inobvious "configure programmer" in the libero gui after the synthesis was done to make the programmer usable. And that's not the only inobvious thing when it comes to Microsemi ... :(
Quoted 30 lines
Quoted 30 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 Johan Hovold <[email protected]>--- drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 10 ++++++++++ 2 files changed, 11 insertions(+)drivers/usb/serial/ftdi_sio.c +1
-0@@ -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(ACTEL_VID, MICROSEMI_ARROW_SF2PLUS_BOARD_PID) }, { 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@@ -627,6 +627,16 @@#define MICROCHIP_USB_BOARD_PID 0x000A/* CDC RS-232 Emulation Demo */
Quoted 13 lines
drivers/usb/serial/ftdi_sio_ids.h line 638
Quoted 10 lines
drivers/usb/serial/ftdi_sio_ids.h +9
-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. +*/ +#define ACTEL_VID 0x1514 +#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID 0x2008 +Please place this before the Olimex section to try to maintain some order based on VID.
Done
Signature · 2 lines
Best regards, Marek Vasut