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 meson-wdt.txt to dt-schema

Convert the Amlogic Meson6 SoCs Watchdog timer bindings to dt-schema.

Take in account the used interrupts property.

The "amlogic,meson8-wdt" representation has been simplified
since there's no users of this compatible used along the
"amlogic,meson6-wdt".

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221117-b4-amlogic-bindings-convert-v3-3-e28dd31e3bed@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Neil Armstrong and committed by
Wim Van Sebroeck
69197b43 71708daa

+50 -21
+50
Documentation/devicetree/bindings/watchdog/amlogic,meson6-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/amlogic,meson6-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic Meson6 SoCs Watchdog timer 8 + 9 + maintainers: 10 + - Neil Armstrong <neil.armstrong@linaro.org> 11 + - Martin Blumenstingl <martin.blumenstingl@googlemail.com> 12 + 13 + allOf: 14 + - $ref: watchdog.yaml# 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - enum: 20 + - amlogic,meson6-wdt 21 + - amlogic,meson8-wdt 22 + - amlogic,meson8b-wdt 23 + - items: 24 + - const: amlogic,meson8m2-wdt 25 + - const: amlogic,meson8b-wdt 26 + 27 + interrupts: 28 + maxItems: 1 29 + 30 + reg: 31 + maxItems: 1 32 + 33 + required: 34 + - compatible 35 + - interrupts 36 + - reg 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/interrupt-controller/irq.h> 43 + #include <dt-bindings/interrupt-controller/arm-gic.h> 44 + 45 + wdt: watchdog@c1109900 { 46 + compatible = "amlogic,meson6-wdt"; 47 + reg = <0xc1109900 0x8>; 48 + interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; 49 + timeout-sec = <10>; 50 + };
-21
Documentation/devicetree/bindings/watchdog/meson-wdt.txt
··· 1 - Meson SoCs Watchdog timer 2 - 3 - Required properties: 4 - 5 - - compatible : depending on the SoC this should be one of: 6 - "amlogic,meson6-wdt" on Meson6 SoCs 7 - "amlogic,meson8-wdt" and "amlogic,meson6-wdt" on Meson8 SoCs 8 - "amlogic,meson8b-wdt" on Meson8b SoCs 9 - "amlogic,meson8m2-wdt" and "amlogic,meson8b-wdt" on Meson8m2 SoCs 10 - - reg : Specifies base physical address and size of the registers. 11 - 12 - Optional properties: 13 - - timeout-sec: contains the watchdog timeout in seconds. 14 - 15 - Example: 16 - 17 - wdt: watchdog@c1109900 { 18 - compatible = "amlogic,meson6-wdt"; 19 - reg = <0xc1109900 0x8>; 20 - timeout-sec = <10>; 21 - };