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

dt-bindings: timer: convert bcm2835-system-timer bindings to YAML

Convert the DT binding document for bcm2835-system-timer from .txt
to YAML.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240812200358.4061-2-wahrenst@gmx.net
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>

authored by

Stefan Wahren and committed by
Florian Fainelli
364ae876 34f86e85

+50 -22
-22
Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.txt
··· 1 - BCM2835 System Timer 2 - 3 - The System Timer peripheral provides four 32-bit timer channels and a 4 - single 64-bit free running counter. Each channel has an output compare 5 - register, which is compared against the 32 least significant bits of the 6 - free running counter values, and generates an interrupt. 7 - 8 - Required properties: 9 - 10 - - compatible : should be "brcm,bcm2835-system-timer" 11 - - reg : Specifies base physical address and size of the registers. 12 - - interrupts : A list of 4 interrupt sinks; one per timer channel. 13 - - clock-frequency : The frequency of the clock that drives the counter, in Hz. 14 - 15 - Example: 16 - 17 - timer { 18 - compatible = "brcm,bcm2835-system-timer"; 19 - reg = <0x7e003000 0x1000>; 20 - interrupts = <1 0>, <1 1>, <1 2>, <1 3>; 21 - clock-frequency = <1000000>; 22 - };
+50
Documentation/devicetree/bindings/timer/brcm,bcm2835-system-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/brcm,bcm2835-system-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: BCM2835 System Timer 8 + 9 + maintainers: 10 + - Stefan Wahren <wahrenst@gmx.net> 11 + - Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com> 12 + 13 + description: 14 + The System Timer peripheral provides four 32-bit timer channels and a 15 + single 64-bit free running counter. Each channel has an output compare 16 + register, which is compared against the 32 least significant bits of the 17 + free running counter values, and generates an interrupt. 18 + 19 + properties: 20 + compatible: 21 + const: brcm,bcm2835-system-timer 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + items: 28 + - description: System Timer Compare 0 match (used by VideoCore GPU) 29 + - description: System Timer Compare 1 match (usable for ARM core) 30 + - description: System Timer Compare 2 match (used by VideoCore GPU) 31 + - description: System Timer Compare 3 match (usable for ARM core) 32 + 33 + clock-frequency: true 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + timer@7e003000 { 45 + compatible = "brcm,bcm2835-system-timer"; 46 + reg = <0x7e003000 0x1000>; 47 + interrupts = <1 0>, <1 1>, <1 2>, <1 3>; 48 + clock-frequency = <1000000>; 49 + }; 50 + ...