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

dt-bindings: timer: Convert altr,timer-1.0 to DT schema

Convert the Altera 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/20250506022202.2586157-1-robh@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Rob Herring (Arm) and committed by
Daniel Lezcano
60160c4b 6d1ca223

+39 -18
-18
Documentation/devicetree/bindings/timer/altr,timer-1.0.txt
··· 1 - Altera Timer 2 - 3 - Required properties: 4 - 5 - - compatible : should be "altr,timer-1.0" 6 - - reg : Specifies base physical address and size of the registers. 7 - - interrupts : Should contain the timer interrupt number 8 - - clock-frequency : The frequency of the clock that drives the counter, in Hz. 9 - 10 - Example: 11 - 12 - timer { 13 - compatible = "altr,timer-1.0"; 14 - reg = <0x00400000 0x00000020>; 15 - interrupt-parent = <&cpu>; 16 - interrupts = <11>; 17 - clock-frequency = <125000000>; 18 - };
+39
Documentation/devicetree/bindings/timer/altr,timer-1.0.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/altr,timer-1.0.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Altera Timer 8 + 9 + maintainers: 10 + - Dinh Nguyen <dinguyen@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + const: altr,timer-1.0 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + clock-frequency: 23 + description: Frequency of the clock that drives the counter, in Hz. 24 + 25 + required: 26 + - compatible 27 + - reg 28 + - interrupts 29 + 30 + additionalProperties: false 31 + 32 + examples: 33 + - | 34 + timer@400000 { 35 + compatible = "altr,timer-1.0"; 36 + reg = <0x00400000 0x00000020>; 37 + interrupts = <11>; 38 + clock-frequency = <125000000>; 39 + };