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/core/ReferenceClockSupport.tsx

import type { ChipProps } from "tscircuit"
import type { ReferencePartPlacement } from "./ReferenceDecoupling"
import { ABM10WFootprint } from "./clock-footprints/ABM10WFootprint"

export const requiredWkupClockPins = {
  XI: { cpuBall: "T38", signal: "WKUP_OSC0_XI", crystalPin: "3" },
  XO: { cpuBall: "U37", signal: "WKUP_OSC0_XO", crystalPin: "1" },
} as const

export type ReferenceClockSupportProps = {
  placements?: Partial<Record<"Y2" | "C190" | "C195", ReferencePartPlacement>>
  xiNet?: string
  xoNet?: string
  groundNet?: string
  /** Override the default licensed ABM10W package land pattern explicitly. */
  wkupCrystalFootprint?: ChipProps["footprint"]
  /** Explicit schematic-only mode; never creates a substituted crystal footprint. */
  schematicOnly?: boolean
  referencePrefix?: string
}

/** Source sheet17 load capacitors, usable as the verified placed subset. */
export function ReferenceClockLoadCapacitors({
  placements = {}, xiNet = "net.WKUP_OSC0_XI", xoNet = "net.WKUP_OSC0_XO",
  groundNet = "net.GND", referencePrefix = "",
}: Omit<ReferenceClockSupportProps, "wkupCrystalFootprint" | "schematicOnly">) {
  return <>
    <capacitor name={`${referencePrefix}C195`} capacitance="12pF" maxVoltageRating="50V"
      manufacturerPartNumber="04025A120JAT2A" footprint="0402" schRotation={-90}
      {...placements.C195} connections={{ pin1: xiNet, pin2: groundNet }} />
    <capacitor name={`${referencePrefix}C190`} capacitance="12pF" maxVoltageRating="50V"
      manufacturerPartNumber="04025A120JAT2A" footprint="0402" schRotation={-90}
      {...placements.C190} connections={{ pin1: xoNet, pin2: groundNet }} />
  </>
}

/**
 * Exact fitted WKUP oscillator electrical circuit from TI PROC154E3 sheet17.
 * Uses the licensed ABM10W land pattern, preserving the source 19.2 MHz part.
 * OSC1's source26MHz branch is DNI and is not populated by this fragment.
 */
export function ReferenceClockSupport({
  placements = {}, xiNet = "net.WKUP_OSC0_XI", xoNet = "net.WKUP_OSC0_XO",
  groundNet = "net.GND", wkupCrystalFootprint, schematicOnly = false,
  referencePrefix = "",
}: ReferenceClockSupportProps) {
  const footprint = wkupCrystalFootprint ?? (schematicOnly ? undefined : <ABM10WFootprint />)
  return <>
    <crystal name={`${referencePrefix}Y2`} manufacturerPartNumber="ABM10W-19.2000MHZ-8-K1Z-T3"
      frequency="19.2MHz" loadCapacitance="8pF" pinVariant="four_pin"
      pinLabels={{ pin1: "XO", pin2: "GND1", pin3: "XI", pin4: "GND2" }}
      pinAttributes={{ pin1: { isPassive: true }, pin2: { requiresGround: true }, pin3: { isPassive: true }, pin4: { requiresGround: true } }}
      footprint={footprint} {...placements.Y2}
      connections={{ pin1: xoNet, pin2: groundNet, pin3: xiNet, pin4: groundNet }} />
    <ReferenceClockLoadCapacitors placements={placements} xiNet={xiNet} xoNet={xoNet}
      groundNet={groundNet} referencePrefix={referencePrefix} />
  </>
}