Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: Qualcomm PM8916 watchdog timer controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: watchdog.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: qcom,pm8916-wdt |
| 18 | |
| 19 | interrupts: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | required: |
| 23 | - compatible |
| 24 | - interrupts |
| 25 | |
| 26 | unevaluatedProperties: false |
| 27 | |
| 28 | examples: |
| 29 | - | |
| 30 | #include <dt-bindings/interrupt-controller/irq.h> |
| 31 | #include <dt-bindings/spmi/spmi.h> |
| 32 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame^] | 33 | spmi { |
| 34 | #address-cells = <2>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 35 | #size-cells = <0>; |
| 36 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame^] | 37 | pmic@0 { |
| 38 | compatible = "qcom,pm8916", "qcom,spmi-pmic"; |
| 39 | reg = <0x0 SPMI_USID>; |
| 40 | #address-cells = <1>; |
| 41 | #size-cells = <0>; |
| 42 | |
| 43 | pon@800 { |
| 44 | compatible = "qcom,pm8916-pon"; |
| 45 | reg = <0x800>; |
| 46 | mode-bootloader = <0x2>; |
| 47 | mode-recovery = <0x1>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 48 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame^] | 49 | watchdog { |
| 50 | compatible = "qcom,pm8916-wdt"; |
| 51 | interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>; |
| 52 | timeout-sec = <60>; |
| 53 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 54 | }; |
| 55 | }; |
| 56 | }; |