1# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
2# SPDX-License-Identifier: Apache-2.0
3
4description: ITE, it8xxx2 Pulse Width Modulator (PWM) node
5
6compatible: "ite,it8xxx2-pwm"
7
8include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml]
9
10properties:
11  reg:
12    required: true
13
14  channel:
15    type: int
16    required: true
17    enum:
18      - 0
19      - 1
20      - 2
21      - 3
22      - 4
23      - 5
24      - 6
25      - 7
26    description: |
27      0 = PWM_CHANNEL_0, 1 = PWM_CHANNEL_1, 2 = PWM_CHANNEL_2,
28      3 = PWM_CHANNEL_3, 4 = PWM_CHANNEL_4, 5 = PWM_CHANNEL_5,
29      6 = PWM_CHANNEL_6, 7 = PWM_CHANNEL_7
30
31  pwmctrl:
32    type: phandle
33    required: true
34    description: PWM prescaler controller
35
36  prescaler-cx:
37    type: int
38    required: true
39    enum:
40      - 1
41      - 2
42      - 3
43    description: 1 = PWM_PRESCALER_C4, 2 = PWM_PRESCALER_C6, 3 = PWM_PRESCALER_C7
44
45  pwm-output-frequency:
46    type: int
47    description: PWM output frequency for operation
48
49  pinctrl-0:
50    required: true
51
52  pinctrl-names:
53    required: true
54
55pwm-cells:
56  - channel
57  - period
58  - flags
59