ShiboSoftwareDev/am69-pi5

A 85×56 mm 10-layer AM69A single-board computer carrier integrates 8 GiB LPDDR4, 32 GB eMMC, Pi-style expansion and multimedia/USB/Ethernet connectors, multi-rail PMIC power, STM32 boot/power control, USB-C PD, SD/fan protection, and HDI-controlled high-speed routing.

Version
0.0.8-engineering-draft-20261107-dqs19
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-pi5  # download the package files into ./am69-pi5
tsci add ShiboSoftwareDev/am69-pi5    # add it to your project as @tsci/ShiboSoftwareDev.am69-pi5

In 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/power/IntegratedPowerStages.tsx

import data from "../power-stages/ReferencePower.data.json"
import { ReferencePowerStages, type ReferencePowerPlacement } from "../power-stages/ReferencePowerStages"
import { Crystal3215Footprint } from "./footprints/PackageFootprints"
import { fiveVoltInputCapacitor, sourcePowerInputFilterReferences, systemPowerNetOverrides } from "./SystemPowerNets"

const replaced = new Set<string>(sourcePowerInputFilterReferences)
export const inputCapacitorReference = (source: string) => `C${1001 + sourcePowerInputFilterReferences.indexOf(source as typeof sourcePowerInputFilterReferences[number])}`
const supported = data.parts.filter(part => part.fittedInSourceBom
  && !["unsupported", "testpoint"].includes(part.kind) && !replaced.has(part.reference))
const inputCaps = data.parts.filter(part => part.fittedInSourceBom && replaced.has(part.reference))
for (const part of inputCaps) {
  if (part.pins["1"].net !== part.pins["3"].net || part.pins["2"].net !== "GND" || part.pins["4"].net !== "GND") {
    throw new Error(`${part.reference}: a two-terminal input capacitor cannot replace this source connection`)
  }
}

/** Actual fitted power inventory, including the PMIC crystal and 10 V input MLCCs. */
export const integratedPowerStageParts = [
  ...supported,
  ...inputCaps.map(part => ({ ...part, reference: inputCapacitorReference(part.reference), kind: "capacitor",
    value: fiveVoltInputCapacitor.capacitance, mpn: fiveVoltInputCapacitor.manufacturerPartNumber,
    sizeCode: fiveVoltInputCapacitor.footprint, replacesSourceReference: part.reference })),
]

/**
 * Adapted CPU/core/PMIC power network. No source 4 V filter is fitted on 5 V.
 * Source output inductors, compensation, phase sync, AVS and PMIC NVM part stay
 * explicit. EVM-only measurement shunts are replaced by documented rail aliases.
 * Board routing, Kelvin sense, effective capacitance and sequence qualification
 * remain required; nominal converter current ratings are not a board budget.
 */
export function IntegratedPowerStages({ placements = {}, references, netOverrides = systemPowerNetOverrides }: {
  placements?: Partial<Record<string, ReferencePowerPlacement>>
  references?: readonly string[]
  netOverrides?: Record<string,string>
}) {
  const selected = (ref: string) => !references || references.includes(ref)
  const net = (name: string) => netOverrides[name] ?? `net.${name}`
  return <>
    <ReferencePowerStages placements={placements} netOverrides={netOverrides}
      references={supported.filter(part => selected(part.reference)).map(part => part.reference)} />
    {inputCaps.filter(part => selected(inputCapacitorReference(part.reference))).map(part => <capacitor
      key={part.reference} name={inputCapacitorReference(part.reference)} {...placements[inputCapacitorReference(part.reference)]}
      manufacturerPartNumber={fiveVoltInputCapacitor.manufacturerPartNumber}
      capacitance={fiveVoltInputCapacitor.capacitance} maxVoltageRating={fiveVoltInputCapacitor.voltageRating}
      footprint={fiveVoltInputCapacitor.footprint}
      connections={{ pin1: net(part.pins["1"].net), pin2: "net.GND" }} />)}
    {selected("Y6") && <crystal name="Y6" manufacturerPartNumber="ECS-.327-9-34QCS-TR"
      frequency="32.768kHz" loadCapacitance="9pF" pinVariant="two_pin"
      {...placements.Y6} footprint={<Crystal3215Footprint />}
      connections={{ pin1: "net.LEOA_OSC32KOUT", pin2: "net.LEOA_OSC32KIN" }} />}
  </>
}