Skip to main content

Shell-like interface with Zephyr Devicetree

Project description

DTSh is a Devicetree Source (DTS) files viewer with a shell-like command line interface:

  • navigate and visualize the devicetree

  • search for devices, bindings, buses or interrupts with flexible criteria

  • redirect command output to files (text, HTML, SVG) to document hardware configurations or illustrate notes

  • rich Textual User Interface, command line auto-completion, command history, user themes

$ dtsh build/zephyr/zephyr.dts
dtsh (0.2.3): A Devicetree Shell
How to exit: q, or quit, or exit, or press Ctrl-D

/
> cd &flash_controller

/soc/flash-controller@4001e000
> tree -l
                              Description
                              ─────────────────────────────────────────────────────────────────
flash-controller@4001e000     Nordic NVMC (Non-Volatile Memory Controller)
└── flash@0                   Flash node
    └── partitions            This binding is used to describe fixed partitions of a flash (or…
         ├── partition@0      Each child node of the fixed-partitions node represents…
         ├── partition@c000   Each child node of the fixed-partitions node represents…
         ├── partition@82000  Each child node of the fixed-partitions node represents…
         └── partition@f8000  Each child node of the fixed-partitions node represents…

You can use it with:

  • all DTS files generated by Zephyr at build-time (aka build/zephyr/zephyr.dts)

  • arbitrary DTS files with bindings compatible with Zephyr’s Devicetre bindings syntax

Status

DTSh 0.2.x mirror and package the code base that serves as a proposal to upstream DTSh as a new Zephyr extension to West: RFC - DTSh, shell-like interface with Devicetree

This is the stable and maintained branch: if you have DTSh 0.1.x installed, please upgrade with e.g. pip install -U dtsh.

Please refer to the DTSh project documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dtsh-0.2.3.1.tar.gz (205.0 kB view details)

Uploaded Source

Built Distribution

dtsh-0.2.3.1-py3-none-any.whl (192.1 kB view details)

Uploaded Python 3

File details

Details for the file dtsh-0.2.3.1.tar.gz.

File metadata

  • Download URL: dtsh-0.2.3.1.tar.gz
  • Upload date:
  • Size: 205.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for dtsh-0.2.3.1.tar.gz
Algorithm Hash digest
SHA256 d4d494809b6128cb0433046a395b99da1d00d0394c9565ebb18fe81ca9cad639
MD5 136d44d55868c911706149dac108b6a0
BLAKE2b-256 391c7cf003533af75da92266a671eb26f8bb34f474db566fa0b4ec41e7079d2b

See more details on using hashes here.

File details

Details for the file dtsh-0.2.3.1-py3-none-any.whl.

File metadata

  • Download URL: dtsh-0.2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 192.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for dtsh-0.2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bbf059f088a6ab2e9a630087ba5e52c07f1d4a7e57d4813395ab701e0ad9807
MD5 a7ed3349d8ecd2a2f19095ac31deafd4
BLAKE2b-256 366d912d584822ea661e394ff049e10cf750bad17e811ab082fcf5bb8246b900

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page