# Copyright (c) 2024-2025, Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

description: ATMEL SAM4L watchdog

compatible: "atmel,sam4l-watchdog"

include: base.yaml

properties:
  reg:
    required: true

  interrupts:
    required: true

  clocks:
    required: true

  clk-source:
    type: string
    default: "rcsys"
    enum:
      - "rcsys"
      - "osc32k"
    description: |
      Watchdog counter clock source:
        - rcsys:  115kHz internal System RC oscillator
        - osc32k: 32kHz clock source
      Defaults to "rcsys" (hardware reset value) and always enabled source

  lock-mode:
    type: boolean
    description: |
      Lock the watchdog when setup is executed. This provides a write protection
      to the control register. This mechanism can only be released when a hardware
      reset happens.
