* [PATCH] dt-bindings: timer: armv7m-systick: convert to dtschema
@ 2022-02-09 13:52 Fabrice Gasnier
2022-02-11 17:01 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gasnier @ 2022-02-09 13:52 UTC (permalink / raw)
To: daniel.lezcano, robh+dt, alexandre.torgue
Cc: tglx, fabrice.gasnier, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel
Convert the ARMv7-M system timer bindings to DT schema format.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
---
.../bindings/timer/arm,armv7m-systick.txt | 26 -----------
.../bindings/timer/arm,armv7m-systick.yaml | 54 ++++++++++++++++++++++
2 files changed, 54 insertions(+), 26 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/timer/arm,armv7m-systick.txt
create mode 100644 Documentation/devicetree/bindings/timer/arm,armv7m-systick.yaml
diff --git a/Documentation/devicetree/bindings/timer/arm,armv7m-systick.txt b/Documentation/devicetree/bindings/timer/arm,armv7m-systick.txt
deleted file mode 100644
index 7cf4a24..00000000
--- a/Documentation/devicetree/bindings/timer/arm,armv7m-systick.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-* ARMv7M System Timer
-
-ARMv7-M includes a system timer, known as SysTick. Current driver only
-implements the clocksource feature.
-
-Required properties:
-- compatible : Should be "arm,armv7m-systick"
-- reg : The address range of the timer
-
-Required clocking property, have to be one of:
-- clocks : The input clock of the timer
-- clock-frequency : The rate in HZ in input of the ARM SysTick
-
-Examples:
-
-systick: timer@e000e010 {
- compatible = "arm,armv7m-systick";
- reg = <0xe000e010 0x10>;
- clocks = <&clk_systick>;
-};
-
-systick: timer@e000e010 {
- compatible = "arm,armv7m-systick";
- reg = <0xe000e010 0x10>;
- clock-frequency = <90000000>;
-};
diff --git a/Documentation/devicetree/bindings/timer/arm,armv7m-systick.yaml b/Documentation/devicetree/bindings/timer/arm,armv7m-systick.yaml
new file mode 100644
index 00000000..2bcade5
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/arm,armv7m-systick.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/arm,armv7m-systick.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARMv7M System Timer
+
+maintainers:
+ - Alexandre Torgue <alexandre.torgue@foss.st.com>
+ - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
+
+description: ARMv7-M includes a system timer, known as SysTick.
+
+properties:
+ compatible:
+ const: arm,armv7m-systick
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ clock-frequency: true
+
+oneOf:
+ - required:
+ - clocks
+ - required:
+ - clock-frequency
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ timer@e000e010 {
+ compatible = "arm,armv7m-systick";
+ reg = <0xe000e010 0x10>;
+ clocks = <&clk_systick>;
+ };
+
+ - |
+ timer@e000e010 {
+ compatible = "arm,armv7m-systick";
+ reg = <0xe000e010 0x10>;
+ clock-frequency = <90000000>;
+ };
+
+...
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: timer: armv7m-systick: convert to dtschema
2022-02-09 13:52 [PATCH] dt-bindings: timer: armv7m-systick: convert to dtschema Fabrice Gasnier
@ 2022-02-11 17:01 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2022-02-11 17:01 UTC (permalink / raw)
To: Fabrice Gasnier
Cc: linux-kernel, linux-stm32, tglx, daniel.lezcano, linux-arm-kernel,
devicetree, alexandre.torgue, robh+dt
On Wed, 09 Feb 2022 14:52:27 +0100, Fabrice Gasnier wrote:
> Convert the ARMv7-M system timer bindings to DT schema format.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
> ---
> .../bindings/timer/arm,armv7m-systick.txt | 26 -----------
> .../bindings/timer/arm,armv7m-systick.yaml | 54 ++++++++++++++++++++++
> 2 files changed, 54 insertions(+), 26 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/timer/arm,armv7m-systick.txt
> create mode 100644 Documentation/devicetree/bindings/timer/arm,armv7m-systick.yaml
>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-11 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09 13:52 [PATCH] dt-bindings: timer: armv7m-systick: convert to dtschema Fabrice Gasnier
2022-02-11 17:01 ` Rob Herring
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).