1# Copyright (c) 2022, Nick Ward <nix.ward@gmail.com>
2# SPDX-License-Identifier: Apache-2.0
3
4description: NXP PCA9685 16-channel, 12-bit PWM Fm+ I2C-bus LED controller
5
6compatible: "nxp,pca9685-pwm"
7
8include: [pwm-controller.yaml, i2c-device.yaml, base.yaml]
9
10properties:
11  reg:
12    required: true
13
14  open-drain:
15    type: boolean
16    description:
17      The 16 LEDn outputs are configured with an open-drain structure.
18      Otherwise they are configured with a totem pole structure.
19
20  och-on-ack:
21    type: boolean
22    description:
23      Outputs change on ACK.  Otherwise the outputs change on STOP
24      command.
25
26  invert:
27    type: boolean
28    description:
29      Output logic state inverted. Value to use when no external driver
30      used.
31
32  "#pwm-cells":
33    const: 2
34
35pwm-cells:
36  - channel
37  - period
38