1# Copyright (c) 2022 KT-Elektronik, Klaucke und Partner GmbH
2# SPDX-License-Identifier: Apache-2.0
3
4description: NXP MCUX Quad Timer Channel. Each channel of each quad timer can operate independently
5  and hence will be realized as a separate counter device
6
7compatible: "nxp,imx-tmr"
8
9include: base.yaml
10
11properties:
12  channel:
13    type: int
14    required: true
15    enum:
16      - 0
17      - 1
18      - 2
19      - 3
20
21  mode:
22    type: string
23    required: true
24    description: counting mode of the timer, see qtmr_counting_mode_t enumerator type
25      of the MCUXpresso SDK
26    enum:
27      - "kQTMR_NoOperation"
28      - "kQTMR_PriSrcRiseEdge"
29      - "kQTMR_PriSrcRiseAndFallEdge"
30      - "kQTMR_PriSrcRiseEdgeSecInpHigh"
31      - "kQTMR_QuadCountMode"
32      - "kQTMR_PriSrcRiseEdgeSecDir"
33      - "kQTMR_SecSrcTrigPriCnt"
34      - "kQTMR_CascadeCount"
35
36  primary_source:
37    type: string
38    required: true
39    description: Primary source of the timer, see qtmr_primary_count_source_t enumerator type
40      of the MCUXpresso SDK
41    enum:
42      - "kQTMR_ClockCounter0InputPin"
43      - "kQTMR_ClockCounter1InputPin"
44      - "kQTMR_ClockCounter2InputPin"
45      - "kQTMR_ClockCounter3InputPin"
46      - "kQTMR_ClockCounter0Output"
47      - "kQTMR_ClockCounter1Output"
48      - "kQTMR_ClockCounter2Output"
49      - "kQTMR_ClockCounter3Output"
50      - "kQTMR_ClockDivide_1"
51      - "kQTMR_ClockDivide_2"
52      - "kQTMR_ClockDivide_4"
53      - "kQTMR_ClockDivide_8"
54      - "kQTMR_ClockDivide_16"
55      - "kQTMR_ClockDivide_32"
56      - "kQTMR_ClockDivide_64"
57      - "kQTMR_ClockDivide_128"
58
59  secondary_source:
60    type: string
61    description: Secondary source of the timer, see qtmr_input_source_t enumerator type
62      of the MCUXpresso SDK
63    enum:
64      - "kQTMR_Counter0InputPin"
65      - "kQTMR_Counter1InputPin"
66      - "kQTMR_Counter2InputPin"
67      - "kQTMR_Counter3InputPin"
68
69  filter_count:
70    type: int
71    description: Fault filter count (0-255).
72
73  filter_period:
74    type: int
75    description: Fault filter period (0-255).
76
77  freq:
78    type: int
79    description: clock frequency (only used for external clock sources)
80