Skip to contentSkip to conversation

docs: dt: writing-bindings: Add exception for clock-names

PATCH In review Frank Li 2 participants 3 messages Aug 26, 2025 – Aug 27, 2025

Subsystems (2)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 docs: dt: writing-bindings: Add exception for clock-names

Allow pattern like "pclk" and "hclk" as clock-names.

---
https://lore.kernel.org/linux-i3c/[email protected]/

---
 Documentation/devicetree/bindings/writing-bindings.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/writing-bindings.rst +2 -1
index 667816dd7d504..81f76ca57a394 100644
@@ -97,7 +97,8 @@ Typical cases and caveats
   constraints (e.g. list of items).
 
 - For names used in {clock,dma,interrupt,reset}-names, do not add any suffix,
-  e.g.: "tx" instead of "txirq" (for interrupt).
+  e.g.: "tx" instead of "txirq" (for interrupt). Except when only single letter
+  remains after removing the suffix, e.g., 'pclk', 'hclk'.
 
 - Properties without schema types (e.g. without standard suffix or not defined
   by schema) need the type, even if this is an enum.
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 14 lines · Frank Li

Allow pattern like "pclk" and "hclk" as clock-names.

---
https://lore.kernel.org/linux-i3c/[email protected]/

---
 Documentation/devicetree/bindings/writing-bindings.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/writing-bindings.rst +0 -0
index 667816dd7d504..81f76ca57a394 100644

Documentation/devicetree/bindings/writing-bindings.rst Typical cases and caveats · line 101

Quoted 6 lines
Documentation/devicetree/bindings/writing-bindings.rst +2 -1
@@ -97,7 +97,8 @@ Typical cases and caveats
   constraints (e.g. list of items).
 
 - For names used in {clock,dma,interrupt,reset}-names, do not add any suffix,
-  e.g.: "tx" instead of "txirq" (for interrupt).
+  e.g.: "tx" instead of "txirq" (for interrupt). Except when only single letter
+  remains after removing the suffix, e.g., 'pclk', 'hclk'.

It's more that the examples are the hardware names for the clocks than a single letter is too terse.

Rob

author maintainer
#2 lore raw
Quoted 17 lines · Rob Herring
Quoted 16 lines · Frank Li

Allow pattern like "pclk" and "hclk" as clock-names.

---
https://lore.kernel.org/linux-i3c/[email protected]/

---
 Documentation/devicetree/bindings/writing-bindings.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/writing-bindings.rst +0 -0
index 667816dd7d504..81f76ca57a394 100644
@@ -97,7 +97,8 @@ Typical cases and caveats
   constraints (e.g. list of items).
 
Quoted 7 lines

Documentation/devicetree/bindings/writing-bindings.rst Typical cases and caveats · line 101

Quoted 4 lines
Documentation/devicetree/bindings/writing-bindings.rst +2 -1
 - For names used in {clock,dma,interrupt,reset}-names, do not add any suffix,
-  e.g.: "tx" instead of "txirq" (for interrupt).
+  e.g.: "tx" instead of "txirq" (for interrupt). Except when only single letter
+  remains after removing the suffix, e.g., 'pclk', 'hclk'.

It's more that the examples are the hardware names for the clocks than a single letter is too terse.

Yes, some hardware signal use name pclk, look like [X]clk name also from hardware. How to document it here? It breaks "do not add any suffix" and this name is allowed.

Some hardware use quite long name like ipg-clk. just need ipg in binding.

Frank

Quoted 2 lines

Rob