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-cm5In 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/TPS386000RGP.tsx
import type {ChipProps} from 'tscircuit'
import {Fragment} from 'react'
// RGP(S-PVQFN-N20)4207608-2/L07/2011: one rounded inner end.
const dLand=[{x:-.5,y:-.14},...Array.from({length:17},(_,i)=>({x:.36+.14*Math.cos(-Math.PI/2+i*Math.PI/16),y:.14*Math.sin(-Math.PI/2+i*Math.PI/16)})),{x:-.5,y:.14}]
export function TPS386000RGPFootprint(){
return <footprint>
{Array.from({length:20},(_,i)=>{
const side=Math.floor(i/5),j=i%5,a=side*Math.PI/2
const x=side===0?-1.9:side===1?-1+j*.5:side===2?1.9:1-j*.5
const y=side===0?1-j*.5:side===1?-1.9:side===2?-1+j*.5:1.9
const points=dLand.map(p=>({x:p.x*Math.cos(a)-p.y*Math.sin(a),y:p.x*Math.sin(a)+p.y*Math.cos(a)}))
return <smtpad key={i} portHints={[`pin${i+1}`]} shape="polygon" points={points}
pcbX={x} pcbY={y} coveredWithSolderMask noSolderPaste />
})}
{/* The pinned Gerber exporter ignores polygon-pad mask margins. Explicit
native openings give each real D land0.05mm mask clearance, without
changing its copper or connectivity. Rect/circle exposures form a union. */}
{Array.from({length:20},(_,i)=>{
const side=Math.floor(i/5),j=i%5,a=side*Math.PI/2,c=Math.cos(a),s=Math.sin(a)
const x=side===0?-1.9:side===1?-1+j*.5:side===2?1.9:1-j*.5
const y=side===0?1-j*.5:side===1?-1.9:side===2?-1+j*.5:1.9
return <Fragment key={i}>
<pcbsoldermaskopening key={`rect${i}`} shape="rect" layer="top" pcbX={x-.07*c} pcbY={y-.07*s}
width={side%2?.38:.96} height={side%2?.96:.38} />
<pcbsoldermaskopening key={`arc${i}`} shape="circle" layer="top" pcbX={x+.36*c} pcbY={y+.36*s} radius={.19} />
<solderpaste shape="rect" pcbX={x-.0575*c} pcbY={y-.0575*s}
width={side%2?.23:.835} height={side%2?.835:.23} />
<solderpaste shape="circle" pcbX={x+.36*c} pcbY={y+.36*s} radius={.115} />
</Fragment>
})}
<smtpad portHints={['pin21']} shape="rect" pcbX={0} pcbY={0} width={2.15} height={2.15} solderMaskMargin={.05} noSolderPaste />
{[-.6,.6].flatMap(x=>[-.6,.6].map(y=><solderpaste key={`${x},${y}`} shape="rect" pcbX={x} pcbY={y} width={.9} height={.9} />))}
<fabricationnoterect width={4} height={4} strokeWidth={.05} />
<courtyardrect width={5.3} height={5.3} />
<silkscreencircle pcbX={-2.55} pcbY={2.55} radius={.07} strokeWidth={.05} />
</footprint>
}
/** TPS386000 has open-drain RESET outputs. TPS386040 is not interchangeable. */
export function TPS386000RGP(props:Omit<ChipProps,'footprint'|'pinLabels'>){
return <chip schWidth={6} schHeight={10} {...props} manufacturerPartNumber="TPS386000RGPR" footprint={<TPS386000RGPFootprint />}
pinLabels={{pin1:'MR_N',pin2:'CT4',pin3:'CT3',pin4:'CT2',pin5:'CT1',pin6:'SENSE4H',pin7:'SENSE4L',pin8:'SENSE3',pin9:'SENSE2',pin10:'SENSE1',pin11:'NC_GND',pin12:'GND',pin13:'VREF',pin14:'VDD',pin15:'RESET1_N',pin16:'RESET2_N',pin17:'RESET3_N',pin18:'RESET4_N',pin19:'WDO_N',pin20:'WDI',pin21:'EP'}}
pinAttributes={{pin1:{isInput:true},pin2:{isPassive:true},pin3:{isPassive:true},pin4:{isPassive:true},pin5:{isPassive:true},pin6:{isInput:true},pin7:{isInput:true},pin8:{isInput:true},pin9:{isInput:true},pin10:{isInput:true},pin11:{requiresGround:true},pin12:{requiresGround:true},pin13:{isOutput:true},pin14:{requiresPower:true},pin15:{isOutput:true},pin16:{isOutput:true},pin17:{isOutput:true},pin18:{isOutput:true},pin19:{isOutput:true},pin20:{isInput:true},pin21:{requiresGround:true}}} />
}