xref: /linux/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
160320e6eSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
260320e6eSKrzysztof Kozlowski%YAML 1.2
360320e6eSKrzysztof Kozlowski---
460320e6eSKrzysztof Kozlowski$id: http://devicetree.org/schemas/watchdog/qcom,pm8916-wdt.yaml#
560320e6eSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
660320e6eSKrzysztof Kozlowski
760320e6eSKrzysztof Kozlowskititle: Qualcomm PM8916 watchdog timer controller
860320e6eSKrzysztof Kozlowski
960320e6eSKrzysztof Kozlowskimaintainers:
1060320e6eSKrzysztof Kozlowski  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1160320e6eSKrzysztof Kozlowski
1260320e6eSKrzysztof KozlowskiallOf:
1360320e6eSKrzysztof Kozlowski  - $ref: watchdog.yaml#
1460320e6eSKrzysztof Kozlowski
1560320e6eSKrzysztof Kozlowskiproperties:
1660320e6eSKrzysztof Kozlowski  compatible:
1760320e6eSKrzysztof Kozlowski    const: qcom,pm8916-wdt
1860320e6eSKrzysztof Kozlowski
1960320e6eSKrzysztof Kozlowski  interrupts:
2060320e6eSKrzysztof Kozlowski    maxItems: 1
2160320e6eSKrzysztof Kozlowski
2260320e6eSKrzysztof Kozlowskirequired:
2360320e6eSKrzysztof Kozlowski  - compatible
2460320e6eSKrzysztof Kozlowski  - interrupts
2560320e6eSKrzysztof Kozlowski
2660320e6eSKrzysztof KozlowskiunevaluatedProperties: false
2760320e6eSKrzysztof Kozlowski
2860320e6eSKrzysztof Kozlowskiexamples:
2960320e6eSKrzysztof Kozlowski  - |
3060320e6eSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
3160320e6eSKrzysztof Kozlowski    #include <dt-bindings/spmi/spmi.h>
3260320e6eSKrzysztof Kozlowski
33*179c4acdSJohan Hovold    spmi {
34*179c4acdSJohan Hovold        #address-cells = <2>;
35*179c4acdSJohan Hovold        #size-cells = <0>;
36*179c4acdSJohan Hovold
3760320e6eSKrzysztof Kozlowski        pmic@0 {
3860320e6eSKrzysztof Kozlowski            compatible = "qcom,pm8916", "qcom,spmi-pmic";
3960320e6eSKrzysztof Kozlowski            reg = <0x0 SPMI_USID>;
4060320e6eSKrzysztof Kozlowski            #address-cells = <1>;
4160320e6eSKrzysztof Kozlowski            #size-cells = <0>;
4260320e6eSKrzysztof Kozlowski
4360320e6eSKrzysztof Kozlowski            pon@800 {
4460320e6eSKrzysztof Kozlowski                compatible = "qcom,pm8916-pon";
4560320e6eSKrzysztof Kozlowski                reg = <0x800>;
4660320e6eSKrzysztof Kozlowski                mode-bootloader = <0x2>;
4760320e6eSKrzysztof Kozlowski                mode-recovery = <0x1>;
4860320e6eSKrzysztof Kozlowski
4960320e6eSKrzysztof Kozlowski                watchdog {
5060320e6eSKrzysztof Kozlowski                    compatible = "qcom,pm8916-wdt";
5160320e6eSKrzysztof Kozlowski                    interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>;
5260320e6eSKrzysztof Kozlowski                    timeout-sec = <60>;
5360320e6eSKrzysztof Kozlowski                };
5460320e6eSKrzysztof Kozlowski            };
5560320e6eSKrzysztof Kozlowski        };
56*179c4acdSJohan Hovold    };
57