* [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
@ 2025-02-03 8:48 Boon Khai Ng
2025-03-04 5:25 ` Ng, Boon Khai
2025-03-05 14:24 ` Johan Hovold
0 siblings, 2 replies; 13+ messages in thread
From: Boon Khai Ng @ 2025-02-03 8:48 UTC (permalink / raw)
To: Johan Hovold, Greg Kroah-Hartman, linux-usb, linux-kernel,
Tien Sung Ang
Cc: Tien Sung Ang, Boon Khai Ng, Boon Khai Ng
The Altera on board USB Blaster 3 utilizes a FT2232 and FT4232
chip.
Add VID/PID for the on board USB Blaster 3 so it can be used
as a serial device via ftdi_sio.
Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>
---
drivers/usb/serial/ftdi_sio.c | 14 ++++++++++++++
drivers/usb/serial/ftdi_sio_ids.h | 13 +++++++++++++
2 files changed, 27 insertions(+)
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index e07c5e3eb18c..3edce9c62213 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -1079,6 +1079,20 @@ static const struct usb_device_id id_table_combined[] = {
.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
/* GMC devices */
{ USB_DEVICE(GMC_VID, GMC_Z216C_PID) },
+ /* Altera USB Blaster 3 */
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6022_PID, 1) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6025_PID, 2) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6026_PID, 2) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6026_PID, 3) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6029_PID, 2) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602A_PID, 2) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602A_PID, 3) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602C_PID, 1) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602D_PID, 1) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602D_PID, 2) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602E_PID, 1) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602E_PID, 2) },
+ { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602E_PID, 3) },
{ } /* Terminating entry */
};
diff --git a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h
index 5ee60ba2a73c..673e0cf84bdc 100644
--- a/drivers/usb/serial/ftdi_sio_ids.h
+++ b/drivers/usb/serial/ftdi_sio_ids.h
@@ -1612,3 +1612,16 @@
*/
#define GMC_VID 0x1cd7
#define GMC_Z216C_PID 0x0217 /* GMC Z216C Adapter IR-USB */
+
+/*
+ * Altera USB Blaster 3 (http://www.altera.com).
+ */
+#define ALTR_UB3_VID 0x09fb
+#define ALTR_UB3_6022_PID 0x6022
+#define ALTR_UB3_6025_PID 0x6025
+#define ALTR_UB3_6026_PID 0x6026
+#define ALTR_UB3_6029_PID 0x6029
+#define ALTR_UB3_602A_PID 0x602A
+#define ALTR_UB3_602C_PID 0x602C
+#define ALTR_UB3_602D_PID 0x602D
+#define ALTR_UB3_602E_PID 0x602E
--
2.25.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-02-03 8:48 [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3 Boon Khai Ng
@ 2025-03-04 5:25 ` Ng, Boon Khai
2025-03-04 5:32 ` Greg Kroah-Hartman
2025-03-05 14:24 ` Johan Hovold
1 sibling, 1 reply; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-04 5:25 UTC (permalink / raw)
To: Johan Hovold, Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung
Cc: Tien Sung Ang, Boon Khai Ng
Hi Greg, Johan,
I hope you are doing well.
I'm writing to follow up on this patch I submitted for the USB FDTI driver to update the VID and PID about a month ago.
I wanted to kindly check in and inquire if there are any updates regarding the review or integration of the patch.
If there are any issues or additional information required from my side, please let me know how I can assist in moving it forward.
I completely understand that you have a lot on your plates, but I would appreciate any guidance on the next steps to get the patch reviewed and potentially merged.
Thank you for your time and attention to this, and I look forward to your feedback.
Regards,
Boon Khai
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-04 5:25 ` Ng, Boon Khai
@ 2025-03-04 5:32 ` Greg Kroah-Hartman
2025-03-04 7:29 ` Johan Hovold
0 siblings, 1 reply; 13+ messages in thread
From: Greg Kroah-Hartman @ 2025-03-04 5:32 UTC (permalink / raw)
To: Ng, Boon Khai
Cc: Johan Hovold, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Tien Sung Ang,
Boon Khai Ng
On Tue, Mar 04, 2025 at 05:25:38AM +0000, Ng, Boon Khai wrote:
> Hi Greg, Johan,
>
> I hope you are doing well.
>
> I'm writing to follow up on this patch I submitted for the USB FDTI driver to update the VID and PID about a month ago.
>
> I wanted to kindly check in and inquire if there are any updates regarding the review or integration of the patch.
> If there are any issues or additional information required from my side, please let me know how I can assist in moving it forward.
>
> I completely understand that you have a lot on your plates, but I would appreciate any guidance on the next steps to get the patch reviewed and potentially merged.
>
> Thank you for your time and attention to this, and I look forward to your feedback.
Should be in Johan's queue somewhere, if not, please just resend it.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-04 5:32 ` Greg Kroah-Hartman
@ 2025-03-04 7:29 ` Johan Hovold
2025-03-04 9:14 ` Ng, Boon Khai
0 siblings, 1 reply; 13+ messages in thread
From: Johan Hovold @ 2025-03-04 7:29 UTC (permalink / raw)
To: Greg Kroah-Hartman, Ng, Boon Khai
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Ang, Tien Sung, Tien Sung Ang, Boon Khai Ng
On Tue, Mar 04, 2025 at 06:32:46AM +0100, Greg Kroah-Hartman wrote:
> On Tue, Mar 04, 2025 at 05:25:38AM +0000, Ng, Boon Khai wrote:
> > I'm writing to follow up on this patch I submitted for the USB FDTI driver to update the VID and PID about a month ago.
> >
> > I wanted to kindly check in and inquire if there are any updates regarding the review or integration of the patch.
> > If there are any issues or additional information required from my side, please let me know how I can assist in moving it forward.
> Should be in Johan's queue somewhere, if not, please just resend it.
It's still in my queue. I plan to do another pass this week so I'll get
back to you shortly.
Johan
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-04 7:29 ` Johan Hovold
@ 2025-03-04 9:14 ` Ng, Boon Khai
0 siblings, 0 replies; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-04 9:14 UTC (permalink / raw)
To: Johan Hovold, Greg Kroah-Hartman
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Ang, Tien Sung, Tien Sung Ang, Boon Khai Ng
> Should be in Johan's queue somewhere, if not, please just resend it.
> thanks,
> greg k-h
> It's still in my queue. I plan to do another pass this week so I'll get back to you
> shortly.
>
> Johan
Hi Greg, Johan.
Thanks for the update! I appreciate you taking the time to review it. I look forward to hearing back from you after that.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-02-03 8:48 [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3 Boon Khai Ng
2025-03-04 5:25 ` Ng, Boon Khai
@ 2025-03-05 14:24 ` Johan Hovold
2025-03-05 19:56 ` David Laight
2025-03-06 3:22 ` Ng, Boon Khai
1 sibling, 2 replies; 13+ messages in thread
From: Johan Hovold @ 2025-03-05 14:24 UTC (permalink / raw)
To: Boon Khai Ng
Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Tien Sung Ang,
Tien Sung Ang, Boon Khai Ng
On Mon, Feb 03, 2025 at 04:48:22PM +0800, Boon Khai Ng wrote:
> The Altera on board USB Blaster 3 utilizes a FT2232 and FT4232
> chip.
I assume it's either an FT2243 or an FT4232 and not both?
> Add VID/PID for the on board USB Blaster 3 so it can be used
> as a serial device via ftdi_sio.
Can you say something more about these devices? I guess they are used
for programming FPGAs? Are they embedded in other products? And can the
same PID be used for more than one type of device that they are embedded
in?
Or are the PIDs tied to different types of "USB Blaster 3"s? If so this,
should also be reflected in the naming of the defines.
> Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>
> ---
> drivers/usb/serial/ftdi_sio.c | 14 ++++++++++++++
> drivers/usb/serial/ftdi_sio_ids.h | 13 +++++++++++++
> 2 files changed, 27 insertions(+)
>
> diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
> index e07c5e3eb18c..3edce9c62213 100644
> --- a/drivers/usb/serial/ftdi_sio.c
> +++ b/drivers/usb/serial/ftdi_sio.c
> @@ -1079,6 +1079,20 @@ static const struct usb_device_id id_table_combined[] = {
> .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
> /* GMC devices */
> { USB_DEVICE(GMC_VID, GMC_Z216C_PID) },
> + /* Altera USB Blaster 3 */
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6022_PID, 1) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6025_PID, 2) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6026_PID, 2) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6026_PID, 3) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_6029_PID, 2) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602A_PID, 2) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602A_PID, 3) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602C_PID, 1) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602D_PID, 1) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602D_PID, 2) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602E_PID, 1) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602E_PID, 2) },
> + { USB_DEVICE_INTERFACE_NUMBER(ALTR_UB3_VID, ALTR_UB3_602E_PID, 3) },
> { } /* Terminating entry */
> };
>
> diff --git a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h
> index 5ee60ba2a73c..673e0cf84bdc 100644
> --- a/drivers/usb/serial/ftdi_sio_ids.h
> +++ b/drivers/usb/serial/ftdi_sio_ids.h
> @@ -1612,3 +1612,16 @@
> */
> #define GMC_VID 0x1cd7
> #define GMC_Z216C_PID 0x0217 /* GMC Z216C Adapter IR-USB */
> +
> +/*
> + * Altera USB Blaster 3 (http://www.altera.com).
> + */
> +#define ALTR_UB3_VID 0x09fb
This is a generic Altera VID so should just be name ALTERA_VID.
> +#define ALTR_UB3_6022_PID 0x6022
> +#define ALTR_UB3_6025_PID 0x6025
> +#define ALTR_UB3_6026_PID 0x6026
> +#define ALTR_UB3_6029_PID 0x6029
> +#define ALTR_UB3_602A_PID 0x602A
> +#define ALTR_UB3_602C_PID 0x602C
> +#define ALTR_UB3_602D_PID 0x602D
> +#define ALTR_UB3_602E_PID 0x602E
Please use lower case hex notation consistently for the values here.
But depending on the answer to my questions above, either these defines
should be renamed to reflect the Blaster type or product they are part
of, or just be dropped.
Johan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-05 14:24 ` Johan Hovold
@ 2025-03-05 19:56 ` David Laight
2025-03-06 5:20 ` Ng, Boon Khai
2025-03-06 3:22 ` Ng, Boon Khai
1 sibling, 1 reply; 13+ messages in thread
From: David Laight @ 2025-03-05 19:56 UTC (permalink / raw)
To: Johan Hovold
Cc: Boon Khai Ng, Greg Kroah-Hartman, linux-usb, linux-kernel,
Tien Sung Ang, Tien Sung Ang, Boon Khai Ng
On Wed, 5 Mar 2025 15:24:53 +0100
Johan Hovold <johan@kernel.org> wrote:
> On Mon, Feb 03, 2025 at 04:48:22PM +0800, Boon Khai Ng wrote:
> > The Altera on board USB Blaster 3 utilizes a FT2232 and FT4232
> > chip.
>
> I assume it's either an FT2243 or an FT4232 and not both?
>
> > Add VID/PID for the on board USB Blaster 3 so it can be used
> > as a serial device via ftdi_sio.
>
> Can you say something more about these devices? I guess they are used
> for programming FPGAs? Are they embedded in other products? And can the
> same PID be used for more than one type of device that they are embedded
> in?
Also, is there any actual software that can use them through this driver?
The Altera 'quartus' software that is usually used to program (etc) the
fpga is pretty proprietary.
I think some bits have been reverse engineered, but only for a few simple
actions.
I'm not even sure the Altera code even loads a driver - just uses the userspace
USB library.
I'll have used it on a system with a custom kernel to program (etc) a CycloneV.
No hint of needing to recompile a driver.
(The sheer amount of software you need to command-line program a device is
stunning! - I had to parcel it all up so we could use a usb to jtag cable
to in-situ program one of the smaller PLD devices on a small board.)
So what is the real 'use case'?
David
>
> Or are the PIDs tied to different types of "USB Blaster 3"s? If so this,
> should also be reflected in the naming of the defines.
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-05 14:24 ` Johan Hovold
2025-03-05 19:56 ` David Laight
@ 2025-03-06 3:22 ` Ng, Boon Khai
2025-03-06 4:17 ` Ng, Boon Khai
2025-03-06 9:29 ` Johan Hovold
1 sibling, 2 replies; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-06 3:22 UTC (permalink / raw)
To: Johan Hovold
Cc: Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Tien Sung Ang,
Boon Khai Ng
> I assume it's either an FT2243 or an FT4232 and not both?
Hi John, you are right, it is either FT2243 or FT4232. Will re-word that
> Can you say something more about these devices? I guess they are used for
> programming FPGAs? Are they embedded in other products?
There are 2 type of designs, USB Blaster 3 cable or On-Board USB Blaster 3.
They are mainly used to connect debug or configuration software. Supported host
software includes Quartus programmer, System Console, SignalTap,
Nios debugger.
> And can the
> same PID be used for more than one type of device that they are embedded
> in?
> Or are the PIDs tied to different types of "USB Blaster 3"s? If so this, should
> also be reflected in the naming of the defines.
The PID is associated with how the ports are connected, and
which FDTI Chip are used for example:
PID: 0x6020
Description: One JTAG Port
FTDI Chip FT2232
Port A: USB Blaster 3
Port B: Not used
PID: 0x6021
Description: Two JTAG Port
FTDI Chip FT2232
Port A: USB Blaster 3
Port B: USB Blaster 3
...
PID: 0x602E
Description: One JTAG Port + UART (Port B, C, D)
FTDI Chip FT2232
Port A: USB Blaster 3
Port B: UART
Port C: UART
Port D: UART
> This is a generic Altera VID so should just be name ALTERA_VID.
Will update in the next version.
>
> > +#define ALTR_UB3_6022_PID 0x6022
> > +#define ALTR_UB3_6025_PID 0x6025
> > +#define ALTR_UB3_6026_PID 0x6026
> > +#define ALTR_UB3_6029_PID 0x6029
> > +#define ALTR_UB3_602A_PID 0x602A
> > +#define ALTR_UB3_602C_PID 0x602C
> > +#define ALTR_UB3_602D_PID 0x602D
> > +#define ALTR_UB3_602E_PID 0x602E
>
> Please use lower case hex notation consistently for the values here.
Will update in the next version.
>
> But depending on the answer to my questions above, either these defines
> should be renamed to reflect the Blaster type or product they are part of, or
> just be dropped.
The PID are not tied to specific product, however it is tied with how the Port are connected
and how which FDTI chip are used. (FT2243 or FT4232).
>
> Johan
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-06 3:22 ` Ng, Boon Khai
@ 2025-03-06 4:17 ` Ng, Boon Khai
2025-03-06 9:29 ` Johan Hovold
1 sibling, 0 replies; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-06 4:17 UTC (permalink / raw)
To: Johan Hovold
Cc: Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Tien Sung Ang,
Boon Khai Ng
> PID: 0x602E
> Description: One JTAG Port + UART (Port B, C, D)
> FTDI Chip FT2232
Correction: FTDI Chip FT4232
> Port A: USB Blaster 3
> Port B: UART
> Port C: UART
> Port D: UART
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-05 19:56 ` David Laight
@ 2025-03-06 5:20 ` Ng, Boon Khai
0 siblings, 0 replies; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-06 5:20 UTC (permalink / raw)
To: David Laight, Johan Hovold
Cc: Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Ang, Tien Sung,
Ng, Boon Khai
> Also, is there any actual software that can use them through this driver?
> The Altera 'quartus' software that is usually used to program (etc) the fpga is
> pretty proprietary.
> I think some bits have been reverse engineered, but only for a few simple
> actions.
Hi David,
The software that mainly connect to this fdti driver are the
debug or configuration software, includes Quartus programmer,
System Console, SignalTap, Nios debugger etc.
>
> I'm not even sure the Altera code even loads a driver - just uses the userspace
> USB library.
No, those software are not loading the driver, it just access it from the ftdi_sio.
> I'll have used it on a system with a custom kernel to program (etc) a CycloneV.
> No hint of needing to recompile a driver.
> (The sheer amount of software you need to command-line program a device is
> stunning! - I had to parcel it all up so we could use a usb to jtag cable to in-situ
> program one of the smaller PLD devices on a small board.)
>
> So what is the real 'use case'?
Cyclone V should be an older family device,
But for this use case it is to support mainly 2 use cases on the USB Blaster 3.
1) USB Blaster 3 cable
2) On Board USB Blaster 3.
The hardware designers will decide, what kind of configuration needed on the board.
We have total 8 types of configurations.
1) PID 0x6020, FT2232, 1 JTAG port
2) PID 0x6021, FT2232, 2 JTAG ports
3) PID 0x6022, FT2232, 1 JTAG port + Port B as UART
4) PID 0x6023, FT2232, Cable USB-Blaster 3
5) PID 0x6024, FT4232, 1 JTAG port
6) PID 0x6025, FT4232, 1 JTAG port + Port C as UART
7) PID 0x6026, FT4232, 1 JTAG port + Port C, D as UART
8) PID 0x602e, FT4232, 1 JTAG port + Port B, C, D as UART
Regards
Boon Khai
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-06 3:22 ` Ng, Boon Khai
2025-03-06 4:17 ` Ng, Boon Khai
@ 2025-03-06 9:29 ` Johan Hovold
2025-03-06 10:25 ` Ng, Boon Khai
1 sibling, 1 reply; 13+ messages in thread
From: Johan Hovold @ 2025-03-06 9:29 UTC (permalink / raw)
To: Ng, Boon Khai
Cc: Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Tien Sung Ang,
Boon Khai Ng
On Thu, Mar 06, 2025 at 03:22:53AM +0000, Ng, Boon Khai wrote:
> > I assume it's either an FT2243 or an FT4232 and not both?
>
> Hi John, you are right, it is either FT2243 or FT4232. Will re-word that
>
> > Can you say something more about these devices? I guess they are used for
> > programming FPGAs? Are they embedded in other products?
>
> There are 2 type of designs, USB Blaster 3 cable or On-Board USB Blaster 3.
> They are mainly used to connect debug or configuration software. Supported host
> software includes Quartus programmer, System Console, SignalTap,
> Nios debugger.
Thanks for the background. It would be good to have something like this
in the commit message.
> > And can the
> > same PID be used for more than one type of device that they are embedded
> > in?
> > Or are the PIDs tied to different types of "USB Blaster 3"s? If so this, should
> > also be reflected in the naming of the defines.
>
> The PID is associated with how the ports are connected, and
> which FDTI Chip are used for example:
>
> PID: 0x6020
> Description: One JTAG Port
> FTDI Chip FT2232
> Port A: USB Blaster 3
> Port B: Not used
>
> PID: 0x6021
> Description: Two JTAG Port
> FTDI Chip FT2232
> Port A: USB Blaster 3
> Port B: USB Blaster 3
>
> ...
>
> PID: 0x602E
> Description: One JTAG Port + UART (Port B, C, D)
> FTDI Chip FT2232
> Port A: USB Blaster 3
> Port B: UART
> Port C: UART
> Port D: UART
Got it, thanks. Also here it would be good to include something like the
above, or a compact table like you provided in your reply to David, in
the commit message to have some overview of the configurations that the
patch is adding.
> > > +#define ALTR_UB3_6022_PID 0x6022
> > > +#define ALTR_UB3_6025_PID 0x6025
> > > +#define ALTR_UB3_6026_PID 0x6026
> > > +#define ALTR_UB3_6029_PID 0x6029
> > > +#define ALTR_UB3_602A_PID 0x602A
> > > +#define ALTR_UB3_602C_PID 0x602C
> > > +#define ALTR_UB3_602D_PID 0x602D
> > > +#define ALTR_UB3_602E_PID 0x602E
> > But depending on the answer to my questions above, either these defines
> > should be renamed to reflect the Blaster type or product they are part of, or
> > just be dropped.
>
> The PID are not tied to specific product, however it is tied with how the Port are connected
> and how which FDTI chip are used. (FT2243 or FT4232).
Then it should be fine to keep the PID in the define name. Just replace
"ALTR" with "ALTERA" for consistency with the renamed VID define.
Johan
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-06 9:29 ` Johan Hovold
@ 2025-03-06 10:25 ` Ng, Boon Khai
2025-03-07 16:00 ` Ng, Boon Khai
0 siblings, 1 reply; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-06 10:25 UTC (permalink / raw)
To: Johan Hovold
Cc: Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Tien Sung Ang,
Boon Khai Ng
> > There are 2 type of designs, USB Blaster 3 cable or On-Board USB Blaster 3.
> > They are mainly used to connect debug or configuration software.
> > Supported host software includes Quartus programmer, System Console,
> > SignalTap, Nios debugger.
>
> Thanks for the background. It would be good to have something like this in the
> commit message.
>
Will add that in the next version.
> Got it, thanks. Also here it would be good to include something like the above,
> or a compact table like you provided in your reply to David, in the commit
> message to have some overview of the configurations that the patch is
> adding.
>
Sure, adding that in the next version as well.
> Then it should be fine to keep the PID in the define name. Just replace "ALTR"
> with "ALTERA" for consistency with the renamed VID define.
>
Okay, will update all ALTR define, to ALTERA, to align with the proposed
VID define earlier.
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3
2025-03-06 10:25 ` Ng, Boon Khai
@ 2025-03-07 16:00 ` Ng, Boon Khai
0 siblings, 0 replies; 13+ messages in thread
From: Ng, Boon Khai @ 2025-03-07 16:00 UTC (permalink / raw)
To: Johan Hovold
Cc: Greg Kroah-Hartman, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Ang, Tien Sung, Tien Sung Ang,
Boon Khai Ng
Hi All,
Thank you for the kind review and for your patience in going through the patch.
Really appreciate the feedback, and based on the comments I have submitted
a v2 patch at the link below with the necessary improvements. Let me know if
if there is anything else I should refine.
https://patchwork.kernel.org/project/linux-usb/patch/20250307154355.30772-1-boon.khai.ng@intel.com/
Regards,
Boon Khai.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2025-03-07 16:01 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 8:48 [PATCH v1] USB: serial: ftdi_sio: add support for Altera USB Blaster 3 Boon Khai Ng
2025-03-04 5:25 ` Ng, Boon Khai
2025-03-04 5:32 ` Greg Kroah-Hartman
2025-03-04 7:29 ` Johan Hovold
2025-03-04 9:14 ` Ng, Boon Khai
2025-03-05 14:24 ` Johan Hovold
2025-03-05 19:56 ` David Laight
2025-03-06 5:20 ` Ng, Boon Khai
2025-03-06 3:22 ` Ng, Boon Khai
2025-03-06 4:17 ` Ng, Boon Khai
2025-03-06 9:29 ` Johan Hovold
2025-03-06 10:25 ` Ng, Boon Khai
2025-03-07 16:00 ` Ng, Boon Khai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox