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

dt-bindings: timer: Convert csky,mptimer to DT schema

Convert the C-SKY Multi-processor timer binding to DT schema format.
It's a straight-forward conversion.

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

authored by

Rob Herring (Arm) and committed by
Daniel Lezcano
157265af ea1ab43e

+46 -42
-42
Documentation/devicetree/bindings/timer/csky,mptimer.txt
··· 1 - ============================ 2 - C-SKY Multi-processors Timer 3 - ============================ 4 - 5 - C-SKY multi-processors timer is designed for C-SKY SMP system and the 6 - regs is accessed by cpu co-processor 4 registers with mtcr/mfcr. 7 - 8 - - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer. 9 - - PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg. 10 - - PTIM_CCVR "cr<3, 14>" Current counter value reg. 11 - - PTIM_LVR "cr<6, 14>" Window value reg to trigger next event. 12 - 13 - ============================== 14 - timer node bindings definition 15 - ============================== 16 - 17 - Description: Describes SMP timer 18 - 19 - PROPERTIES 20 - 21 - - compatible 22 - Usage: required 23 - Value type: <string> 24 - Definition: must be "csky,mptimer" 25 - - clocks 26 - Usage: required 27 - Value type: <node> 28 - Definition: must be input clk node 29 - - interrupts 30 - Usage: required 31 - Value type: <u32> 32 - Definition: must be timer irq num defined by soc 33 - 34 - Examples: 35 - --------- 36 - 37 - timer: timer { 38 - compatible = "csky,mptimer"; 39 - clocks = <&dummy_apb_clk>; 40 - interrupts = <16>; 41 - interrupt-parent = <&intc>; 42 - };
+46
Documentation/devicetree/bindings/timer/csky,mptimer.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/csky,mptimer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: C-SKY Multi-processors Timer 8 + 9 + maintainers: 10 + - Flavio Suligoi <f.suligoi@asem.it> 11 + - Guo Ren <guoren@kernel.org> 12 + 13 + description: | 14 + C-SKY multi-processors timer is designed for C-SKY SMP system and the regs are 15 + accessed by cpu co-processor 4 registers with mtcr/mfcr. 16 + 17 + - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer. 18 + - PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg. 19 + - PTIM_CCVR "cr<3, 14>" Current counter value reg. 20 + - PTIM_LVR "cr<6, 14>" Window value reg to trigger next event. 21 + 22 + properties: 23 + compatible: 24 + items: 25 + - const: csky,mptimer 26 + 27 + clocks: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + required: 34 + - compatible 35 + - clocks 36 + - interrupts 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + timer { 43 + compatible = "csky,mptimer"; 44 + clocks = <&dummy_apb_clk>; 45 + interrupts = <16>; 46 + };