# Copyright (c) 2024 ITE Corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

description: ITE IT8801 I2C-based PWM device driver

compatible: "ite,it8801-pwm"

include: [base.yaml, pinctrl-device.yaml, pwm-controller.yaml]

properties:
  reg:
    required: true

  mfdctrl:
    type: phandle
    required: true
    description: |
      Switching the pin to PWM alternate function.

  channel:
    type: int
    required: true
    enum:
      - 1
      - 2
      - 3
      - 4
      - 7
      - 8
      - 9
    description: |
      1 = PWM_CHANNEL_1, 2 = PWM_CHANNEL_2, 3 = PWM_CHANNEL_3,
      4 = PWM_CHANNEL_4, 7 = PWM_CHANNEL_7, 8 = PWM_CHANNEL_8,
      9 = PWM_CHANNEL_9

pwm-cells:
  - channel
  - period
  - flags
