xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/nxp,pca9685-pwm.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotNXP PCA9685 16-channel 12-bit PWM LED controller
2*c66ec88fSEmmanuel Vadot================================================
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotRequired properties:
5*c66ec88fSEmmanuel Vadot  - compatible: "nxp,pca9685-pwm"
6*c66ec88fSEmmanuel Vadot  - #pwm-cells: Should be 2. See pwm.yaml in this directory for a description of
7*c66ec88fSEmmanuel Vadot    the cells format.
8*c66ec88fSEmmanuel Vadot    The index 16 is the ALLCALL channel, that sets all PWM channels at the same
9*c66ec88fSEmmanuel Vadot    time.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotOptional properties:
12*c66ec88fSEmmanuel Vadot  - invert (bool): boolean to enable inverted logic
13*c66ec88fSEmmanuel Vadot  - open-drain (bool): boolean to configure outputs with open-drain structure;
14*c66ec88fSEmmanuel Vadot		       if omitted use totem-pole structure
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotFor LEDs that are directly connected to the PCA, the following setting is
19*c66ec88fSEmmanuel Vadotapplicable:
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadotpca: pca@41 {
22*c66ec88fSEmmanuel Vadot	compatible = "nxp,pca9685-pwm";
23*c66ec88fSEmmanuel Vadot	#pwm-cells = <2>;
24*c66ec88fSEmmanuel Vadot	reg = <0x41>;
25*c66ec88fSEmmanuel Vadot	invert;
26*c66ec88fSEmmanuel Vadot	open-drain;
27*c66ec88fSEmmanuel Vadot};
28