# Copyright (c) 2023-2024 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

description: MAX32 Global Control

compatible: "adi,max32-gcr"

include: [clock-controller.yaml, base.yaml]

properties:
  reg:
    required: true

  "#clock-cells":
    const: 2

  sysclk-prescaler:
    type: int
    enum:
      - 1
      - 2
      - 4
      - 8
      - 16
      - 32
      - 64
      - 128

    description: |
        SYSCLK prescaler. Defines actual core clock frequency SYSCLK
        based on system frequency input. Some MAX32xxx devices does not
        support this feature, check your device user guide before using it.

clock-cells:
  - offset
  - bit
