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

dt-bindings: timer: nxp,lpc3220-timer: Convert to dtschema

Convert the NXP LPC3220 timer bindings to yaml format.
Add missing resets property as it is already being used in dts.

Cc: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240731074544.208411-1-animeshagarwal28@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Animesh Agarwal and committed by
Rob Herring (Arm)
84252c1d 8fc30d8f

+55 -26
-26
Documentation/devicetree/bindings/timer/nxp,lpc3220-timer.txt
··· 1 - * NXP LPC3220 timer 2 - 3 - The NXP LPC3220 timer is used on a wide range of NXP SoCs. This 4 - includes LPC32xx, LPC178x, LPC18xx and LPC43xx parts. 5 - 6 - Required properties: 7 - - compatible: 8 - Should be "nxp,lpc3220-timer". 9 - - reg: 10 - Address and length of the register set. 11 - - interrupts: 12 - Reference to the timer interrupt 13 - - clocks: 14 - Should contain a reference to timer clock. 15 - - clock-names: 16 - Should contain "timerclk". 17 - 18 - Example: 19 - 20 - timer1: timer@40085000 { 21 - compatible = "nxp,lpc3220-timer"; 22 - reg = <0x40085000 0x1000>; 23 - interrupts = <13>; 24 - clocks = <&ccu1 CLK_CPU_TIMER1>; 25 - clock-names = "timerclk"; 26 - };
+55
Documentation/devicetree/bindings/timer/nxp,lpc3220-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/nxp,lpc3220-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC3220 timer 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + description: | 13 + The NXP LPC3220 timer is used on a wide range of NXP SoCs. This includes 14 + LPC32xx, LPC178x, LPC18xx and LPC43xx parts. 15 + 16 + properties: 17 + compatible: 18 + const: nxp,lpc3220-timer 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + clock-names: 30 + const: timerclk 31 + 32 + resets: 33 + maxItems: 1 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + - clocks 40 + - clock-names 41 + 42 + additionalProperties: false 43 + 44 + examples: 45 + - | 46 + #include <dt-bindings/clock/lpc32xx-clock.h> 47 + #include <dt-bindings/interrupt-controller/irq.h> 48 + 49 + timer@4004c000 { 50 + compatible = "nxp,lpc3220-timer"; 51 + reg = <0x4004c000 0x1000>; 52 + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 53 + clocks = <&clk LPC32XX_CLK_TIMER1>; 54 + clock-names = "timerclk"; 55 + };