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

description: Atmel SAM0 32kHz Oscillator Controller (OSC32KCTRL)

compatible: "atmel,sam0-osc32kctrl"

include:
  - base.yaml
  - clock-controller.yaml
  - atmel,assigned-clocks.yaml

properties:
  reg:
    required: true

  "#clock-cells":
    const: 0

  "#atmel,assigned-clock-cells":
    required: true
    type: int
    const: 1
    description: |
      It selects the OSC32CTRL clock to be routed to RTC peripheral

      Example: Connect the XOSC32K to RTC on SAMD5x

        &rtc {
          clocks = <&mclk 0x14 9 &osc32kctrl>;
          clock-names = "MCLK", "OSC32KCTRL";

          atmel,assigned-clocks = <&osc32kctrl 4>;
          atmel,assigned-clock-names = "OSC32KCTRL";
        };

atmel,assigned-clock-cells:
  - src
