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-pi5In 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/control/PiBootHeaderIsolation.tsx
import data from "./PiBootHeaderIsolation.data.json"
import core from "../core/CoreConnections.data.json"
import { physicalBootNet } from "./BootConfiguration"
import type { ReferencePowerPlacement } from "../power-stages/ReferencePowerStages"
export const piHeaderIsolationParts = [
{reference:"U1300",kind:"header_isolation"}, {reference:"C1300",kind:"capacitor"},
]
export const piHeaderCpuConnections = Object.fromEntries(data.paths.map(p=>[p.cpu_ball,`net.HEADER_CPU_GPIO${p.pi_gpio}`]))
export const piHeaderConnectorConnections = Object.fromEntries(data.paths.map(p=>[`pin${p.header_contact}`,`net.${p.logical_net}`]))
for (const path of data.paths) {
if ((core.components.U28.pins as Record<string,{signal:string}>)[path.cpu_ball]?.signal!==path.cpu_primary_name) {
throw new Error(`Header GPIO${path.pi_gpio}: physical CPU ball mismatch`)
}
}
/** Eight shared boot/GPIO pins stay isolated until the EC latches runtime mode. */
export function PiBootHeaderIsolation({placements={},references,cpuConnections={}}:{
placements?:Partial<Record<string,ReferencePowerPlacement>>;references?:readonly string[];cpuConnections?:Record<string,string>
}) {
const wanted=(name:string)=>!references||references.includes(name)
const pins:Record<string,string>={pin1:"NC",pin10:"GND",pin19:"OE_N",pin20:"VCC"}
for(let i=1;i<=8;i++){pins[`pin${i+1}`]=`A${i}`;pins[`pin${19-i}`]=`B${i}`}
const connections:Record<string,string>={GND:"net.GND",VCC:"net.V_3V3",OE_N:"net.HEADER_BOOT_ISOLATION_OE_N"}
for(const path of data.paths) {
connections[`pin${path.buffer.source_input_pad}`]=physicalBootNet(path.cpu_ball,cpuConnections)
connections[`pin${path.buffer.source_output_pad}`]=`net.${path.logical_net}`
}
return <>
{wanted("U1300")&&<chip name="U1300" manufacturerPartNumber="SN74CB3Q3245PWR"
pinLabels={pins} pinAttributes={{pin1:{doNotConnect:true},pin10:{requiresGround:true},pin19:{isInput:true},pin20:{requiresPower:true}}}
noConnect={["NC"]} schWidth={8} schHeight={15} {...placements.U1300} connections={connections}
footprint={<footprint>
{Array.from({length:20},(_,i)=>{
const pin=i+1,x=pin<=10?-2.9:2.9,y=pin<=10?2.925-(pin-1)*.65:-2.925+(pin-11)*.65
return <smtpad key={pin} portHints={[`pin${pin}`]} shape="rect" pcbX={x} pcbY={y}
width={1.5} height={.45} rectBorderRadius={.05} solderMaskMargin={.05} solderPasteMargin={0} />
})}
<courtyardrect width={7.8} height={7.4} />
</footprint>} />}
{wanted("C1300")&&<capacitor name="C1300" manufacturerPartNumber="GRM155R71C104KA88D"
capacitance="100nF" maxVoltageRating="16V" footprint="0402" {...placements.C1300}
connections={{pin1:"net.V_3V3",pin2:"net.GND"}} />}
</>
}