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/ProtectedFiveVoltInput.tsx

import { TPS259474L } from "./TPS25947"
import type { ReferencePowerPlacement } from "../power-stages/ReferencePowerStages"
import {controlResistor0402,controlCapacitor0402} from "./ControlPassiveParts"

export const protectedInputParts = [
  { reference: "U1100", kind: "TPS259474L" },
  ...["R1100", "R1101", "R1102", "R1103", "R1104", "R1105", "R1106"].map(reference => ({ reference, kind: "resistor" })),
  ...["C1100", "C1101", "C1102", "C1103"].map(reference => ({ reference, kind: "capacitor" })),
]

/**
 * 5 V eFuse, reverse-current block and latch-off circuit breaker. Nominal UVLO
 * 4.405 V, OVLO 5.476 V, PG 4.404 V and circuit-breaker threshold 6.07 A.
 * These thresholds do not grant permission to draw more than the source's
 * contract. USB-C negotiation and the complete board power budget are separate.
 * TI Rev C section 8.2 equations 10–18; RPW0010A copper read from PDF vectors.
 */
export function ProtectedFiveVoltInput({ placements = {}, references,board="cm5" }: {
  placements?: Partial<Record<string, ReferencePowerPlacement>>
  references?: readonly string[]
  board?:"cm5"|"pi5"
}) {
  const wanted = (ref: string) => !references || references.includes(ref)
  const p = (ref: string) => placements[ref] ?? {}
  const resistors = [
    ["R1100", "33.2k", "net.V5_IN", "net.INPUT_UVLO"],
    ["R1101", "2.43k", "net.INPUT_UVLO", "net.INPUT_OVLO"],
    ["R1102", "10k", "net.INPUT_OVLO", "net.GND"],
    ["R1103", "26.7k", "net.V5_PROTECTED", "net.INPUT_PGTH"],
    ["R1104", "10k", "net.INPUT_PGTH", "net.GND"],
    ["R1105", "549", "net.INPUT_ILM", "net.GND"],
    ["R1106", "10k", "net.V3V3_AON_INTERFACE", "net.INPUT_POWER_GOOD"],
  ]
  const caps = [
    ["C1100", board==="pi5"?"4.7uF":"10uF", "25V", "0805", "net.V5_IN"],
    ["C1101", "10uF", "10V", "0805", "net.V5_PROTECTED"],
    ["C1102", "3.3nF", "16V", "0402", "net.INPUT_DVDT"],
    ["C1103", "2.2nF", "16V", "0402", "net.INPUT_ITIMER"],
  ]
  return <>
    {wanted("U1100") && <TPS259474L name="U1100" {...p("U1100")} connections={{
      IN: "net.V5_IN", OUT: "net.V5_PROTECTED", EN_UVLO: "net.INPUT_UVLO", OVLO: "net.INPUT_OVLO",
      PG: "net.INPUT_POWER_GOOD", PGTH: "net.INPUT_PGTH", DVDT: "net.INPUT_DVDT",
      GND: "net.GND", ILM: "net.INPUT_ILM", ITIMER: "net.INPUT_ITIMER",
    }} />}
    {resistors.filter(([ref]) => wanted(ref)).map(([ref, resistance, a, b]) => <resistor
      key={ref} name={ref} resistance={resistance} manufacturerPartNumber={controlResistor0402[resistance]} footprint="0402" {...p(ref)}
      connections={{ pin1: a, pin2: b }} />)}
    {caps.filter(([ref]) => wanted(ref)).map(([ref, capacitance, voltageRating, footprint, rail]) => <capacitor
      key={ref} name={ref} capacitance={capacitance} maxVoltageRating={voltageRating} footprint={footprint}
      {...(footprint==="0402"?controlCapacitor0402(capacitance):{
        manufacturerPartNumber:ref==="C1100"?(board==="pi5"?"C2012X5R1E475K125AB":"GRM21BR61E106KA73L"):"GCM21BR71A106KE22L",
      })}
      schRotation={-90} {...p(ref)} connections={{ pin1: rail, pin2: "net.GND" }} />)}
  </>
}