Command Line Interface
adidtc is the CLI for pyadi-dt. It provides commands for inspecting device
trees on live hardware, generating device tree source files from Vivado XSA
designs or board class configurations, and managing boot files on remote boards.
pip install adidt # core commands
pip install "adidt[xsa]" # adds xsa2dt and profile commands
Command Overview
Commands are grouped into three workflows:
Inspect device trees
Read, search, and modify device tree properties on live hardware (local or
remote over SSH) or from a .dtb file.
propGet or set properties on a single node. Supports lookup by node name or compatible string.
adidtc -c remote_sysfs -i 192.168.2.1 prop -cp adi,ad9361 adidtc prop axi_ad9144_jesd compatible
propsLike
prop, but supports hierarchical navigation through nested nodes by specifying multiple node names as a path.adidtc props amba axi_ad9144_jesd -p compatible adidtc -c local_file -f devicetree.dtb props amba spi0
depsAnalyze
#include//include/dependencies in a.dtsfile. Outputs a tree, GraphViz DOT, or JSON.adidtc deps overlay.dts adidtc deps overlay.dts --format dot -o deps.dot
Generate device trees
Produce .dts files from Vivado XSA designs, board class + solver configs,
or profile wizard exports.
xsa2dtRun the full 5-stage XSA pipeline (sdtgen, parse, build, merge, report). Requires
sdtgen(lopper) on PATH.adidtc xsa2dt -x design.xsa -c config.json -o out/ adidtc xsa2dt -x design.xsa -c config.json --profile ad9081_zcu102 --lint
gen-dtsGenerate DTS from a board class and JSON config (pyadi-jif solver output). No Vivado or XSA required.
adidtc gen-dts -b daq2 -p zcu102 -c solver_config.json adidtc gen-dts -b ad9081_fmc -p vpk180 -c config.json --compile
profile2dtGenerate DTS from Transceiver Evaluation Software profile wizard exports. Currently supports ADRV9009.
adidtc -b adrv9009_pcbz profile2dt --profile profile.json --config talise_config.c
jifApply pyadi-jif solver output to update clock parameters in a live device tree.
adidtc -c remote_sysfs -i 192.168.2.1 jif clock -f solved_clocks.json
Manage boards and profiles
List supported boards, browse XSA profiles, and deploy boot files.
kuiper-boardsList all boards from the ADI Kuiper Linux manifest with their device tree generation support status (full, profile_only, unsupported).
adidtc kuiper-boards adidtc kuiper-boards --status full adidtc kuiper-boards --json-output
xsa-profilesList built-in XSA board profiles available for
xsa2dt --profile.adidtc xsa-profilesxsa-profile-showPrint the full JSON contents of a built-in XSA profile.
adidtc xsa-profile-show ad9081_zcu102
sd-moveSwitch the active reference design on a remote SD card.
adidtc -c remote_sd -i 192.168.2.1 sd-move daq2
sd-remote-copyCopy local boot files to a remote SD card over the network.
adidtc -c remote_sd -i 192.168.2.1 sd-remote-copy BOOT.BIN,system.dtb
Global Options
Every command inherits global options that control how adidtc connects to
the target:
Option |
Default |
Description |
|---|---|---|
|
|
Access method: |
|
|
Board configuration for commands that need board-specific metadata |
|
|
IP address for remote contexts |
|
|
SSH username for remote contexts |
|
|
SSH password for remote contexts |
|
|
Target architecture ( |
|
|
Path to DTB file for |
|
off |
Disable Rich formatting and color output |
CLI Reference
Full auto-generated reference for all commands and options:
adidtc
ADI device tree utility for inspecting, generating, and modifying Linux device trees for Analog Devices hardware.
Usage
adidtc [OPTIONS] COMMAND [ARGS]...
Options
- -b, --board <board>
Set board configuration
- Default:
'adrv9009_pcbz'- Options:
ad9081_fmc | adrv9009_pcbz | adrv9009_zu11eg | adrv9361_z7035 | adrv9364_z7020 | daq2
- -c, --context <context>
Set context
- Default:
'local_sysfs'- Options:
local_file | local_sd | local_sysfs | remote_sysfs | remote_sd
- -u, --username <username>
Set username used by remote SSH sessions (default is root)
- Default:
'root'
- -w, --password <password>
Set password used by remote SSH sessions (default is analog)
- Default:
'analog'
- -a, --arch <arch>
Set target architecture which will set the target DT. auto with determine from running system
- Default:
'auto'- Options:
arm | arm64 | auto
- -f, --filepath <filepath>
Path of the target devicetree blob to be used in local_file mode (default is devicetree.dtb)
- Default:
'devicetree.dtb'
deps
Analyze and visualize device tree include dependencies.
Usage
adidtc deps [OPTIONS] DT_FILE
Options
Arguments
gen-dts
Generate device tree source from a board class and JSON configuration.
Usage
adidtc gen-dts [OPTIONS]
Options
- -b, --board <board>
Required Board class to use for generation
- Options:
ad9081_fmc | ad9082_fmc | ad9083_fmc | ad9084_fmc | adrv9002_fmc | adrv9008_fmc | adrv9009_fmc | adrv9025_fmc | adrv937x_fmc | daq2 | fmcomms_fmc
jif
Apply pyadi-jif solver output to update device tree clock and JESD parameters.
Usage
adidtc jif [OPTIONS] {clock|converter|system|fpga}
Options
Arguments
kuiper-boards
List ADI Kuiper Linux supported boards and their device tree generation status.
Usage
adidtc kuiper-boards [OPTIONS]
Options
profile2dt
Generate a device tree from Transceiver Evaluation Software profile exports.
Usage
adidtc profile2dt [OPTIONS]
Options
prop
Get and set device tree properties on a single node.
Usage
adidtc prop [OPTIONS] [NODE_NAME] [PROP] [VALUE]
Options
Arguments
props
Get and set device tree properties with hierarchical node navigation.
Usage
adidtc props [OPTIONS] [NODE_NAME]...
Options
- -cp, --compat
Use node name to check against compatible id of node during search. This is only used for the first node
Arguments
sd-move
Move boot files on a remote SD card to switch reference designs.
Usage
adidtc sd-move [OPTIONS] [RD]
Options
Arguments
sd-remote-copy
Copy local boot files to a remote SD card over the network.
Usage
adidtc sd-remote-copy [OPTIONS] [FILES]
Options
Arguments
xsa-profile-show
Show the full contents of a built-in XSA board profile as JSON.
Usage
adidtc xsa-profile-show [OPTIONS] NAME
Arguments
xsa-profiles
List available built-in XSA board profiles.
Usage
adidtc xsa-profiles [OPTIONS]
xsa2dt
Generate ADI device tree from a Vivado XSA file.
Usage
adidtc xsa2dt [OPTIONS]
Options