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/BootSignalIsolation.tsx
import type { ReferencePowerPlacement } from "../power-stages/ReferencePowerStages"
import {controlResistor0402,controlCapacitor0402} from "../power/ControlPassiveParts"
export const bootIsolationParts = [
...[1201,1202,1203,1204,1205,1206,1207,1096,902].map(i=>({reference:`U${i}`,kind:"boot_interface"})),
...[1250,1251,1252,1253,1254,1255,1256,1257,1258].map(i=>({reference:`C${i}`,kind:"capacitor"})),
...[1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260].map(i=>({reference:`R${i}`,kind:"resistor"})),
]
/** Same TI RSE0008A switch lands used in the user's NEMA17 USB-attach block. */
export function TS3USB31EFootprint() {
const pads = [
[1,-.675,.5,.55,.25],[2,-.675,0,.55,.2],[3,-.675,-.5,.55,.25],[4,0,-.65,.3,.6],
[5,.675,-.5,.55,.25],[6,.675,0,.55,.2],[7,.675,.5,.55,.25],[8,0,.65,.3,.6],
]
return <footprint>{pads.map(([pin,x,y,w,h])=><smtpad key={pin} portHints={[`pin${pin}`]}
shape="rect" pcbX={x} pcbY={y} width={w} height={h} solderPasteMargin={0} solderMaskMargin={0} />)}
<courtyardrect width={2.1} height={2.1} />
</footprint>
}
/** TI DCU0008A drawing 4225266/A: 0.85 x 0.30 lands, row spacing 3.1, pitch 0.5. */
export function DCU8Footprint() {
return <footprint>{Array.from({length:8},(_,i)=>{
const pin=i+1,x=pin<=4?-1.55:1.55,y=pin<=4?.75-(pin-1)*.5:-.75+(pin-5)*.5
return <smtpad key={pin} portHints={[`pin${pin}`]} shape="rect" pcbX={x} pcbY={y}
width={.85} height={.3} rectBorderRadius={.05} solderPasteMargin={0} solderMaskMargin={.05} />
})}<courtyardrect width={4.45} height={2.8} /></footprint>
}
/**
* Bootstrap/serial time sharing uses two real SPST switches with Ioff, not
* shorted GPIO/UART drivers. Q presets HIGH while EC_RUN is LOW. Only after
* POR sampling does a fan-clock pulse latch Q LOW, disconnect boot outputs,
* connect the UART, and enable header isolation through an open-drain buffer.
*/
export function BootSignalIsolation({placements={},references,board}:{
placements?:Partial<Record<string,ReferencePowerPlacement>>;references?:readonly string[];board:"cm5"|"pi5"
}) {
const wanted=(name:string)=>!references||references.includes(name)
const p=(name:string)=>placements[name]??{}
const dualPins={pin1:"A1",pin2:"GND",pin3:"A2",pin4:"Y2",pin5:"VCC",pin6:"Y1"}
const buffer=(name:string,part:string,supply:string,a1:string,y1:string,a2:string,y2?:string)=>wanted(name)&&<chip
name={name} manufacturerPartNumber={part} footprint="sot363" pinLabels={dualPins}
pinAttributes={{pin1:{isInput:true},pin2:{requiresGround:true},pin3:{isInput:true},pin4:y2?{isOutput:true}:{doNotConnect:true},pin5:{requiresPower:true},pin6:{isOutput:true}}}
noConnect={y2?[]:["Y2"]} {...p(name)} connections={{A1:a1,Y1:y1,A2:a2,...(y2?{Y2:y2}:{}),VCC:supply,GND:"net.GND"}} />
const busSwitch=(name:string,oe:string,a:string,b:string)=>wanted(name)&&<chip name={name}
manufacturerPartNumber="TS3USB31ERSER" supplierPartNumbers={{jlcpcb:["C967436"]}}
pinLabels={{pin1:"OE_N",pin2:"HSD_P",pin3:"D_P",pin4:"GND",pin5:"D_N",pin6:"HSD_N",pin7:"NC",pin8:"VCC"}}
pinAttributes={{pin1:{isInput:true},pin2:{isPassive:true},pin3:{isPassive:true},pin4:{requiresGround:true},pin5:{isPassive:true},pin6:{isPassive:true},pin7:{doNotConnect:true},pin8:{requiresPower:true}}}
footprint={<TS3USB31EFootprint />} noConnect={["NC"]} {...p(name)} connections={{
OE_N:oe,D_P:"net.EC_SHARED_PA2",D_N:"net.EC_SHARED_PA3",HSD_P:a,HSD_N:b,VCC:"net.V3V3_AON_INTERFACE",GND:"net.GND",
}} />
const r=(name:string,value:string,a:string,b:string)=>wanted(name)&&<resistor key={name} name={name}
resistance={value} manufacturerPartNumber={controlResistor0402[value]} footprint="0402" {...p(name)} connections={{pin1:a,pin2:b}} />
return <>
{wanted("U1201")&&<chip name="U1201" manufacturerPartNumber="SN74LVC1G74DCUR"
pinLabels={{pin1:"CLK",pin2:"D",pin3:"NQ",pin4:"GND",pin5:"Q",pin6:"CLR_N",pin7:"PRE_N",pin8:"VCC"}}
pinAttributes={{pin1:{isInput:true},pin2:{isInput:true},pin3:{isOutput:true},pin4:{requiresGround:true},pin5:{isOutput:true},pin6:{isInput:true},pin7:{isInput:true},pin8:{requiresPower:true}}}
footprint={<DCU8Footprint />} {...p("U1201")} connections={{
CLK:"net.EC_FAN_PWM_INTERNAL",D:"net.GND",NQ:"net.BOOT_LATCH_NQ",Q:"net.BOOT_LATCH_Q",
CLR_N:"net.V3V3_AON_INTERFACE",PRE_N:"net.EC_RUN_REQUEST",VCC:"net.V3V3_AON_INTERFACE",GND:"net.GND",
}} />}
{busSwitch("U1203","net.BOOT_LATCH_NQ","net.EC_BOOT5_PATH","net.EC_MAIN_BOOT4_PATH")}
{busSwitch("U1204","net.BOOT_LATCH_Q","net.EC_UART_TX_AON","net.EC_UART_RX_AON")}
{buffer("U1202","SN74LVC2G07DCKR","net.V3V3_AON_INTERFACE","net.EC_FAN_PWM_INTERNAL",
board==="cm5"?"net.CM5_FAN_PWM_OD":"net.FAN_PWM_OD","net.BOOT_LATCH_Q","net.HEADER_BOOT_ISOLATION_OE_N")}
{buffer("U1096","SN74LVC2G17DCKR","net.V3V3_AON_INTERFACE",
board==="cm5"?"net.CM5_nRPIBOOT":"net.FORCE_USB_BOOT_N","net.EC_FORCE_USB_N",
board==="cm5"?"net.CM5_FAN_TACH":"net.FAN_TACH_RAW","net.EC_FAN_TACH_3V3")}
{buffer("U902","SN74LVC2G17DCKR","net.V3V3_INTERFACE",
board==="cm5"?"net.CM5_USB_OTG_ID":"net.USB_DEVICE_ID","net.USB_OTG_ID_3V3",
"net.EC_UART_TX_AON","net.EC_UART_HOST_RX")}
{buffer("U1205","SN74LVC2G17DCKR","net.V3V3_INTERFACE","net.SD_CARD_DETECT_N","net.MMC1_SDCD_3V3","net.GND")}
{buffer("U1206","SN74LVC2G07DCKR","net.V3V3_AON_INTERFACE",
"net.EC_MCU_BOOT3_DRIVE","net.EC_MCU_BOOT3_OD","net.EC_MCU_BOOT4_DRIVE","net.EC_MCU_BOOT4_OD")}
{buffer("U1207","SN74LVC2G07DCKR","net.V3V3_AON_INTERFACE",
"net.EC_MAIN_BOOT6_DRIVE","net.EC_MAIN_BOOT6_OD","net.GND")}
{["C1250","C1251","C1252","C1253","C1254","C1255","C1256","C1257","C1258"].filter(wanted).map(name=><capacitor
key={name} name={name} capacitance="100nF" {...controlCapacitor0402("100nF")} footprint="0402" schRotation={-90}
{...p(name)} connections={{pin1:["C1255","C1256"].includes(name)?"net.V3V3_INTERFACE":"net.V3V3_AON_INTERFACE",pin2:"net.GND"}} />)}
{r("R1250","10k","net.EC_FAN_PWM_INTERNAL","net.V3V3_AON_INTERFACE")}
{r("R1251","10k","net.HEADER_BOOT_ISOLATION_OE_N","net.V_3V3")}
{r("R1252","10k",board==="cm5"?"net.CM5_USB_OTG_ID":"net.USB_DEVICE_ID","net.V3V3_INTERFACE")}
{r("R1253","10k",board==="cm5"?"net.CM5_nRPIBOOT":"net.FORCE_USB_BOOT_N","net.V3V3_AON_INTERFACE")}
{r("R1254","10k",board==="cm5"?"net.CM5_FAN_TACH":"net.FAN_TACH_RAW","net.V3V3_AON_INTERFACE")}
{r("R1255","100k","net.BOOT_LATCH_Q","net.V3V3_AON_INTERFACE")}
{r("R1256","47","net.EC_UART_HOST_TX","net.EC_UART_RX_AON")}
{r("R1257","10k","net.EC_UART_TX_AON","net.V3V3_AON_INTERFACE")}
{r("R1258","10k","net.EC_MCU_BOOT3_DRIVE","net.V3V3_AON_INTERFACE")}
{r("R1259","10k","net.EC_MCU_BOOT4_DRIVE","net.V3V3_AON_INTERFACE")}
{r("R1260","10k","net.EC_MAIN_BOOT6_DRIVE","net.V3V3_AON_INTERFACE")}
</>
}