ShiboSoftwareDev/am69-cm5
A 55×40 mm 10-layer CM5 carrier board integrating an AM69A98 SoC, 8‑GiB LPDDR4, 32‑GB eMMC, CM5 connectors, clocking, extensive decoupling/EMI filtering, and HDI DDR/ground escape routing.
- Version
- 0.0.7-engineering-draft-20261107-manual-ddr0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone ShiboSoftwareDev/am69-cm5 # download the package files into ./am69-cm5
tsci add ShiboSoftwareDev/am69-cm5 # add it to your project as @tsci/ShiboSoftwareDev.am69-cm5In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
components/shared/usb-pd/README.md
# USB-C power delivery
`UsbPowerDelivery.tsx` adds the Pi board's 5 V sink controller, dead-battery CC terminations, I2C monitoring, discharge path, transient protection and main/fan power qualification. It uses STUSB4500QTR with a **single fixed 5 V / 5 A sink PDO**. A lower-current or non-PD source powers only the always-on circuitry. The existing independent TPS259474L UV/OV protection remains in series with the system supply.
`PD_POWER_ALLOWED` comes from a dedicated STM32G031K6U6 GPIO and has a hardware pulldown. The MCU checks attach/type, VBUS state, the sink profile, policy-engine state and two consistent RDO reads. It requires 100 ms of valid 5 A samples before asserting the signal. A failed/invalid sample removes permission. The STUSB4500 `VBUS_EN_SNK` signal separately qualifies the hardware gates, so detachment does not depend on firmware polling. The main converter's keep-alive OR gate feeds this qualification gate. The GPIO header 5 V output passes through U1604 TPS22965DSGR, with a pulldown on its enable and an adjustable ramp. It has no direct raw-VBUS connection. This board takes input power through USB-C; the header is a powered output, and externally driven HAT supplies require a separate reverse-power review. Fan power is also qualified; cooling after shutdown remains available while a sufficient source contract remains present.
CC1/CC2 use the controller's internal sink resistors, including the explicit CC1DB/CC2DB links. External parallel Rd resistors are not fitted. SBU contacts remain unused for USB2 recovery. The port is a sink/UFP; power/data role swapping and DisplayPort over this connector are outside its contract.
The always-on controller changes from the reused NEMA TSSOP20 part to a pin-richer UFQFPN32 G031 part. All original functions retain their GPIO assignments, with dedicated PB8/PB3 for software I2C, PB1 sink enable, PB2 alert, PB5 reset and PC14 power permission. Firmware uses the ST G031 CMSIS header. The CM5 firmware does not require USB PD, since its input comes through the carrier.
**Manufacturing configuration:** program STUSB4500 NVM with one 5 V / 5 A sink PDO, `REQ_SRC_CURRENT=0`, no higher-voltage PDOs, dead-battery enabled, and normal 5 V sink-path behavior. Never use the factory multivoltage NVM image as the production image. Use a fixed, current-limited 5 V VBUS fixture with no PD voltage negotiation and a common-ground open-drain 3.3 V I2C adapter on TP1600/TP1601. Program before connection to a PD-capable supply, read back NVM/profile registers and power-cycle. TP1200 is an AON voltage probe; do not drive the LDO output from an external supply. The exact NVM image/programming verification is still being completed; this document is not a release authorization.
The 4.7 µF Pi C1100 replaces the 10 µF receptacle-side capacitor; the controller has a further 1 µF behind its 470 Ω supply resistor. All raw-VBUS capacitors retain at least 25 V rating. Total capacitance, inrush, DC bias and the protected-side eFuse ramp require final power-path review with all load switches included.
Sources: [STUSB4500 DS12499 Rev8](https://www.st.com/resource/en/datasheet/stusb4500.pdf), [ST programming guide UM2650](https://www.st.com/resource/en/user_manual/um2650-the-stusb4500-software-programing-guide-stmicroelectronics.pdf), and [ST's public implementation repository](https://github.com/usb-c/STUSB4500/tree/55d1109e7ef0cffc2ffef2494095d23306594601). The locally inspected Rev7 PDF provides the unchanged Figure12 QFN land pattern and Figure10 MCU reference circuit; Rev8 changes concern I2C warning and reset timing. Four-window exposed-pad paste is an engineering stencil selection, not a manufacturer drawing.
Additional references: [G031 DS12992 Rev4](https://www.st.com/resource/en/datasheet/stm32g031k6.pdf), [ESDAxxxWx](https://www.st.com/resource/en/datasheet/esdaxxxwx.pdf), [ESDAxxPxxx-1U1M DS14419](https://www.st.com/resource/en/datasheet/esda25p35-1u1m.pdf), and [TDK C2012X5R1E475K125AB](https://product.tdk.com/en/search/capacitor/ceramic/mlcc/info?part_no=C2012X5R1E475K125AB). Clamp coordination between raw-VBUS TVS, controller series resistors and the eFuse absolute maximum remains an explicit electrical release check.
U1604 follows TI DSG0008A drawing4218900/E: eight0.5×0.25mm lands at0.5mm pitch with1.9mm row separation, plus0.9×1.6mm exposed ground land. Explicit two-window EP paste covers64%. C1608 is4.7nF/50V because TI warns that CT can reach12V and requires a25V or higher capacitor. Table1 gives a typical8.207ms rise at5V; this limits capacitor charging, not a steady-state HAT current budget. Input/output1µF capacitors are local to the switch. [TPS22965 datasheet](https://www.ti.com/lit/ds/symlink/tps22965.pdf).