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: watchdog: Convert mpc8xxx-wdt to YAML

Convert mpc83xx-wdt.txt to YAML to enable automatic schema validation.

Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

J. Neuschäfer and committed by
Wim Van Sebroeck
478003f6 8fa8380a

+64 -25
-25
Documentation/devicetree/bindings/watchdog/mpc8xxx-wdt.txt
··· 1 - * Freescale mpc8xxx watchdog driver (For 83xx, 86xx and 8xx) 2 - 3 - Required properties: 4 - - compatible: Shall contain one of the following: 5 - "mpc83xx_wdt" for an mpc83xx 6 - "fsl,mpc8610-wdt" for an mpc86xx 7 - "fsl,mpc823-wdt" for an mpc8xx 8 - - reg: base physical address and length of the area hosting the 9 - watchdog registers. 10 - On the 83xx, "Watchdog Timer Registers" area: <0x200 0x100> 11 - On the 86xx, "Watchdog Timer Registers" area: <0xe4000 0x100> 12 - On the 8xx, "General System Interface Unit" area: <0x0 0x10> 13 - 14 - Optional properties: 15 - - reg: additional physical address and length (4) of location of the 16 - Reset Status Register (called RSTRSCR on the mpc86xx) 17 - On the 83xx, it is located at offset 0x910 18 - On the 86xx, it is located at offset 0xe0094 19 - On the 8xx, it is located at offset 0x288 20 - 21 - Example: 22 - WDT: watchdog@0 { 23 - compatible = "fsl,mpc823-wdt"; 24 - reg = <0x0 0x10 0x288 0x4>; 25 - };
+64
Documentation/devicetree/bindings/watchdog/mpc8xxx-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/mpc8xxx-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale MPC8xxx watchdog timer (For 83xx, 86xx and 8xx) 8 + 9 + maintainers: 10 + - J. Neuschäfer <j.ne@posteo.net> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - mpc83xx_wdt # for an mpc83xx 16 + - fsl,mpc8610-wdt # for an mpc86xx 17 + - fsl,mpc823-wdt # for an mpc8xx 18 + 19 + device_type: 20 + const: watchdog 21 + 22 + reg: 23 + minItems: 1 24 + items: 25 + - description: | 26 + Base physical address and length of the area hosting the watchdog 27 + registers. 28 + 29 + On the 83xx, "Watchdog Timer Registers" area: <0x200 0x100> 30 + On the 86xx, "Watchdog Timer Registers" area: <0xe4000 0x100> 31 + On the 8xx, "General System Interface Unit" area: <0x0 0x10> 32 + 33 + - description: | 34 + Additional optional physical address and length (4) of location of 35 + the Reset Status Register (called RSTRSCR on the mpc86xx) 36 + 37 + On the 83xx, it is located at offset 0x910 38 + On the 86xx, it is located at offset 0xe0094 39 + On the 8xx, it is located at offset 0x288 40 + 41 + required: 42 + - compatible 43 + - reg 44 + 45 + allOf: 46 + - $ref: watchdog.yaml# 47 + 48 + additionalProperties: false 49 + 50 + examples: 51 + - | 52 + watchdog@0 { 53 + compatible = "fsl,mpc823-wdt"; 54 + reg = <0x0 0x10 0x288 0x4>; 55 + }; 56 + 57 + - | 58 + watchdog@200 { 59 + compatible = "mpc83xx_wdt"; 60 + reg = <0x200 0x100>; 61 + device_type = "watchdog"; 62 + }; 63 + 64 + ...