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

dt-bindings: timer: Convert ezchip,nps400-timer to DT schema

Convert the EZChip NPS400 Timer bindings to DT schema format. It's a
straight-forward conversion. The 2 bindings only differ in compatible
and one required property, so the schemas can be combined.

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

authored by

Rob Herring (Arm) and committed by
Daniel Lezcano
2b3b58f2 d65a30c3

+45 -32
+45
Documentation/devicetree/bindings/timer/ezchip,nps400-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/ezchip,nps400-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: EZChip NPS400 Timers 8 + 9 + maintainers: 10 + - Noam Camus <noamca@mellanox.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ezchip,nps400-timer0 16 + - ezchip,nps400-timer1 17 + 18 + interrupts: 19 + maxItems: 1 20 + 21 + clocks: 22 + maxItems: 1 23 + 24 + required: 25 + - compatible 26 + - clocks 27 + 28 + additionalProperties: false 29 + 30 + allOf: 31 + - if: 32 + properties: 33 + compatible: 34 + contains: 35 + const: ezchip,nps400-timer0 36 + then: 37 + required: [ interrupts ] 38 + 39 + examples: 40 + - | 41 + timer { 42 + compatible = "ezchip,nps400-timer0"; 43 + interrupts = <3>; 44 + clocks = <&sysclk>; 45 + };
-17
Documentation/devicetree/bindings/timer/ezchip,nps400-timer0.txt
··· 1 - NPS Network Processor 2 - 3 - Required properties: 4 - 5 - - compatible : should be "ezchip,nps400-timer0" 6 - 7 - Clocks required for compatible = "ezchip,nps400-timer0": 8 - - interrupts : The interrupt of the first timer 9 - - clocks : Must contain a single entry describing the clock input 10 - 11 - Example: 12 - 13 - timer { 14 - compatible = "ezchip,nps400-timer0"; 15 - interrupts = <3>; 16 - clocks = <&sysclk>; 17 - };
-15
Documentation/devicetree/bindings/timer/ezchip,nps400-timer1.txt
··· 1 - NPS Network Processor 2 - 3 - Required properties: 4 - 5 - - compatible : should be "ezchip,nps400-timer1" 6 - 7 - Clocks required for compatible = "ezchip,nps400-timer1": 8 - - clocks : Must contain a single entry describing the clock input 9 - 10 - Example: 11 - 12 - timer { 13 - compatible = "ezchip,nps400-timer1"; 14 - clocks = <&sysclk>; 15 - };