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: migrate rt2880 text bindings to YAML

Ralink RT2880 Watchdog bindings used text format, so migrate them to YAML.
There are some additions to the binding that were not in the original
txt file. This binding is used in RT2880, RT3050, RT3352, RT3883, RT5350,
and MT7620 SoCs. To properly align binding with driver code we need to add
to the schema 'clocks' and 'resets' properties.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230302085914.2858645-1-sergio.paracuellos@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Sergio Paracuellos and committed by
Wim Van Sebroeck
fe5631bb af3ac8e4

+46 -18
+46
Documentation/devicetree/bindings/watchdog/ralink,rt2880-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/ralink,rt2880-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Ralink Watchdog Timers 8 + 9 + maintainers: 10 + - Sergio Paracuellos <sergio.paracuellos@gmail.com> 11 + 12 + allOf: 13 + - $ref: watchdog.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: ralink,rt2880-wdt 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + resets: 26 + maxItems: 1 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + watchdog@100 { 40 + compatible = "ralink,rt2880-wdt"; 41 + reg = <0x120 0x10>; 42 + clocks = <&clkref>; 43 + resets = <&rstctrl 8>; 44 + interrupt-parent = <&intc>; 45 + interrupts = <1>; 46 + };
-18
Documentation/devicetree/bindings/watchdog/rt2880-wdt.txt
··· 1 - Ralink Watchdog Timers 2 - 3 - Required properties: 4 - - compatible: must be "ralink,rt2880-wdt" 5 - - reg: physical base address of the controller and length of the register range 6 - 7 - Optional properties: 8 - - interrupts: Specify the INTC interrupt number 9 - 10 - Example: 11 - 12 - watchdog@120 { 13 - compatible = "ralink,rt2880-wdt"; 14 - reg = <0x120 0x10>; 15 - 16 - interrupt-parent = <&intc>; 17 - interrupts = <1>; 18 - };