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

dt-bindings: timer: Convert mrvl,mmp-timer to json-schema

A straightforward conversion of the mrvl,mmp-timer binding to DT schema
format using json-schema.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200616223353.993567-6-lkundrak@v3.sk
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Lubomir Rintel and committed by
Rob Herring
89d79ed8 8b885178

+46 -17
-17
Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt
··· 1 - * Marvell MMP Timer controller 2 - 3 - Required properties: 4 - - compatible : Should be "mrvl,mmp-timer". 5 - - reg : Address and length of the register set of timer controller. 6 - - interrupts : Should be the interrupt number. 7 - 8 - Optional properties: 9 - - clocks : Should contain a single entry describing the clock input. 10 - 11 - Example: 12 - timer0: timer@d4014000 { 13 - compatible = "mrvl,mmp-timer"; 14 - reg = <0xd4014000 0x100>; 15 - interrupts = <13>; 16 - clocks = <&coreclk 2>; 17 - };
+46
Documentation/devicetree/bindings/timer/mrvl,mmp-timer.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/timer/mrvl,mmp-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell MMP Timer bindings 8 + 9 + maintainers: 10 + - Daniel Lezcano <daniel.lezcano@linaro.org> 11 + - Thomas Gleixner <tglx@linutronix.de> 12 + - Rob Herring <robh+dt@kernel.org> 13 + 14 + properties: 15 + $nodename: 16 + pattern: '^timer@[a-f0-9]+$' 17 + 18 + compatible: 19 + const: mrvl,mmp-timer 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + clocks: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - interrupts 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + timer@d4014000 { 40 + compatible = "mrvl,mmp-timer"; 41 + reg = <0xd4014000 0x100>; 42 + interrupts = <13>; 43 + clocks = <&coreclk 2>; 44 + }; 45 + 46 + ...