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/faraday,ftwdt010.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Faraday Technology FTWDT010 watchdog |
| 8 | |
| 9 | maintainers: |
| 10 | - Linus Walleij <linus.walleij@linaro.org> |
| 11 | - Corentin Labbe <clabbe@baylibre.com> |
| 12 | |
| 13 | description: | |
| 14 | This is an IP part from Faraday Technology found in the Gemini |
| 15 | SoCs and others. |
| 16 | |
| 17 | allOf: |
| 18 | - $ref: watchdog.yaml# |
| 19 | |
| 20 | properties: |
| 21 | compatible: |
| 22 | oneOf: |
| 23 | - const: faraday,ftwdt010 |
| 24 | - items: |
| 25 | - enum: |
| 26 | - cortina,gemini-watchdog |
| 27 | - moxa,moxart-watchdog |
| 28 | - const: faraday,ftwdt010 |
| 29 | |
| 30 | reg: |
| 31 | maxItems: 1 |
| 32 | |
| 33 | resets: |
| 34 | maxItems: 1 |
| 35 | |
| 36 | clocks: |
| 37 | maxItems: 1 |
| 38 | |
| 39 | clock-names: |
| 40 | const: PCLK |
| 41 | |
| 42 | interrupts: |
| 43 | maxItems: 1 |
| 44 | |
| 45 | required: |
| 46 | - compatible |
| 47 | - reg |
| 48 | |
| 49 | unevaluatedProperties: false |
| 50 | |
| 51 | examples: |
| 52 | - | |
| 53 | #include <dt-bindings/interrupt-controller/irq.h> |
| 54 | watchdog@41000000 { |
| 55 | compatible = "faraday,ftwdt010"; |
| 56 | reg = <0x41000000 0x1000>; |
| 57 | interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; |
| 58 | timeout-sec = <5>; |
| 59 | }; |
| 60 | - | |
| 61 | watchdog: watchdog@98500000 { |
| 62 | compatible = "moxa,moxart-watchdog", "faraday,ftwdt010"; |
| 63 | reg = <0x98500000 0x10>; |
| 64 | clocks = <&clk_apb>; |
| 65 | clock-names = "PCLK"; |
| 66 | }; |
| 67 | ... |