USB-C Power Hub Design


Worked for 7 mins 5 sec
Referenced guidance.
1/3 Inspect current PCB placement, connectivity, and board constraints

Inspect current PCB placement, connectivity, and board constraints

Re-place components into three logical USB-C functional clusters

Reroute affected nets and verify DRC/airwires

Thought for 22 sec — Clarifying delegation needs
Thought for 3 sec — Planning execution steps
Referenced guidance.
Thought for 9 sec
Checking routing progress.
Getting a layout overview.
Looking at the board.
Reading schematic details.
Thought for 4 sec — Clarifying functional group details
Reading schematic details.
Reading schematic details.
Reading schematic details.
Reading schematic details.
Reading schematic details.
Thought for 27 sec
Moving footprints.
Moving footprints.
Moving footprints.
Moving footprints.
Thought for 4 sec
Moving footprints.
Moving footprints.
Thought for 4 sec
Moving footprints.
Thought for 3 sec — Planning inspection of stats
Moving footprints.
Thought for 9 sec — Figuring out connections and positions
Moving footprints.
Thought for 5 sec — Evaluating constraints and layout
Moving footprints.
Thought for 14 sec — Evaluating connector design
Moving footprints.
Thought for 35 sec
Moving footprints.
Moving footprints.
Thought for 3 sec
Moving footprints.
Thought for 11 sec — Determining movement summary
Moving footprints.
Thought for 1 min 5 sec — Rearranging layout elements
Moving footprints.
Thought for a moment — Evaluating coordinates and constraints
Moving footprints.
Moving footprints.
Thought for 5 sec — Fixing overlaps
Moving footprints.
Thought for 41 sec — Adjusting placement and constraints
Moving footprints.
Moving footprints.
Thought for 26 sec
Moving footprints.
Moving footprints.
Thought for 25 sec
Moving footprints.
Moving footprints.
Thought for 14 sec
Moving footprints.
Moving footprints.
Thought for 14 sec
Moving footprints.
Moving footprints.
Thought for a moment

Flux stopped


Firmware Control Notes
MCU
STM32G071CBT6, 3.3 V, SWD on PA13/PA14 with NRST on PF2. Internal oscillator is assumed for first bring-up; external crystals are not populated.
Current Pin Map

Table


MCU pinNet / functionNotes
PA9I2C_SCLShared PD-controller control bus
PA10I2C_SDAShared PD-controller control bus
PA13SWDIOCortex debug header
PA14SWCLK / BOOT0 pinDebug clock; boot option configuration must preserve SWD
PF2MCU_NRSTHeader reset and 100 nF reset filter
Controller Notes
  • U1 STUSB4500: sink contract status, alerts, PDO/NVM configuration and VBUS path enable. Validate I2C address strapping and official register map.
  • U2/U3 STUSB4710: source PDO selection and source enable. Their address straps must be made unique before firmware can share one I2C bus. The current first-pass schematic does not yet complete the address/PDO-select straps.
  • U4/U5/U6 TPS25983: route PG, IMON and fault handling to spare ADC/GPIO in revision 2. Firmware must not rely only on PD controller state.
Required State Machine
  1. Boot on housekeeping rail with all downstream source paths disabled.
  2. Read/confirm upstream contract and cable-current capability.
  3. Compute available input power using the lower of negotiated contract, thermal derating, and measured-current ceiling.
  4. Keep Pi port priority. Advertise 5.1 V/5 A only when a compliant 5 A cable and sufficient budget are confirmed; otherwise cap at 3 A or deny.
  5. Advertise only display PDOs that fit remaining budget. Program converter setpoint before enabling its source path.
  6. On contract reduction, overcurrent, overtemperature or PG loss: withdraw display high-power PDOs, renegotiate, disable display if necessary, then reduce/disable Pi only if safety requires.
  7. Command VBUS discharge on detach/fault and verify VBUS-safe state before changing setpoint or reconnecting.
Register / Validation To-Do
  • Import official STUSB4500 and STUSB4710 register maps and NVM/PDO programming procedure.
  • Confirm STUSB4710 supports the desired dynamic PDO update workflow and USB PD 3.0 interoperability.
  • Assign unique I2C addresses and interrupt GPIOs.
  • Add ADC scaling constants for input, Pi and display current monitors after shunt/IMON networks are finalized.
  • Define converter selector truth table or digital interface after the display power-stage redesign.
  • MCU

  • Current Pin Map

  • Controller Notes

  • Required State Machine

  • Register / Validation To-Do