Problem Description
I'm working on a project that requires a Raspberry Pi 5 to function as a USB OTG/gadget device (specifically as a UVC device) while being powered by an external power supply. I previously had this working with a Raspberry Pi 4, but I'm encountering issues getting it to work with the Pi 5.
My Setup
Hardware:
- Raspberry Pi 5
- External 5V 10A bench power supply
- USB-C breakout board (female port with all 24 pads including VBUS, GND, D+, D-, CC1, CC2, etc.)
- Standard USB cable for data connection
Connections:
- CC1: Connected to ground via 5.1kΩ resistor
- CC2: Connected to ground via 5.1kΩ resistor
- VBUS & GND from breakout board: Connected to positive and ground terminals of power supply
- D+ & D- and GND: Connected to a 4-pin USB cable (with VBUS not connected on the cable)
Goal:
- Have the Pi 5 operate in OTG/gadget mode as a UVC device
- Power the Pi from an external power supply instead of the USB host
- Eventually integrate with a battery charger with power path management and C-type plug detection
Issues
- Main problem: The Pi 5 is not being detected as a UVC device by the host computer
- Important note: The exact same setup works correctly with a Raspberry Pi 4
What I've Tried
- Added 5.1kΩ pulldown resistors on CC1 and CC2 to ground (standard UFP/device mode signaling)
- Confirmed power supply is adequate (5V 10A)
- Checked that data lines (D+/D-) are properly connected
- Verified the setup works on Raspberry Pi 4 with identical connections
Questions
- Does the Raspberry Pi 5 require different configuration for USB OTG/gadget mode compared to the Pi 4?
- Is there a specific software configuration needed for the Pi 5 to enable proper UVC gadget functionality?
- Are there different USB-C CC pin requirements for the Pi 5 vs Pi 4 when operating in device mode?
- How can I verify if the Pi 5 is properly entering gadget mode through system logs?
Any help or guidance would be greatly appreciated. I need this setup for a project where the Pi needs to operate both as a USB device connected to a computer and as a standalone unit with external power.
System Information
- Raspberry Pi 5
- Raspberry Pi OS (raspbian latest lts version)