2019-08-21 07:38:31 -07: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#
|
|
|
|
|
2022-08-24 19:04:27 -07:00
|
|
|
title: Allwinner A10 Watchdog
|
2019-08-21 07:38:31 -07:00
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Chen-Yu Tsai <wens@csie.org>
|
2019-12-09 02:32:48 -07:00
|
|
|
- Maxime Ripard <mripard@kernel.org>
|
2019-08-21 07:38:31 -07:00
|
|
|
|
2023-11-05 11:41:53 -07:00
|
|
|
allOf:
|
|
|
|
- $ref: watchdog.yaml#
|
|
|
|
|
2019-08-21 07:38:31 -07:00
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
oneOf:
|
|
|
|
- const: allwinner,sun4i-a10-wdt
|
|
|
|
- const: allwinner,sun6i-a31-wdt
|
|
|
|
- items:
|
2021-01-27 10:24:49 -07:00
|
|
|
- enum:
|
|
|
|
- allwinner,sun50i-a64-wdt
|
|
|
|
- allwinner,sun50i-a100-wdt
|
|
|
|
- allwinner,sun50i-h6-wdt
|
|
|
|
- allwinner,sun50i-h616-wdt
|
2021-09-02 15:57:48 -07:00
|
|
|
- allwinner,sun50i-r329-wdt
|
|
|
|
- allwinner,sun50i-r329-wdt-reset
|
2022-03-17 09:23:38 -07:00
|
|
|
- allwinner,suniv-f1c100s-wdt
|
2019-08-21 07:38:31 -07:00
|
|
|
- const: allwinner,sun6i-a31-wdt
|
2021-09-02 15:57:49 -07:00
|
|
|
- const: allwinner,sun20i-d1-wdt
|
|
|
|
- items:
|
|
|
|
- const: allwinner,sun20i-d1-wdt-reset
|
|
|
|
- const: allwinner,sun20i-d1-wdt
|
2019-08-21 07:38:31 -07:00
|
|
|
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
2019-08-21 07:38:33 -07:00
|
|
|
clocks:
|
2021-09-02 15:57:48 -07:00
|
|
|
minItems: 1
|
|
|
|
items:
|
2022-03-17 09:23:39 -07:00
|
|
|
- description: 32 KHz input clock
|
|
|
|
- description: secondary clock source
|
2019-08-21 07:38:33 -07:00
|
|
|
|
2019-08-21 07:38:32 -07:00
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
2019-08-21 07:38:31 -07:00
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
2019-08-21 07:38:33 -07:00
|
|
|
- clocks
|
2019-08-21 07:38:32 -07:00
|
|
|
- interrupts
|
2019-08-21 07:38:31 -07:00
|
|
|
|
2021-09-02 15:57:48 -07:00
|
|
|
if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
2021-09-02 15:57:49 -07:00
|
|
|
- allwinner,sun20i-d1-wdt
|
|
|
|
- allwinner,sun20i-d1-wdt-reset
|
2021-09-02 15:57:48 -07:00
|
|
|
- allwinner,sun50i-r329-wdt
|
|
|
|
- allwinner,sun50i-r329-wdt-reset
|
|
|
|
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
2022-03-17 09:23:39 -07:00
|
|
|
items:
|
|
|
|
- description: High-frequency oscillator input, divided internally
|
|
|
|
- description: Low-frequency oscillator input
|
2021-09-02 15:57:48 -07:00
|
|
|
|
|
|
|
clock-names:
|
2022-03-17 09:23:39 -07:00
|
|
|
items:
|
|
|
|
- const: hosc
|
|
|
|
- const: losc
|
2021-09-02 15:57:48 -07:00
|
|
|
|
|
|
|
required:
|
|
|
|
- clock-names
|
|
|
|
|
|
|
|
else:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
maxItems: 1
|
|
|
|
|
2019-08-21 07:38:31 -07:00
|
|
|
unevaluatedProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
wdt: watchdog@1c20c90 {
|
|
|
|
compatible = "allwinner,sun4i-a10-wdt";
|
|
|
|
reg = <0x01c20c90 0x10>;
|
2019-08-21 07:38:32 -07:00
|
|
|
interrupts = <24>;
|
2019-08-21 07:38:33 -07:00
|
|
|
clocks = <&osc24M>;
|
2019-08-21 07:38:31 -07:00
|
|
|
timeout-sec = <10>;
|
|
|
|
};
|
|
|
|
|
|
|
|
...
|