docs: dt: writing-bindings: Add exception for clock-names
Subsystems (2)
Frank Li
maintainerPATCH 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
@@ -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
Rob Herring
maintainerQuoted 14 lines · Frank Li
Allow pattern like "pclk" and "hclk" as clock-names.
Signed-off-by Frank Li <[email protected]>---
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
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
Frank Li
maintainerQuoted 17 lines · Rob Herring
Quoted 16 lines · Frank Li
Allow pattern like "pclk" and "hclk" as clock-names.
Signed-off-by Frank Li <[email protected]>---
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@@ -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