Skip to contentSkip to conversation

docs: dt-bindings: suggest "reg-names" position in DTS Coding Style

PATCH In review Rafał Miłecki 2 participants 2 messages Dec 29, 2023 – Dec 30, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: dt-bindings: suggest "reg-names" position in DTS Coding Style

From: Rafał Miłecki <[email protected]>

Property "reg-names" is strictly related to "reg" so it should follow it directly instead of falling into "Standard/common properties". This helps reading DTS files.

Cc Andrew Davis <[email protected]>
cc Andrew Lunn <[email protected]>
Cc AngeloGioacchino Del Regno <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Chen-Yu Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Matthias Brugger <[email protected]>
Cc Michal Simek <[email protected]>
Cc Neil Armstrong <[email protected]>
Cc Nishanth Menon <[email protected]>
Cc Olof Johansson <[email protected]>
---
 .../devicetree/bindings/dts-coding-style.rst          | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/dts-coding-style.rst +6 -5
index a9bdd2b59dca..1a48e2ca80e9 100644
@@ -116,12 +116,13 @@ The following order of properties in device nodes is preferred:
 
 1. "compatible"
 2. "reg"
-3. "ranges"
-4. Standard/common properties (defined by common bindings, e.g. without
+3. "reg-names"
+4. "ranges"
+5. Standard/common properties (defined by common bindings, e.g. without
    vendor-prefixes)
-5. Vendor-specific properties
-6. "status" (if applicable)
-7. Child nodes, where each node is preceded with a blank line
+6. Vendor-specific properties
+7. "status" (if applicable)
+8. Child nodes, where each node is preceded with a blank line
 
 The "status" property is by default "okay", thus it can be omitted.
 
Signature · 1 line
2.35.3
#1 lore raw
Quoted 5 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Property "reg-names" is strictly related to "reg" so it should follow it directly instead of falling into "Standard/common properties". This helps reading DTS files.

All 'xxx-names' should immediately follow 'xxx'. Instead of this change, just add a note at the bottom of this section?

Best regards,
Krzysztof