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