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

dt-bindings: timer: Convert arm,mps2-timer to DT schema

Convert the Arm MPS2 Timer binding to DT schema format. It's a
straight-forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://lore.kernel.org/r/20250506022210.2586404-1-robh@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Rob Herring (Arm) and committed by
Daniel Lezcano
7aeeac55 f4cc1801

+49 -28
-28
Documentation/devicetree/bindings/timer/arm,mps2-timer.txt
··· 1 - ARM MPS2 timer 2 - 3 - The MPS2 platform has simple general-purpose 32 bits timers. 4 - 5 - Required properties: 6 - - compatible : Should be "arm,mps2-timer" 7 - - reg : Address and length of the register set 8 - - interrupts : Reference to the timer interrupt 9 - 10 - Required clocking property, have to be one of: 11 - - clocks : The input clock of the timer 12 - - clock-frequency : The rate in HZ in input of the ARM MPS2 timer 13 - 14 - Examples: 15 - 16 - timer1: mps2-timer@40000000 { 17 - compatible = "arm,mps2-timer"; 18 - reg = <0x40000000 0x1000>; 19 - interrupts = <8>; 20 - clocks = <&sysclk>; 21 - }; 22 - 23 - timer2: mps2-timer@40001000 { 24 - compatible = "arm,mps2-timer"; 25 - reg = <0x40001000 0x1000>; 26 - interrupts = <9>; 27 - clock-frequency = <25000000>; 28 - };
+49
Documentation/devicetree/bindings/timer/arm,mps2-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/arm,mps2-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ARM MPS2 timer 8 + 9 + maintainers: 10 + - Vladimir Murzin <vladimir.murzin@arm.com> 11 + 12 + description: 13 + The MPS2 platform has simple general-purpose 32 bits timers. 14 + 15 + properties: 16 + compatible: 17 + const: arm,mps2-timer 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + clock-frequency: 29 + description: Rate in Hz of the timer input clock 30 + 31 + oneOf: 32 + - required: [clocks] 33 + - required: [clock-frequency] 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + timer@40000000 { 45 + compatible = "arm,mps2-timer"; 46 + reg = <0x40000000 0x1000>; 47 + interrupts = <8>; 48 + clocks = <&sysclk>; 49 + };