xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/fsl-imx7ulp-wdt.yaml (revision 3ff01b231dfa83d518854c63e7c9cd1debd1139e)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/fsl-imx7ulp-wdt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale i.MX7ULP Watchdog Timer (WDT) Controller
8
9maintainers:
10  - Anson Huang <Anson.Huang@nxp.com>
11
12allOf:
13  - $ref: "watchdog.yaml#"
14
15properties:
16  compatible:
17    enum:
18      - fsl,imx7ulp-wdt
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  clocks:
27    maxItems: 1
28
29  assigned-clocks:
30    maxItems: 1
31
32  assigned-clocks-parents:
33    maxItems: 1
34
35  timeout-sec: true
36
37required:
38  - compatible
39  - interrupts
40  - reg
41  - clocks
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/arm-gic.h>
48    #include <dt-bindings/clock/imx7ulp-clock.h>
49
50    watchdog@403d0000 {
51        compatible = "fsl,imx7ulp-wdt";
52        reg = <0x403d0000 0x10000>;
53        interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
54        clocks = <&pcc2 IMX7ULP_CLK_WDG1>;
55        assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>;
56        assigned-clocks-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>;
57        timeout-sec = <40>;
58    };
59
60...
61