From f3ba1a7679bfaca2659e54209f7852c54544dce5 Mon Sep 17 00:00:00 2001 From: James Roy Date: Tue, 14 Jan 2025 15:36:23 +0800 Subject: [PATCH] doc: contribute: Add DTS encoding style Add link to upstream Linux Kernel DTS coding style. Signed-off-by: James Roy --- doc/contribute/guidelines.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/contribute/guidelines.rst b/doc/contribute/guidelines.rst index 998681a2e8fc..7452f2866b07 100644 --- a/doc/contribute/guidelines.rst +++ b/doc/contribute/guidelines.rst @@ -626,6 +626,19 @@ guidelines, maintainers may decide which style should be adopted. .. _Continuous Integration: +Devicetree Style +================ + +.. _Devicetree sources coding style: + https://kernel.org/doc/html/latest/devicetree/bindings/dts-coding-style.html + +In general, follow the `Devicetree sources coding style`_, with the following +exceptions: + +* Property names with underscores should be used only when strictly necessary + and already present in the upstream Linux kernel or other authoritative + third-party sources. + Continuous Integration (CI) ===========================