Documentation / devicetree / bindings / watchdog / marvell,orion-wdt.yaml


Based on kernel version 6.19. Page generated on 2026-02-12 08:38 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/marvell,orion-wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Marvell Orion Watchdog Timer

maintainers:
  - Andrew Lunn <andrew@lunn.ch>
  - Gregory Clement <gregory.clement@bootlin.com>

properties:
  compatible:
    enum:
      - marvell,orion-wdt
      - marvell,armada-370-wdt
      - marvell,armada-xp-wdt
      - marvell,armada-375-wdt
      - marvell,armada-380-wdt

  reg:
    minItems: 2
    items:
      - description: Timer control register address
      - description: RSTOUT enable register address
      - description: Shared mask/unmask RSTOUT register address

  clocks:
    minItems: 1
    items:
      - description: L2/coherency fabric clock input
      - description: Reference 25 MHz fixed-clock supply

  clock-names:
    minItems: 1
    items:
      - const: nbclk
      - const: fixed

  interrupts:
    minItems: 1
    items:
      - description: timeout
      - description: pre-timeout

allOf:
  - $ref: watchdog.yaml#
  - if:
      properties:
        compatible:
          contains:
            enum:
              - marvell,armada-375-wdt
              - marvell,armada-380-wdt
    then:
      properties:
        reg:
          minItems: 3
    else:
      properties:
        reg:
          maxItems: 2

  - if:
      properties:
        compatible:
          contains:
            enum:
              - marvell,armada-xp-wdt
              - marvell,armada-375-wdt
              - marvell,armada-380-wdt
    then:
      properties:
        clocks:
          minItems: 2
        clock-names:
          minItems: 2
        interrupts:
          minItems: 2

      required:
        - clock-names

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

examples:
  - |
    watchdog@20300 {
        compatible = "marvell,orion-wdt";
        reg = <0x20300 0x28>, <0x20108 0x4>;
        interrupts = <3>;
        timeout-sec = <10>;
        clocks = <&gate_clk 7>;
    };