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-cm5

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/interface/SystemConnectorWiring.ts

import {getConnectorConnections,getConnectorCpuConnections,type ConnectorBoard} from "./ConnectorWiring"
import {bootControllerCpuConnections} from "../control/BootConfiguration"
import {piHeaderCpuConnections,piHeaderConnectorConnections} from "../control/PiBootHeaderIsolation"
import {nativeInterfaceCpuConnections,nativeSdConnectorConnections,nativeHeaderConnectorConnections} from "./NativeInterfaceSupport"

/** Compose implemented modules only; high-speed companion interfaces remain pending. */
export function getSystemCpuConnections(board:ConnectorBoard):Record<string,string> {
  const result=getConnectorCpuConnections(board)
  // GPIO13 moves to AP38 so AM37 can retain its unique DP0_HPD function.
  // The connector net itself is unchanged; AJ32 completes the GPIO24 contact.
  if(board==="pi5")delete result.AM37
  const modules=[bootControllerCpuConnections,...(board==="pi5"?[piHeaderCpuConnections,nativeInterfaceCpuConnections]:[])]
  for(const module of modules)for(const [ball,net] of Object.entries(module)) {
    if(result[ball]&&result[ball]!==net)throw new Error(`CPU ${ball}: conflicting connector/module allocation`)
    result[ball]=net
  }
  return result
}
export function getSystemConnectorConnections(board:ConnectorBoard) {
  const result=getConnectorConnections(board)
  if(board==="pi5") {
    result.J_GPIO40={...result.J_GPIO40,...piHeaderConnectorConnections,...nativeHeaderConnectorConnections,
      pin1:"net.V3V3_INTERFACE",pin17:"net.V3V3_INTERFACE",pin2:"net.V5_EXTERNAL",pin4:"net.V5_EXTERNAL"}
    result.J_FAN={...result.J_FAN,pin1:"net.FAN_5V",pin2:"net.FAN_PWM_OD",pin4:"net.FAN_TACH_RAW"}
    result.J_MICROSD={...result.J_MICROSD,...nativeSdConnectorConnections,pin10:"net.SD_CARD_DETECT_N"}
    result.J_USB_C_POWER={...result.J_USB_C_POWER,A5:"net.USB_C_CC1",B5:"net.USB_C_CC2"}
  }
  return result
}