Skip to content

feat: VR voltage and current monitoring via TPS546 PMBus#8

Open
nathanmarlor wants to merge 3 commits into
WantClue:mainfrom
nathanmarlor:pr/power-monitoring
Open

feat: VR voltage and current monitoring via TPS546 PMBus#8
nathanmarlor wants to merge 3 commits into
WantClue:mainfrom
nathanmarlor:pr/power-monitoring

Conversation

@nathanmarlor
Copy link
Copy Markdown
Contributor

Summary

  • Add Power_get_vr_voltage() and Power_get_vr_current() using TPS546 PMBus (READ_VOUT / READ_IOUT)
  • Expose coreVoltageActual (now from PMBus, not ADC) and new vrCurrent field in system info API
  • Home dashboard power card now shows:
    • Input Current with dynamic rated-max marker
    • VR Voltage with setpoint marker
    • VR Current with 40A fault threshold marker and overcurrent warnings

Test plan

  • API returns accurate coreVoltageActual (V) and vrCurrent (A) from TPS546
  • VR Voltage and VR Current bars display correctly on home dashboard
  • Overcurrent warnings appear at 38A / 40A thresholds
  • Firmware builds cleanly

Shows ASIC current (A) with the same voltage-style progress bar:
- Scale 0-42A so the bar can show over-limit values
- Marker line at 40A max with label
- Warning shown if current exceeds 40A
- Reuses existing voltage-marker/progress-container CSS classes
- Warning at 38A (TPS546_INIT_IOUT_OC_WARN_LIMIT)
- Overcurrent fault message at 40A (TPS546_INIT_IOUT_OC_FAULT_LIMIT)
- Add Power_get_vr_voltage() via TPS546 READ_VOUT (PMBus)
- Add Power_get_vr_current() via TPS546 READ_IOUT (PMBus)
- Replace ADC-based coreVoltageActual with direct PMBus reading
- Expose vrCurrent field in system info API
- Power card order: power, input V/I, VR V/I, ASIC frequency
- Input current marker uses maxPower/voltage as dynamic limit
- VR current warnings at 38A (warn) and 40A (fault) thresholds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant