Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <benjamin.gaignard@st.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Benjamin Gaignard and committed by
Rob Herring
bfbcbf88 bf5c3ae1

+47 -22
-22
Documentation/devicetree/bindings/timer/st,stm32-timer.txt
··· 1 - . STMicroelectronics STM32 timer 2 - 3 - The STM32 MCUs family has several general-purpose 16 and 32 bits timers. 4 - 5 - Required properties: 6 - - compatible : Should be "st,stm32-timer" 7 - - reg : Address and length of the register set 8 - - clocks : Reference on the timer input clock 9 - - interrupts : Reference to the timer interrupt 10 - 11 - Optional properties: 12 - - resets: Reference to a reset controller asserting the timer 13 - 14 - Example: 15 - 16 - timer5: timer@40000c00 { 17 - compatible = "st,stm32-timer"; 18 - reg = <0x40000c00 0x400>; 19 - interrupts = <50>; 20 - resets = <&rrc 259>; 21 - clocks = <&clk_pmtr1>; 22 - };
+47
Documentation/devicetree/bindings/timer/st,stm32-timer.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/timer/st,stm32-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 general-purpose 16 and 32 bits timers bindings 8 + 9 + maintainers: 10 + - Benjamin Gaignard <benjamin.gaignard@st.com> 11 + 12 + properties: 13 + compatible: 14 + const: st,stm32-timer 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + resets: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - clocks 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/interrupt-controller/arm-gic.h> 39 + #include <dt-bindings/clock/stm32mp1-clks.h> 40 + timer: timer@40000c00 { 41 + compatible = "st,stm32-timer"; 42 + reg = <0x40000c00 0x400>; 43 + interrupts = <50>; 44 + clocks = <&clk_pmtr1>; 45 + }; 46 + 47 + ...