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 faraday,ftwdt010 to yaml

Converts watchdog/faraday,ftwdt010.txt to yaml.
This permits to detect missing properties like clocks and resets or
compatible like moxa,moxart-watchdog.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220211115528.3382374-1-clabbe@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Corentin Labbe and committed by
Wim Van Sebroeck
289660a4 a03f70cf

+67 -22
-22
Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt
··· 1 - Faraday Technology FTWDT010 watchdog 2 - 3 - This is an IP part from Faraday Technology found in the Gemini 4 - SoCs and others. 5 - 6 - Required properties: 7 - - compatible : must be one of 8 - "faraday,ftwdt010" 9 - "cortina,gemini-watchdog", "faraday,ftwdt010" 10 - - reg : shall contain base register location and length 11 - - interrupts : shall contain the interrupt for the watchdog 12 - 13 - Optional properties: 14 - - timeout-sec : the default watchdog timeout in seconds. 15 - 16 - Example: 17 - 18 - watchdog@41000000 { 19 - compatible = "faraday,ftwdt010"; 20 - reg = <0x41000000 0x1000>; 21 - interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 22 - };
+67
Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.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/faraday,ftwdt010.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Faraday Technology FTWDT010 watchdog 8 + 9 + maintainers: 10 + - Linus Walleij <linus.walleij@linaro.org> 11 + - Corentin Labbe <clabbe@baylibre.com> 12 + 13 + description: | 14 + This is an IP part from Faraday Technology found in the Gemini 15 + SoCs and others. 16 + 17 + allOf: 18 + - $ref: "watchdog.yaml#" 19 + 20 + properties: 21 + compatible: 22 + oneOf: 23 + - const: faraday,ftwdt010 24 + - items: 25 + - enum: 26 + - cortina,gemini-watchdog 27 + - moxa,moxart-watchdog 28 + - const: faraday,ftwdt010 29 + 30 + reg: 31 + maxItems: 1 32 + 33 + resets: 34 + maxItems: 1 35 + 36 + clocks: 37 + maxItems: 1 38 + 39 + clock-names: 40 + const: PCLK 41 + 42 + interrupts: 43 + maxItems: 1 44 + 45 + required: 46 + - compatible 47 + - reg 48 + 49 + unevaluatedProperties: false 50 + 51 + examples: 52 + - | 53 + #include <dt-bindings/interrupt-controller/irq.h> 54 + watchdog@41000000 { 55 + compatible = "faraday,ftwdt010"; 56 + reg = <0x41000000 0x1000>; 57 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 58 + timeout-secs = <5>; 59 + }; 60 + - | 61 + watchdog: watchdog@98500000 { 62 + compatible = "moxa,moxart-watchdog", "faraday,ftwdt010"; 63 + reg = <0x98500000 0x10>; 64 + clocks = <&clk_apb>; 65 + clock-names = "PCLK"; 66 + }; 67 + ...