Skip to main content

Crate weft_boardchecker

Crate weft_boardchecker 

Source
Expand description

Checks a PCB netlist against a Linux device tree overlay.

The board comes from a tool-neutral export (IPC-2581, or IPC-D-356A plus a CSV BOM). The overlay is the compiled .dtbo. A host profile maps connector pins to GPIOs and buses, and the chip data from weft-parts maps part numbers to bus pins and address straps. See check::check.

Modulesยง

board
Tool-neutral board model: components, their part numbers and which net each pin is on.
bom
CSV bill of materials: adds part numbers to a board read from IPC-D-356A.
check
The cross-check: board devices on host buses versus overlay nodes.
config
Per-board configuration file (boardcheck.toml).
dtb
Minimal flattened device tree (DTB/DTBO) reader: builds a tree of nodes and raw properties. Only reading is needed; source parsing, includes and preprocessing stay with dtc.
host
Host profiles: which connector pin is which GPIO, and which GPIOs form which bus.
ipc356
IPC-D-356A reader (bare-board test netlist). Carries nets and pins but no part numbers; combine it with a BOM (see crate::bom).
ipc2581
IPC-2581 (revision B or C) reader: components, logical nets and part numbers.
overlay
Device tree overlay (compiled with dtc -@): fragments, their targets and unresolved phandle references, which __fixups__ records as label = "/path:property:byte-offset".