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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: timer: ti,davinci-timer: convert to dtschema

Convert txt binding of TI's DaVinci timer to dtschema to allow for
validation.

While at it, change the file name to match the compatible.

Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240727050736.4756-2-five231003@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Kousik Sanagavarapu and committed by
Rob Herring (Arm)
0e743f17 991f1254

+68 -37
+68
Documentation/devicetree/bindings/timer/ti,da830-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/ti,da830-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI DaVinci Timer 8 + 9 + maintainers: 10 + - Kousik Sanagavarapu <five231003@gmail.com> 11 + 12 + description: | 13 + This is a 64-bit timer found on TI's DaVinci architecture devices. The timer 14 + can be configured as a general-purpose 64-bit timer, dual general-purpose 15 + 32-bit timers. When configured as dual 32-bit timers, each half can operate 16 + in conjunction (chain mode) or independently (unchained mode) of each other. 17 + 18 + The timer is a free running up-counter and can generate interrupts when the 19 + counter reaches preset counter values. 20 + 21 + properties: 22 + compatible: 23 + const: ti,da830-timer 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + interrupts: 29 + minItems: 2 30 + maxItems: 10 31 + 32 + interrupt-names: 33 + minItems: 2 34 + items: 35 + - const: tint12 36 + - const: tint34 37 + - const: cmpint0 38 + - const: cmpint1 39 + - const: cmpint2 40 + - const: cmpint3 41 + - const: cmpint4 42 + - const: cmpint5 43 + - const: cmpint6 44 + - const: cmpint7 45 + 46 + clocks: 47 + maxItems: 1 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - interrupts 53 + - interrupt-names 54 + - clocks 55 + 56 + additionalProperties: false 57 + 58 + examples: 59 + - | 60 + timer@20000 { 61 + compatible = "ti,da830-timer"; 62 + reg = <0x20000 0x1000>; 63 + interrupts = <21>, <22>; 64 + interrupt-names = "tint12", "tint34"; 65 + clocks = <&pll0_auxclk>; 66 + }; 67 + 68 + ...
-37
Documentation/devicetree/bindings/timer/ti,davinci-timer.txt
··· 1 - * Device tree bindings for Texas Instruments DaVinci timer 2 - 3 - This document provides bindings for the 64-bit timer in the DaVinci 4 - architecture devices. The timer can be configured as a general-purpose 64-bit 5 - timer, dual general-purpose 32-bit timers. When configured as dual 32-bit 6 - timers, each half can operate in conjunction (chain mode) or independently 7 - (unchained mode) of each other. 8 - 9 - The timer is a free running up-counter and can generate interrupts when the 10 - counter reaches preset counter values. 11 - 12 - Also see ../watchdog/davinci-wdt.txt for timers that are configurable as 13 - watchdog timers. 14 - 15 - Required properties: 16 - 17 - - compatible : should be "ti,da830-timer". 18 - - reg : specifies base physical address and count of the registers. 19 - - interrupts : interrupts generated by the timer. 20 - - interrupt-names: should be "tint12", "tint34", "cmpint0", "cmpint1", 21 - "cmpint2", "cmpint3", "cmpint4", "cmpint5", "cmpint6", 22 - "cmpint7" ("cmpintX" may be omitted if not present in the 23 - hardware). 24 - - clocks : the clock feeding the timer clock. 25 - 26 - Example: 27 - 28 - clocksource: timer@20000 { 29 - compatible = "ti,da830-timer"; 30 - reg = <0x20000 0x1000>; 31 - interrupts = <21>, <22>, <74>, <75>, <76>, <77>, <78>, <79>, 32 - <80>, <81>; 33 - interrupt-names = "tint12", "tint34", "cmpint0", "cmpint1", 34 - "cmpint2", "cmpint3", "cmpint4", "cmpint5", 35 - "cmpint6", "cmpint7"; 36 - clocks = <&pll0_auxclk>; 37 - };