# eyetrack_mipi_fpga
MIPI CSI-2 to USB converter using FPGA

## Hardware
 - Sipeed Tang Primer 25k (Gowin GW5A-LV25MG121NES)
 - Custom Tang Primer with triple Raspberry Pi Camera interface
 - FTDI-based JTAG programmer (Tang Primer 25k Dock)
 - Raspberry Pi camera V1 (OV5647 based)

## Architecture
 - FPGA connects directly to cameras with 2-lane MIPI D-PHY (CSI-2). 
 - FPGA uses a USB3317C PHY chip to connect with USB 2.0 over a Type-C port (no power delivery, just 5.1k ohm pulldowns on CC1/CC2). 
 - Camera data is sent using USB Video Class (UVC).