Skip to content

Commit 4d1363a

Browse files
AngeloGioacchino Del RegnoWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: mediatek: Convert mtk-wdt to json-schema
Convert the MediaTek watchdog bindings to schema. The original binding only had 4 without a fallback but there is a reset controller on the "mediatek,mt7986-wdt", "mediatek,mt8186-wdt", "mediatek,mt8188-wdt" and "mediatek,mt8195-wdt" Since there is no reset controller for the mt6589, we remove "mediatek,mt6589-wdt" as a fallback. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Co-developed-by: Allen-KH Cheng <[email protected]> Signed-off-by: Allen-KH Cheng <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Nícolas F. R. A. Prado <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent bc73136 commit 4d1363a

File tree

2 files changed

+78
-43
lines changed

2 files changed

+78
-43
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/mediatek,mtk-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek SoCs Watchdog timer
8+
9+
maintainers:
10+
- Matthias Brugger <[email protected]>
11+
12+
description:
13+
The watchdog supports a pre-timeout interrupt that fires
14+
timeout-sec/2 before the expiry.
15+
16+
allOf:
17+
- $ref: watchdog.yaml#
18+
19+
properties:
20+
compatible:
21+
oneOf:
22+
- enum:
23+
- mediatek,mt2712-wdt
24+
- mediatek,mt6589-wdt
25+
- mediatek,mt7986-wdt
26+
- mediatek,mt8183-wdt
27+
- mediatek,mt8186-wdt
28+
- mediatek,mt8188-wdt
29+
- mediatek,mt8192-wdt
30+
- mediatek,mt8195-wdt
31+
- items:
32+
- enum:
33+
- mediatek,mt2701-wdt
34+
- mediatek,mt6582-wdt
35+
- mediatek,mt6797-wdt
36+
- mediatek,mt7622-wdt
37+
- mediatek,mt7623-wdt
38+
- mediatek,mt7629-wdt
39+
- mediatek,mt8516-wdt
40+
- const: mediatek,mt6589-wdt
41+
42+
reg:
43+
maxItems: 1
44+
45+
interrupts:
46+
items:
47+
- description: Watchdog pre-timeout (bark) interrupt
48+
49+
mediatek,disable-extrst:
50+
description: Disable sending output reset signal
51+
type: boolean
52+
53+
'#reset-cells':
54+
const: 1
55+
56+
required:
57+
- compatible
58+
- reg
59+
60+
unevaluatedProperties: false
61+
62+
examples:
63+
- |
64+
#include <dt-bindings/interrupt-controller/arm-gic.h>
65+
66+
soc {
67+
#address-cells = <2>;
68+
#size-cells = <2>;
69+
70+
watchdog: watchdog@10007000 {
71+
compatible = "mediatek,mt8183-wdt";
72+
reg = <0 0x10007000 0 0x100>;
73+
interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>;
74+
mediatek,disable-extrst;
75+
timeout-sec = <10>;
76+
#reset-cells = <1>;
77+
};
78+
};

Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)