Devicetree

From beriberikix/zephyr-agent-skills · View interactive version

Devicetree is an AI agent skill from the GitHub repository beriberikix/zephyr-agent-skills. Devicetree management for Zephyr RTOS. Covers syntax, bindings, overlays, Hardware Model v2 (HWMv2), and advanced node/property deletion patterns. Trigger when defining hardware topology, creating overlays, or mapping pins and peripherals.

How to use this skill

Skill file

Zephyr Devicetree

The Devicetree (DT) is the source of truth for your hardware topology in Zephyr.

Core Workflows

1. Understanding Syntax & Nodes

Nodes, properties, and phandles form the hierarchy.

2. Working with Bindings

Mapping hardware descriptions to driver schemas.

3. Application Overlays & HWMv2

Modifying board behavior for specific application needs.

4. Advanced Hardware Modification

Deleting and redefining nodes/properties for product variants.

Quick Start (Overlay)

/* app.overlay */
&i2c1 {
  status = "okay";
};

&uart0 {
  status = "disabled";
};

Tooling & Validation

Automation Tools

Examples & Templates

Validation Checklist

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.