2021-06-07 15:21:22 +08:00
|
|
|
# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
description: ITE, it8xxx2 Pulse Width Modulator (PWM) node
|
|
|
|
|
|
|
|
compatible: "ite,it8xxx2-pwm"
|
|
|
|
|
2022-03-25 16:59:22 +08:00
|
|
|
include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml]
|
2021-06-07 15:21:22 +08:00
|
|
|
|
|
|
|
properties:
|
2023-01-04 03:21:25 +08:00
|
|
|
reg:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
channel:
|
|
|
|
type: int
|
|
|
|
required: true
|
|
|
|
enum:
|
|
|
|
- 0
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
- 4
|
|
|
|
- 5
|
|
|
|
- 6
|
|
|
|
- 7
|
|
|
|
description: |
|
|
|
|
0 = PWM_CHANNEL_0, 1 = PWM_CHANNEL_1, 2 = PWM_CHANNEL_2,
|
|
|
|
3 = PWM_CHANNEL_3, 4 = PWM_CHANNEL_4, 5 = PWM_CHANNEL_5,
|
|
|
|
6 = PWM_CHANNEL_6, 7 = PWM_CHANNEL_7
|
|
|
|
|
|
|
|
pwmctrl:
|
|
|
|
type: phandle
|
|
|
|
required: true
|
|
|
|
description: PWM prescaler controller
|
|
|
|
|
|
|
|
prescaler-cx:
|
|
|
|
type: int
|
|
|
|
required: true
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
description: 1 = PWM_PRESCALER_C4, 2 = PWM_PRESCALER_C6, 3 = PWM_PRESCALER_C7
|
|
|
|
|
|
|
|
pwm-output-frequency:
|
|
|
|
type: int
|
|
|
|
description: PWM output frequency for operation
|
|
|
|
|
|
|
|
pinctrl-0:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
pinctrl-names:
|
|
|
|
required: true
|
2022-03-25 16:59:22 +08:00
|
|
|
|
2021-06-07 15:21:22 +08:00
|
|
|
pwm-cells:
|
|
|
|
- channel
|
2022-04-22 18:38:07 +08:00
|
|
|
- period
|
2021-06-07 15:21:22 +08:00
|
|
|
- flags
|