2019-08-21 16:38:31 +02:00
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id : http://devicetree.org/schemas/watchdog/allwinner,sun4i-a10-wdt.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
title : Allwinner A10 Watchdog Device Tree Bindings
allOf :
- $ref : "watchdog.yaml#"
maintainers :
- Chen-Yu Tsai <wens@csie.org>
2019-12-09 10:32:48 +01:00
- Maxime Ripard <mripard@kernel.org>
2019-08-21 16:38:31 +02:00
properties :
compatible :
oneOf :
- const : allwinner,sun4i-a10-wdt
- const : allwinner,sun6i-a31-wdt
- items :
2021-01-27 17:24:49 +00:00
- enum :
- allwinner,sun50i-a64-wdt
- allwinner,sun50i-a100-wdt
- allwinner,sun50i-h6-wdt
- allwinner,sun50i-h616-wdt
2021-09-02 17:57:48 -05:00
- allwinner,sun50i-r329-wdt
- allwinner,sun50i-r329-wdt-reset
2019-08-21 16:38:31 +02:00
- const : allwinner,sun6i-a31-wdt
- items :
- const : allwinner,suniv-f1c100s-wdt
- const : allwinner,sun4i-a10-wdt
2021-09-02 17:57:49 -05:00
- const : allwinner,sun20i-d1-wdt
- items :
- const : allwinner,sun20i-d1-wdt-reset
- const : allwinner,sun20i-d1-wdt
2019-08-21 16:38:31 +02:00
reg :
maxItems : 1
2019-08-21 16:38:33 +02:00
clocks :
2021-09-02 17:57:48 -05:00
minItems : 1
items :
- description : High-frequency oscillator input, divided internally
- description : Low-frequency oscillator input, only found on some variants
clock-names :
minItems : 1
items :
- const : hosc
- const : losc
2019-08-21 16:38:33 +02:00
2019-08-21 16:38:32 +02:00
interrupts :
maxItems : 1
2019-08-21 16:38:31 +02:00
required :
- compatible
- reg
2019-08-21 16:38:33 +02:00
- clocks
2019-08-21 16:38:32 +02:00
- interrupts
2019-08-21 16:38:31 +02:00
2021-09-02 17:57:48 -05:00
if :
properties :
compatible :
contains :
enum :
2021-09-02 17:57:49 -05:00
- allwinner,sun20i-d1-wdt
- allwinner,sun20i-d1-wdt-reset
2021-09-02 17:57:48 -05:00
- allwinner,sun50i-r329-wdt
- allwinner,sun50i-r329-wdt-reset
then :
properties :
clocks :
minItems : 2
clock-names :
minItems : 2
required :
- clock-names
else :
properties :
clocks :
maxItems : 1
clock-names :
maxItems : 1
2019-08-21 16:38:31 +02:00
unevaluatedProperties : false
examples :
- |
wdt : watchdog@1c20c90 {
compatible = "allwinner,sun4i-a10-wdt";
reg = <0x01c20c90 0x10>;
2019-08-21 16:38:32 +02:00
interrupts = <24>;
2019-08-21 16:38:33 +02:00
clocks = <&osc24M>;
2019-08-21 16:38:31 +02:00
timeout-sec = <10>;
};
...