1# Copyright (c) 2021 Teslabs Engineering S.L.
2# SPDX-License-Identifier: Apache-2.0
3
4description: GigaDevice GD32 timer
5
6compatible: "gd,gd32-timer"
7
8include: [reset-device.yaml, base.yaml]
9
10properties:
11  reg:
12    required: true
13
14  clocks:
15    required: true
16
17  resets:
18    required: true
19
20  channels:
21    type: int
22    required: true
23    description: Number of timer channels.
24
25  prescaler:
26    type: int
27    default: 0
28    description: Timer prescaler. Defaults to 0 (SoC default).
29
30  is-32bit:
31    type: boolean
32    description: Indicates if timer has a 32-bit counter.
33
34  is-advanced:
35    type: boolean
36    description: |
37      Indicates if timer has advanced features. Such features include break
38      inputs, dead-time insertion, etc.
39