This directory contains AST10x0 SGPIOM configuration tooling that replaces DTS-style wiring with a declarative JSON pipeline.
The tool consumes board manifests and produces deterministic build artifacts:
sgpiom_merged.json: canonical merged manifestsgpiom_config_generated.rs: generated Rust config modulesgpiom_report.txt: summary report (optional)Generated Rust symbols include:
SGPIOM_CONTROLLERSGPIOM_BANKSSGPIOM_SIGNALSSGPIOM_MANIFEST_HASHTool entrypoint:
tools/sgpiom/sgpio_json_tool.pySubcommands:
validate: schema and semantic checksmerge: deterministic merge of input manifestsgenerate: emit Rust static config modulecheck: verify generated output is up to datereport: print human-readable usage summarytools/sgpiom/examples/common.jsontools/sgpiom/examples/ast1060_dcscm.jsontools/sgpiom/examples/ast1060_prot_dice.jsonValidate:
python3 tools/sgpiom/sgpio_json_tool.py validate \ --input tools/sgpiom/examples/common.json \ --input tools/sgpiom/examples/ast1060_dcscm.json
Merge:
python3 tools/sgpiom/sgpio_json_tool.py merge \ --input tools/sgpiom/examples/common.json \ --input tools/sgpiom/examples/ast1060_dcscm.json \ --output /tmp/sgpiom_merged.json
Generate:
python3 tools/sgpiom/sgpio_json_tool.py generate \ --input tools/sgpiom/examples/common.json \ --input tools/sgpiom/examples/ast1060_dcscm.json \ --output /tmp/sgpiom_config_generated.rs
Check:
python3 tools/sgpiom/sgpio_json_tool.py check \ --input tools/sgpiom/examples/common.json \ --input tools/sgpiom/examples/ast1060_dcscm.json \ --output /tmp/sgpiom_config_generated.rs
Report:
python3 tools/sgpiom/sgpio_json_tool.py report \ --input tools/sgpiom/examples/common.json \ --input tools/sgpiom/examples/ast1060_dcscm.json
Bazel tool package:
//tools/sgpiomBoard-level SGPIOM pipeline targets:
//target/ast10x0/board:sgpiom_validate//target/ast10x0/board:sgpiom_merged//target/ast10x0/board:sgpiom_generate//target/ast10x0/board:sgpiom_check//target/ast10x0/board:sgpiom_reportBoard crate consumption target:
//target/ast10x0/board:ast10x0_boardBuild all SGPIOM pipeline targets:
bazelisk build --config=k_ast1060_evb \ //target/ast10x0/board:ast10x0_board \ //target/ast10x0/board:sgpiom_validate \ //target/ast10x0/board:sgpiom_merged \ //target/ast10x0/board:sgpiom_generate \ //target/ast10x0/board:sgpiom_check \ //target/ast10x0/board:sgpiom_report