dt-bindings: timer: Convert stm32 timer bindings to json-schema
Subsystems (4)
PATCH v3 1/1 dt-bindings: timer: Convert stm32 timer bindings to json-schema
Convert the STM32 timer binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>
---
changes in v3:
- use (GPL-2.0-only OR BSD-2-Clause) license
- fix identation
- add additionalProperties: false
.../devicetree/bindings/timer/st,stm32-timer.txt | 22 ---------- .../devicetree/bindings/timer/st,stm32-timer.yaml | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/st,stm32-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/st,stm32-timer.yaml
Documentation/devicetree/bindings/timer/st,stm32-timer.txt deleted +0 -22
@@ -1,22 +0,0 @@ -. STMicroelectronics STM32 timer - -The STM32 MCUs family has several general-purpose 16 and 32 bits timers. - -Required properties: -- compatible : Should be "st,stm32-timer" -- reg : Address and length of the register set -- clocks : Reference on the timer input clock -- interrupts : Reference to the timer interrupt - -Optional properties: -- resets: Reference to a reset controller asserting the timer - -Example: - -timer5: timer@40000c00 { - compatible = "st,stm32-timer"; - reg = <0x40000c00 0x400>; - interrupts = <50>; - resets = <&rrc 259>; - clocks = <&clk_pmtr1>; -};
Documentation/devicetree/bindings/timer/st,stm32-timer.yaml new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.15.0
Quoted 9 lines · Benjamin Gaignard
Convert the STM32 timer binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>---
changes in v3:
- use (GPL-2.0-only OR BSD-2-Clause) license
- fix identation
- add additionalProperties: false
Quoted 6 lines
.../devicetree/bindings/timer/st,stm32-timer.txt | 22 ---------- .../devicetree/bindings/timer/st,stm32-timer.yaml | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/st,stm32-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/st,stm32-timer.yaml
Applied, thanks.
Rob