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

dt-bindings: timer: arm,twd: Convert to json-schema

Convert the ARM Timer-Watchdog Device Tree binding documentation to
json-schema. As the old binding document actually contained two
bindings, it is split in two document: one for the timer part, and one
for the watchdog part.

Document missing properties.
Update examples to match reality.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/3ccc0cf5319f56e230ee3b8a009f8d63afb114c1.1621521847.git.geert+renesas@glider.be
[robh: Fix up node names]
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Geert Uytterhoeven and committed by
Rob Herring
50e02e9a 1d92d556

+107 -54
+1 -1
Documentation/devicetree/bindings/arm/ux500/boards.txt
··· 26 26 see binding for interrupt-controller/arm,gic.txt 27 27 28 28 timer: 29 - see binding for timer/arm,twd.txt 29 + see binding for timer/arm,twd-timer.yaml 30 30 31 31 clocks: 32 32 see binding for clocks/ux500.txt
+56
Documentation/devicetree/bindings/timer/arm,twd-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/arm,twd-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ARM Timer-Watchdog Timer 8 + 9 + maintainers: 10 + - Rob Herring <robh@kernel.org> 11 + 12 + description: 13 + ARM 11MP, Cortex-A5 and Cortex-A9 are often associated with a per-core 14 + Timer-Watchdog (aka TWD), which provides both a per-cpu local timer 15 + and watchdog. 16 + 17 + The TWD is usually attached to a GIC to deliver its two per-processor 18 + interrupts. 19 + 20 + properties: 21 + compatible: 22 + enum: 23 + - arm,cortex-a9-twd-timer 24 + - arm,cortex-a5-twd-timer 25 + - arm,arm11mp-twd-timer 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + clocks: 34 + maxItems: 1 35 + 36 + always-on: 37 + description: 38 + If present, the timer is powered through an always-on power domain, 39 + therefore it never loses context. 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - interrupts 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/interrupt-controller/arm-gic.h> 51 + 52 + timer@2c000600 { 53 + compatible = "arm,arm11mp-twd-timer"; 54 + reg = <0x2c000600 0x20>; 55 + interrupts = <GIC_PPI 13 0xf01>; 56 + };
-53
Documentation/devicetree/bindings/timer/arm,twd.txt
··· 1 - * ARM Timer Watchdog 2 - 3 - ARM 11MP, Cortex-A5 and Cortex-A9 are often associated with a per-core 4 - Timer-Watchdog (aka TWD), which provides both a per-cpu local timer 5 - and watchdog. 6 - 7 - The TWD is usually attached to a GIC to deliver its two per-processor 8 - interrupts. 9 - 10 - ** Timer node required properties: 11 - 12 - - compatible : Should be one of: 13 - "arm,cortex-a9-twd-timer" 14 - "arm,cortex-a5-twd-timer" 15 - "arm,arm11mp-twd-timer" 16 - 17 - - interrupts : One interrupt to each core 18 - 19 - - reg : Specify the base address and the size of the TWD timer 20 - register window. 21 - 22 - Optional 23 - 24 - - always-on : a boolean property. If present, the timer is powered through 25 - an always-on power domain, therefore it never loses context. 26 - 27 - Example: 28 - 29 - twd-timer@2c000600 { 30 - compatible = "arm,arm11mp-twd-timer""; 31 - reg = <0x2c000600 0x20>; 32 - interrupts = <1 13 0xf01>; 33 - }; 34 - 35 - ** Watchdog node properties: 36 - 37 - - compatible : Should be one of: 38 - "arm,cortex-a9-twd-wdt" 39 - "arm,cortex-a5-twd-wdt" 40 - "arm,arm11mp-twd-wdt" 41 - 42 - - interrupts : One interrupt to each core 43 - 44 - - reg : Specify the base address and the size of the TWD watchdog 45 - register window. 46 - 47 - Example: 48 - 49 - twd-watchdog@2c000620 { 50 - compatible = "arm,arm11mp-twd-wdt"; 51 - reg = <0x2c000620 0x20>; 52 - interrupts = <1 14 0xf01>; 53 - };
+50
Documentation/devicetree/bindings/watchdog/arm,twd-wdt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/arm,twd-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ARM Timer-Watchdog Watchdog 8 + 9 + maintainers: 10 + - Rob Herring <robh@kernel.org> 11 + 12 + description: 13 + ARM 11MP, Cortex-A5 and Cortex-A9 are often associated with a per-core 14 + Timer-Watchdog (aka TWD), which provides both a per-cpu local timer 15 + and watchdog. 16 + 17 + The TWD is usually attached to a GIC to deliver its two per-processor 18 + interrupts. 19 + 20 + properties: 21 + compatible: 22 + enum: 23 + - arm,cortex-a9-twd-wdt 24 + - arm,cortex-a5-twd-wdt 25 + - arm,arm11mp-twd-wdt 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + clocks: 34 + maxItems: 1 35 + 36 + required: 37 + - compatible 38 + - reg 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + #include <dt-bindings/interrupt-controller/arm-gic.h> 45 + 46 + watchdog@2c000620 { 47 + compatible = "arm,arm11mp-twd-wdt"; 48 + reg = <0x2c000620 0x20>; 49 + interrupts = <GIC_PPI 14 0xf01>; 50 + };