Skip to contentSkip to conversation

Support FlashPro5 serial ports

PATCH In review Andreas Messer 2 participants 3 messages Oct 30, 2025 – Oct 31, 2025

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

PATCH 1/1 Support FlashPro5 serial ports

Hello,

I'm currently working with a Microchip Polarfire Discovery Kit. It has integrated a FTDI USB Converter IC connected to JTAG and 3x UART of the SoC in the kit. It identifies itself on USB as "Microsemi Embedded FlashPro5"

Only one of the UART ports is working with the current ftdio_sio driver. I found a device id entry for Microsemi Arrow SF2+ Board
which has same Vendor & Product ID like my board but enables only one UART.

I have added more entries to the device list to make all UART Channels working with my board. However it will make these UARTS show up with SF2+ Board too. I found at least four different device which have the same Vendor/Product ID, but I assume there are more:

- Trenz SMF2000: FT2232H
Channel A -> JTAG, Channel B -> UART

- Microchip Polarfire Discovery Kit: FT4232H
Channel A -> JTAG, Channel B/C/D -> UART

- Microsemi/Microchip FlashPro5: FT4232H
Channel A -> JTAG

- Arrow SF2+ Development Kit:
Channel A -> JTAG, Channel C -> UART

Not sure what would be the proper solution, attached my changes.

Best regards,
Andreas

---
 drivers/usb/serial/ftdi_sio.c     | 4 +++-
 drivers/usb/serial/ftdi_sio_ids.h | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/usb/serial/ftdi_sio.c +3 -1
index 49666c33b41f..44f35aeb0b04 100644
@@ -908,7 +908,9 @@ 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_INTERFACE_NUMBER(ACTEL_VID, MICROSEMI_FLASHPRO5_PID, 1) },
+	{ USB_DEVICE_INTERFACE_NUMBER(ACTEL_VID, MICROSEMI_FLASHPRO5_PID, 2) },
+	{ USB_DEVICE_INTERFACE_NUMBER(ACTEL_VID, MICROSEMI_FLASHPRO5_PID, 3) },
 	{ 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 +1 -1
index 4cc1fae8acb9..7e4eb4c3295b 100644
@@ -929,7 +929,7 @@
  * Actel / Microsemi
  */
 #define ACTEL_VID				0x1514
-#define MICROSEMI_ARROW_SF2PLUS_BOARD_PID	0x2008
+#define MICROSEMI_FLASHPRO5_PID	0x2008
 
 /* Olimex */
 #define OLIMEX_VID			0x15BA
Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 13 lines · Andreas Messer

I'm currently working with a Microchip Polarfire Discovery Kit. It has integrated a FTDI USB Converter IC connected to JTAG and 3x UART of the SoC in the kit. It identifies itself on USB as "Microsemi Embedded FlashPro5"

Only one of the UART ports is working with the current ftdio_sio driver. I found a device id entry for Microsemi Arrow SF2+ Board
which has same Vendor & Product ID like my board but enables only one UART.

I have added more entries to the device list to make all UART Channels working with my board. However it will make these UARTS show up with SF2+ Board too. I found at least four different device which have the same Vendor/Product ID, but I assume there are more:

Quoted 5 lines

- Trenz SMF2000: FT2232H
Channel A -> JTAG, Channel B -> UART

- Microchip Polarfire Discovery Kit: FT4232H
Channel A -> JTAG, Channel B/C/D -> UART

Where did you find these two? Do you have access to the devices?

Quoted 2 lines

- Microsemi/Microchip FlashPro5: FT4232H
Channel A -> JTAG

I guess you forgot "Channel B/C/D -> UART" here?

Quoted 4 lines

- Arrow SF2+ Development Kit:
Channel A -> JTAG, Channel C -> UART

Not sure what would be the proper solution, attached my changes.

It would be good to avoid enabling unused ports on devices that only have one UART (e.g. to avoid regressing udev rules).

You could use something like ftdi_8u2232c_probe() and only enable the other ports (i.e. B and D) after comparing the product name to a whitelist.

Johan

#2 lore raw

Am Fri, Oct 31, 2025 at 02:40:23PM +0100 schrieb Johan Hovold:

Quoted 7 lines · Andreas Messer
Quoted 6 lines

I have added more entries to the device list to make all UART Channels working with my board. However it will make these UARTS show up with SF2+ Board too. I found at least four different device which have the same Vendor/Product ID, but I assume there are more:

Quoted 7 lines
Quoted 5 lines

- Trenz SMF2000: FT2232H
Channel A -> JTAG, Channel B -> UART

- Microchip Polarfire Discovery Kit: FT4232H
Channel A -> JTAG, Channel B/C/D -> UART

Where did you find these two? Do you have access to the devices?

For the Trenz I found the information in the web here:

https://wiki.trenz-electronic.de/display/PD/TEM0001+TRM

I own the Discovery Kit but the schematic is also public available here:

https://ww1.microchip.com/downloads/aemDocuments/documents/FPGA/ProductDocuments/BoardDesignFiles/PolarFire_SoC_Discovery_Kit_Schematics.zip

Quoted 4 lines
Quoted 2 lines

- Microsemi/Microchip FlashPro5: FT4232H
Channel A -> JTAG

I guess you forgot "Channel B/C/D -> UART" here?

No, the standalone FlashPro5 hardware has only a JTAG Port

https://www.microchip.com/en-us/development-tool/flashpro5

Quoted 6 lines

It would be good to avoid enabling unused ports on devices that only have one UART (e.g. to avoid regressing udev rules).

You could use something like ftdi_8u2232c_probe() and only enable the other ports (i.e. B and D) after comparing the product name to a whitelist.

Ok, I'll have a look at it and try to come with a solution. Thanks for the pointer!

Andreas

Signature · 2 lines
gnuPG keyid: 8C2BAF51
fingerprint: 28EE 8438 E688 D992 3661 C753 90B3 BAAA 8C2B AF51