xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/qcom,pm8916-wdt.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/qcom,pm8916-wdt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm PM8916 watchdog timer controller
8
9maintainers:
10  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11
12allOf:
13  - $ref: watchdog.yaml#
14
15properties:
16  compatible:
17    const: qcom,pm8916-wdt
18
19  interrupts:
20    maxItems: 1
21
22required:
23  - compatible
24  - interrupts
25
26unevaluatedProperties: false
27
28examples:
29  - |
30    #include <dt-bindings/interrupt-controller/irq.h>
31    #include <dt-bindings/spmi/spmi.h>
32
33    pmic@0 {
34        compatible = "qcom,pm8916", "qcom,spmi-pmic";
35        reg = <0x0 SPMI_USID>;
36        #address-cells = <1>;
37        #size-cells = <0>;
38
39        pon@800 {
40            compatible = "qcom,pm8916-pon";
41            reg = <0x800>;
42            mode-bootloader = <0x2>;
43            mode-recovery = <0x1>;
44
45            watchdog {
46                compatible = "qcom,pm8916-wdt";
47                interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>;
48                timeout-sec = <60>;
49            };
50        };
51    };
52