DBG-15 Board revision and variant not readable by firmware¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | judgement, depends on NET-12 (candidates: ADC pins with a fixed divider, strap pins |
Looks at. Intent (which pins or dividers encode the board).
What it catches. No way for the firmware to tell which revision or assembly variant it runs on: no ID resistor divider on an ADC pin, no strap pins, no ID EEPROM.
Why it matters. One firmware image for every board in the field is the only maintainable way, and it needs to know whether pin X drives a LED (rev A) or the hub reset (rev B), or whether a 2-port or 4-port hub is fitted. Without an ID the firmware guesses from side effects, and a guess that fails can drive a pin into a part that is not there.
Example. B153A's Main and Plus variants differ in hub and SBU switch; the firmware tells them apart by R902, a 10 kΩ pull-down on PA10 fitted on Plus only, read at boot. The revision itself is not readable; the change list suggests an ID divider on PA4 (ADC1_IN4) once that pin is free. B200A has the same need before its shift-register chain is loaded.
How to check. Not a rule: better_erc can list ADC-capable pins that see only a divider between two rails, and GPIOs tied to a rail through a resistor, as candidate IDs; a reviewer confirms whether one exists.
Fix. A resistor divider per board on a free ADC pin (one resistor per revision or variant, values spaced so tolerances never overlap), or strap resistors on GPIOs, or an ID EEPROM as Raspberry Pi HATs use.
References. Raspberry Pi, HAT specification (ID EEPROM read at boot) (github.com/raspberrypi/hats); B153 rev B change list ("From the runtime variant work"); B153A schematic review §9.