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/power/UsbPhyCorePower.tsx
import {TPS62135RGX} from './TPS62135RGX'
import {XFL4020Footprint} from './PowerPassives'
import type {ReferencePowerPlacement} from '../power-stages/ReferencePowerStages'
export const usbPhyCorePowerDefaultPlacements:Record<string,ReferencePowerPlacement>={
U1700:{pcbX:0,pcbY:0,layer:'top'},L1700:{pcbX:-4.5,pcbY:0,pcbRotation:180,layer:'top'},
C1700:{pcbX:2.6,pcbY:0,pcbRotation:270,layer:'top'},C1701:{pcbX:2.25,pcbY:2.8,layer:'top'},
C1702:{pcbX:-8.5,pcbY:1.5,pcbRotation:180,layer:'top'},C1703:{pcbX:-8.5,pcbY:-1.5,pcbRotation:180,layer:'top'},
C1704:{pcbX:.25,pcbY:3,pcbRotation:90,layer:'top'},R1700:{pcbX:-.5,pcbY:-3.25,pcbRotation:90,layer:'top'},
R1701:{pcbX:.7,pcbY:-3.25,pcbRotation:270,layer:'top'},R1702:{pcbX:2.6,pcbY:-2.7,layer:'top'},
R1703:{pcbX:3,pcbY:4.7,layer:'top'},
}
export const usbPhyCorePowerParts=Object.keys(usbPhyCorePowerDefaultPlacements).map(reference=>({reference,kind:reference[0]==='U'?'regulator':reference[0]==='L'?'inductor':reference[0]==='C'?'capacitor':'resistor'}))
/** Shared1.12V/3A design rail for the two TUSB hosts and DP83867 PHY.
* Forced PWM preserves the specified1% DC accuracy down to zero load.
* Main3V3 must already be valid before enable; R950 must be10k when integrated.
* Timing/current/PDN and actual board layout remain qualification requirements.
*/
export function UsbPhyCorePower({placements=usbPhyCorePowerDefaultPlacements,references,inputNet='net.V_3V3',enableNet='net.MAIN_3V3_PG',outputNet='net.V_USB_PHY_1V1',powerGoodNet='net.USB_PHY_CORE_PG'}:{
placements?:Partial<Record<string,ReferencePowerPlacement>>;references?:readonly string[];inputNet?:string;enableNet?:string;outputNet?:string;powerGoodNet?:string
}){
const wanted=(name:string)=>!references||references.includes(name)
const p=(name:string)=>{
const i=Object.keys(usbPhyCorePowerDefaultPlacements).indexOf(name)
return {schX:100+(i%4)*5,schY:100-Math.floor(i/4)*7,schSectionName:'USB_PHY_CORE_POWER_SECTION',...placements[name]}
}
const sw='net.USB_PHY_CORE_SW',fb='net.USB_PHY_CORE_FB',ss='net.USB_PHY_CORE_SS'
return <>
<schematicsection name="USB_PHY_CORE_POWER_SECTION" displayName="USB and Ethernet1.1V" />
<net name={outputNet.replace(/^net\./,'')} isPower />
{wanted('U1700')&&<TPS62135RGX name="U1700" {...p('U1700')} noConnect={['FB2']}
connections={{VIN:inputNet,SW:sw,GND:'net.GND',FB:fb,VOS:outputNet,PG:powerGoodNet,EN:enableNet,SS_TR:ss,MODE:inputNet,VSEL:'net.GND'}} />}
{wanted('L1700')&&<inductor name="L1700" inductance="2.2uH" manufacturerPartNumber="XFL4020-222MEC" footprint={<XFL4020Footprint />} {...p('L1700')} connections={{pin1:sw,pin2:outputNet}} />}
{wanted('C1700')&&<capacitor name="C1700" capacitance="22uF" maxVoltageRating="25V" manufacturerPartNumber="GRM21BR61E226ME44L" footprint="0805" {...p('C1700')} connections={{pin1:inputNet,pin2:'net.GND'}} />}
{wanted('C1701')&&<capacitor name="C1701" capacitance="100nF" maxVoltageRating="16V" manufacturerPartNumber="GRM155R71C104KA88D" footprint="0402" {...p('C1701')} connections={{pin1:inputNet,pin2:'net.GND'}} />}
{['C1702','C1703'].filter(wanted).map(name=><capacitor key={name} name={name} capacitance="47uF" maxVoltageRating="10V" manufacturerPartNumber="GRM21BR61A476ME15L" footprint="0805" {...p(name)} connections={{pin1:outputNet,pin2:'net.GND'}} />)}
{wanted('C1704')&&<capacitor name="C1704" capacitance="10nF" maxVoltageRating="50V" manufacturerPartNumber="GRM155R71H103KA88D" footprint="0402" {...p('C1704')} connections={{pin1:ss,pin2:'net.GND'}} />}
{[
['R1700','12k','RT0402BRD0712KL',outputNet,fb],['R1701','20k','RT0402BRD0720KL',fb,'net.GND'],
['R1702','10k','RC0402FR-0710KL',inputNet,powerGoodNet],['R1703','100k','RC0402FR-07100KL',enableNet,'net.GND'],
].filter(([name])=>wanted(name)).map(([name,value,mpn,a,b])=><resistor key={name} name={name} resistance={value}
tolerance={name==='R1700'||name==='R1701'?'0.1%':'1%'} manufacturerPartNumber={mpn} footprint="0402" {...p(name)} connections={{pin1:a,pin2:b}} />)}
</>
}