Re: dtc for .dts file linting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Paul,

On 7/31/19 7:46 AM, Paul Spooren wrote:
> Hi,
> 
> I hope this mail reaches the correct people!
> 
> At OpenWrt[0] there are sometimes badly styled .dts files which waste
> human time to comment and fix, it would be nice to have some automatic
> checks for that. Is there a tool like astyle or clang-format for device
> tree files?
The bindings documents are being converted into a json-schema vocabulary.
Once in this format, the bindings to be used to validate .dts files.
See section "##Testing" in the file Documentation/devicetree/writing-schema.md
which is in the Linux kernel source tree for information on the validation
tools.

Also, dtc has been adding many checks.  See file checks.c in the dtc source
tree.

-Frank

> 
> I thought it'd be great if `dtc` could do such linting, as it parses and
> writes these files already.
> 
> Please share your thoughts!
> 
> Best regards,
> Paul Spooren
> 
> [0]: https://openwrt.org/
> 
> 




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux