1# Copyright (c) 2023-2024 Analog Devices, Inc. 2# SPDX-License-Identifier: Apache-2.0 3 4description: ADI MAX32 timer 5 6compatible: "adi,max32-timer" 7 8include: [base.yaml, reset-device.yaml] 9 10properties: 11 reg: 12 required: true 13 14 clocks: 15 required: true 16 17 clock-source: 18 type: int 19 enum: [0, 1, 2, 3, 4, 5, 6, 7] 20 description: | 21 Clock source to be used by the WDT peripheral. The following options 22 are available: 23 - 0: "ADI_MAX32_PRPH_CLK_SRC_PCLK" Peripheral clock 24 - 1: "ADI_MAX32_PRPH_CLK_SRC_EXTCLK" External Clock 25 - 2: "ADI_MAX32_PRPH_CLK_SRC_IBRO" Internal Baud Rate Oscillator 26 - 3: "ADI_MAX32_PRPH_CLK_SRC_ERFO" External Radio Frequency Oscillator 27 - 4: "ADI_MAX32_PRPH_CLK_SRC_ERTCO" External Real-Time Clock Oscillator 28 - 5: "ADI_MAX32_PRPH_CLK_SRC_INRO" Internal Ring Oscillator 29 - 6: "ADI_MAX32_PRPH_CLK_SRC_ISO" Internal Secondary Oscillator 30 - 7: "ADI_MAX32_PRPH_CLK_SRC_IBRO_DIV8" IBRO/8 31 The target device might not support every option please take a look on 32 target device user guide 33 34 prescaler: 35 type: int 36 required: true 37 enum: 38 - 1 39 - 2 40 - 4 41 - 8 42 - 16 43 - 32 44 - 64 45 - 128 46 - 256 47 - 512 48 - 1024 49 - 2048 50 - 4096 51 description: | 52 The prescaler that divides the timers source clock to set the timers count clock as follows: 53 F_cnt_clk = F_clock_source / prescaler 54