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

dt-bindings: timer: nuvoton,npcm7xx-timer: Convert to YAML

Let's convert this devicetree binding to YAML, to make it easier to
extend later.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220130102704.2892072-1-j.neuschaefer@gmx.net

authored by

Jonathan Neuschäfer and committed by
Rob Herring
f4e82f19 d71ea591

+46 -21
-21
Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt
··· 1 - Nuvoton NPCM7xx timer 2 - 3 - Nuvoton NPCM7xx have three timer modules, each timer module provides five 24-bit 4 - timer counters. 5 - 6 - Required properties: 7 - - compatible : "nuvoton,npcm750-timer" for Poleg NPCM750, or 8 - "nuvoton,wpcm450-timer" for Hermon WPCM450. 9 - - reg : Offset and length of the register set for the device. 10 - - interrupts : Contain the timer interrupt of timer 0. 11 - - clocks : phandle of timer reference clock (usually a 25 MHz clock). 12 - 13 - Example: 14 - 15 - timer@f0008000 { 16 - compatible = "nuvoton,npcm750-timer"; 17 - interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 18 - reg = <0xf0008000 0x50>; 19 - clocks = <&clk NPCM7XX_CLK_TIMER>; 20 - }; 21 -
+46
Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-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/nuvoton,npcm7xx-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Nuvoton NPCM7xx timer 8 + 9 + maintainers: 10 + - Jonathan Neuschäfer <j.neuschaefer@gmx.net> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - nuvoton,wpcm450-timer # for Hermon WPCM450 16 + - nuvoton,npcm750-timer # for Poleg NPCM750 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupts: 22 + items: 23 + - description: The timer interrupt of timer 0 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - clocks 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/interrupt-controller/irq.h> 39 + #include <dt-bindings/interrupt-controller/arm-gic.h> 40 + #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h> 41 + timer@f0008000 { 42 + compatible = "nuvoton,npcm750-timer"; 43 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 44 + reg = <0xf0008000 0x50>; 45 + clocks = <&clk NPCM7XX_CLK_TIMER>; 46 + };