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

dt-bindings: timer: Convert cirrus,clps711x-timer to DT schema

Convert the Cirrus CLPS711x timer binding to DT schema format. It's a
straight-forward conversion.

Drop the aliases node and second example which aren't relevant.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250506022215.2586595-1-robh@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

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

+45 -29
-29
Documentation/devicetree/bindings/timer/cirrus,clps711x-timer.txt
··· 1 - * Cirrus Logic CLPS711X Timer Counter 2 - 3 - Required properties: 4 - - compatible: Shall contain "cirrus,ep7209-timer". 5 - - reg : Address and length of the register set. 6 - - interrupts: The interrupt number of the timer. 7 - - clocks : phandle of timer reference clock. 8 - 9 - Note: Each timer should have an alias correctly numbered in "aliases" node. 10 - 11 - Example: 12 - aliases { 13 - timer0 = &timer1; 14 - timer1 = &timer2; 15 - }; 16 - 17 - timer1: timer@80000300 { 18 - compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer"; 19 - reg = <0x80000300 0x4>; 20 - interrupts = <8>; 21 - clocks = <&clks 5>; 22 - }; 23 - 24 - timer2: timer@80000340 { 25 - compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer"; 26 - reg = <0x80000340 0x4>; 27 - interrupts = <9>; 28 - clocks = <&clks 6>; 29 - };
+45
Documentation/devicetree/bindings/timer/cirrus,clps711x-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/cirrus,clps711x-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Cirrus Logic CLPS711X Timer Counter 8 + 9 + maintainers: 10 + - Alexander Shiyan <shc_work@mail.ru> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - items: 16 + - enum: 17 + - cirrus,ep7312-timer 18 + - const: cirrus,ep7209-timer 19 + - const: cirrus,ep7209-timer 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + clocks: 25 + maxItems: 1 26 + 27 + interrupts: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - clocks 34 + - interrupts 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + timer@80000300 { 41 + compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer"; 42 + reg = <0x80000300 0x4>; 43 + interrupts = <8>; 44 + clocks = <&clks 5>; 45 + };