xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/nxp,s32g2-swt.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/nxp,s32g2-swt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP Software Watchdog Timer (SWT)
8
9maintainers:
10  - Daniel Lezcano <daniel.lezcano@kernel.org>
11
12allOf:
13  - $ref: watchdog.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - const: nxp,s32g2-swt
19      - items:
20          - const: nxp,s32g3-swt
21          - const: nxp,s32g2-swt
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    items:
28      - description: Counter clock
29      - description: Module clock
30      - description: Register clock
31
32  clock-names:
33    items:
34      - const: counter
35      - const: module
36      - const: register
37
38required:
39  - compatible
40  - reg
41  - clocks
42  - clock-names
43
44unevaluatedProperties: false
45
46examples:
47  - |
48    watchdog@40100000 {
49        compatible = "nxp,s32g2-swt";
50        reg = <0x40100000 0x1000>;
51        clocks = <&clks 0x3a>, <&clks 0x3b>, <&clks 0x3c>;
52        clock-names = "counter", "module", "register";
53        timeout-sec = <10>;
54    };
55