DTS 101: From Roots To Trees, Aka Devicetree for Beginners
summary
Practical, step‑by‑step guide to writing Linux devicetree sources and YAML bindings: explains that compatible strings must name the specific device (front then fallback), that DTC produces DTB blobs, and that DT schema plus the DT validation tools catch mistakes early. Recommends filename = compatible, copying the example schema, using make DT_BINDINGS_CHECK and make DTB_CHECK (or single-DTS DTB targets) to validate before submitting, and notes automated txt→YAML conversions already accelerate upstreaming.
AI-written summary · about
chapters (20)
- 0:00Device Tree basics
- 1:02What is Device Tree
- 3:49Schema and validation tools
- 4:53DTS structure and nodes
- 6:38Address cells and properties
- 8:02Compatible property
- 9:26Front and fallback compatibles
- 11:33Writing bindings from scratch
- 13:17Binding constraints
- 15:47Required properties
- 17:13Referencing schemas
- 18:15What belongs in DTS and what does not
- 20:22Adding child nodes
- 22:07Hardware vs driver needs
- 23:52Clock frequency issues
- 25:16Near-identical devices
- 27:24Validating bindings and DTS
- 28:50Q&A on bindings
- 30:56Legacy to YAML bindings
- 32:00Final Q&A








