Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dtfmt

dtfmt is a Devicetree Source formatter. It uses tree-sitter-devicetree as a parser. The default style is based on the Linux kernel style guide.

Example

Format all Devictree Source files (in-place) under a directory:

dtfmt -i $(find /path/to/dts/files -iregex ".+\.dts[io]?$")

Installation

cargo install dtfmt

Building

cargo build --release

Copyright (C) 2026 Waqar Hameed and the dtfmt contributors.

About

Mirror of https://codeberg.org/whame/dtfmt

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages