blob: 2f9aead27b6e06bee30afb25e7e65fd2c1fcb0f0 [file] [log] [blame]
# 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"
include: [pwm-controller.yaml, base.yaml]
properties:
reg:
required: true
label:
required: true
interrupts:
required: false
channel:
type: int
required: true
enum:
- 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
pinctrl-0:
type: phandle
required: true
description: configuration of PWM pinmux controller
prescaler-cx:
type: int
required: true
enum:
- 1 #PWM_PRESCALER_C4
- 2 #PWM_PRESCALER_C6
- 3 #PWM_PRESCALER_C7
pwm-output-frequency:
type: int
required: false
description: PWM output frequency for operation
pwm-cells:
- channel
- flags