* [PATCH] dt-bindings: timer: Convert lsi,zevio-timer to DT schema
@ 2025-05-06 2:22 Rob Herring (Arm)
2025-05-15 8:25 ` Daniel Lezcano
2025-05-21 15:49 ` [tip: timers/clocksource] " tip-bot2 for Rob Herring (Arm)
0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-05-06 2:22 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner, Krzysztof Kozlowski,
Conor Dooley, Daniel Tang
Cc: linux-kernel, devicetree
Convert the TI NSPIRE Timer binding to DT schema format. It's a
straight-forward conversion.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
.../bindings/timer/lsi,zevio-timer.txt | 33 -----------
.../bindings/timer/lsi,zevio-timer.yaml | 56 +++++++++++++++++++
2 files changed, 56 insertions(+), 33 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt
create mode 100644 Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml
diff --git a/Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt b/Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt
deleted file mode 100644
index b2d07ad90e9a..000000000000
--- a/Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-TI-NSPIRE timer
-
-Required properties:
-
-- compatible : should be "lsi,zevio-timer".
-- reg : The physical base address and size of the timer (always first).
-- clocks: phandle to the source clock.
-
-Optional properties:
-
-- interrupts : The interrupt number of the first timer.
-- reg : The interrupt acknowledgement registers
- (always after timer base address)
-
-If any of the optional properties are not given, the timer is added as a
-clock-source only.
-
-Example:
-
-timer {
- compatible = "lsi,zevio-timer";
- reg = <0x900D0000 0x1000>, <0x900A0020 0x8>;
- interrupts = <19>;
- clocks = <&timer_clk>;
-};
-
-Example (no clock-events):
-
-timer {
- compatible = "lsi,zevio-timer";
- reg = <0x900D0000 0x1000>;
- clocks = <&timer_clk>;
-};
diff --git a/Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml b/Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml
new file mode 100644
index 000000000000..358455d8e7a8
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/lsi,zevio-timer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI-NSPIRE timer
+
+maintainers:
+ - Daniel Tang <dt.tangr@gmail.com>
+
+properties:
+ compatible:
+ const: lsi,zevio-timer
+
+ reg:
+ minItems: 1
+ items:
+ - description: Timer registers
+ - description: Interrupt acknowledgement registers (optional)
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+
+allOf:
+ - if:
+ required: [ interrupts ]
+ then:
+ properties:
+ reg:
+ minItems: 2
+
+additionalProperties: false
+
+examples:
+ - |
+ timer@900d0000 {
+ compatible = "lsi,zevio-timer";
+ reg = <0x900D0000 0x1000>, <0x900A0020 0x8>;
+ interrupts = <19>;
+ clocks = <&timer_clk>;
+ };
+ - |
+ timer@900d0000 {
+ compatible = "lsi,zevio-timer";
+ reg = <0x900D0000 0x1000>;
+ clocks = <&timer_clk>;
+ };
--
2.47.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: timer: Convert lsi,zevio-timer to DT schema
2025-05-06 2:22 [PATCH] dt-bindings: timer: Convert lsi,zevio-timer to DT schema Rob Herring (Arm)
@ 2025-05-15 8:25 ` Daniel Lezcano
2025-05-21 15:49 ` [tip: timers/clocksource] " tip-bot2 for Rob Herring (Arm)
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2025-05-15 8:25 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: Thomas Gleixner, Krzysztof Kozlowski, Conor Dooley, Daniel Tang,
linux-kernel, devicetree
On Mon, May 05, 2025 at 09:22:56PM -0500, Rob Herring wrote:
> Convert the TI NSPIRE Timer binding to DT schema format. It's a
> straight-forward conversion.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: timers/clocksource] dt-bindings: timer: Convert lsi,zevio-timer to DT schema
2025-05-06 2:22 [PATCH] dt-bindings: timer: Convert lsi,zevio-timer to DT schema Rob Herring (Arm)
2025-05-15 8:25 ` Daniel Lezcano
@ 2025-05-21 15:49 ` tip-bot2 for Rob Herring (Arm)
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Rob Herring (Arm) @ 2025-05-21 15:49 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Rob Herring (Arm), Daniel Lezcano, x86, linux-kernel
The following commit has been merged into the timers/clocksource branch of tip:
Commit-ID: e1e9fad1499c029e6052b13e9974f5cc2ccf7c89
Gitweb: https://git.kernel.org/tip/e1e9fad1499c029e6052b13e9974f5cc2ccf7c89
Author: Rob Herring (Arm) <robh@kernel.org>
AuthorDate: Mon, 05 May 2025 21:22:56 -05:00
Committer: Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Fri, 16 May 2025 11:10:33 +02:00
dt-bindings: timer: Convert lsi,zevio-timer to DT schema
Convert the TI NSPIRE Timer binding to DT schema format. It's a
straight-forward conversion.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250506022257.2588136-1-robh@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt | 33 +----
Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml | 56 +++++++-
2 files changed, 56 insertions(+), 33 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt
create mode 100644 Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml
diff --git a/Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt b/Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt
deleted file mode 100644
index b2d07ad..0000000
--- a/Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-TI-NSPIRE timer
-
-Required properties:
-
-- compatible : should be "lsi,zevio-timer".
-- reg : The physical base address and size of the timer (always first).
-- clocks: phandle to the source clock.
-
-Optional properties:
-
-- interrupts : The interrupt number of the first timer.
-- reg : The interrupt acknowledgement registers
- (always after timer base address)
-
-If any of the optional properties are not given, the timer is added as a
-clock-source only.
-
-Example:
-
-timer {
- compatible = "lsi,zevio-timer";
- reg = <0x900D0000 0x1000>, <0x900A0020 0x8>;
- interrupts = <19>;
- clocks = <&timer_clk>;
-};
-
-Example (no clock-events):
-
-timer {
- compatible = "lsi,zevio-timer";
- reg = <0x900D0000 0x1000>;
- clocks = <&timer_clk>;
-};
diff --git a/Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml b/Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml
new file mode 100644
index 0000000..358455d
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/lsi,zevio-timer.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/lsi,zevio-timer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI-NSPIRE timer
+
+maintainers:
+ - Daniel Tang <dt.tangr@gmail.com>
+
+properties:
+ compatible:
+ const: lsi,zevio-timer
+
+ reg:
+ minItems: 1
+ items:
+ - description: Timer registers
+ - description: Interrupt acknowledgement registers (optional)
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+
+allOf:
+ - if:
+ required: [ interrupts ]
+ then:
+ properties:
+ reg:
+ minItems: 2
+
+additionalProperties: false
+
+examples:
+ - |
+ timer@900d0000 {
+ compatible = "lsi,zevio-timer";
+ reg = <0x900D0000 0x1000>, <0x900A0020 0x8>;
+ interrupts = <19>;
+ clocks = <&timer_clk>;
+ };
+ - |
+ timer@900d0000 {
+ compatible = "lsi,zevio-timer";
+ reg = <0x900D0000 0x1000>;
+ clocks = <&timer_clk>;
+ };
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-21 15:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 2:22 [PATCH] dt-bindings: timer: Convert lsi,zevio-timer to DT schema Rob Herring (Arm)
2025-05-15 8:25 ` Daniel Lezcano
2025-05-21 15:49 ` [tip: timers/clocksource] " tip-bot2 for Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).