dt-bindings: timer: add Ralink SoCs timer documentation
Subsystems (2)
PATCH 1/1 dt-bindings: timer: add Ralink SoCs timer documentation
Add YAML documentation for the timer which is present on Ralink SoCs.
--- .../bindings/timer/ralink,rt2880-timer.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +49 -0
@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/ralink,rt2880-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Timer present in Ralink family SoCs + +maintainers: + - Sergio Paracuellos <[email protected]> + +properties: + compatible: + const: ralink,rt2880-timer + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: timer + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + timer@100 { + compatible = "ralink,rt2880-timer"; + reg = <0x100 0x20>; + + clocks = <&sysc 3>; + clock-names = "timer"; + + interrupt-parent = <&intc>; + interrupts = <1>; + }; +...
Signature · 1 line
2.25.1
Quoted 1 line · Sergio Paracuellos
Add YAML documentation for the timer which is present on Ralink SoCs.
If there is going to be new version:
A nit, subject: drop second/last, redundant "documentation". The "dt-bindings" prefix is already stating that these are bindings in documentation.
Quoted 26 lines
Signed-off-by Sergio Paracuellos <[email protected]>--- .../bindings/timer/ralink,rt2880-timer.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yamlDocumentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +13
-0@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/ralink,rt2880-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Timer present in Ralink family SoCs + +maintainers: + - Sergio Paracuellos <[email protected]> + +properties: + compatible:
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +10
-0+ const: ralink,rt2880-timer + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: timer
Names matching the module name are not really helpful, so drop it, unless any existing user needs it.
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml line 27
Quoted 4 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +4
-0+ + interrupts: + maxItems: 1 +
Best regards,
Krzysztof
Hi Krzysztof,
Quoted 8 lines · Krzysztof Kozlowski
Quoted 1 line · Sergio Paracuellos
Add YAML documentation for the timer which is present on Ralink SoCs.
If there is going to be new version:
A nit, subject: drop second/last, redundant "documentation". The "dt-bindings" prefix is already stating that these are bindings in documentation.
Understood, thanks.
Quoted 32 lines
Quoted 32 lines
Signed-off-by Sergio Paracuellos <[email protected]>--- .../bindings/timer/ralink,rt2880-timer.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yamlDocumentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +18
-0@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/ralink,rt2880-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Timer present in Ralink family SoCs + +maintainers: + - Sergio Paracuellos <[email protected]> + +properties: + compatible: + const: ralink,rt2880-timer + + reg: + maxItems: 1 +
Quoted 8 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml line 23
Quoted 5 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +5
-0+ clocks: + maxItems: 1 + + clock-names: + const: timerNames matching the module name are not really helpful, so drop it, unless any existing user needs it.
I am ok with dropping this. If you meant with an existing user something that is already mainlined in the kernel tree then I would say there is no need for this 'clock-names'. I don't know about other places since these SoCs are pretty old and almost with nothing documented. I am doing the effort of trying to document all the stuff before porting some openWRT device tree files to the kernel (this timer driver is already included in 'arch/mips/ralink' so I am documenting already in-tree things). So I guess I should send v2 removing this?
Thanks,
Sergio Paracuellos
Quoted 9 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml line 27
Quoted 5 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +4
-0+ + interrupts: + maxItems: 1 +Best regards,
Krzysztof
Quoted 12 lines · Sergio Paracuellos
Quoted 11 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml line 23
Quoted 8 lines
Documentation/devicetree/bindings/timer/ralink,rt2880-timer.yaml new file +8
-0+ reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: timerNames matching the module name are not really helpful, so drop it, unless any existing user needs it.
Quoted 2 lines
I am ok with dropping this. If you meant with an existing user something that is already mainlined in the kernel tree then I would
Yes.
Quoted 7 lines
say there is no need for this 'clock-names'. I don't know about other places since these SoCs are pretty old and almost with nothing documented. I am doing the effort of trying to document all the stuff before porting some openWRT device tree files to the kernel (this timer driver is already included in '
arch/mips/ralink' so I am documenting already in-tree things). So I guess I should send v2 removing this?
Yes, please.
Best regards,
Krzysztof