1 NXP PCA9685 16-channel 12-bit PWM LED controll 1 NXP PCA9685 16-channel 12-bit PWM LED controller 2 ============================================== 2 ================================================ 3 3 4 Required properties: 4 Required properties: 5 - compatible: "nxp,pca9685-pwm" 5 - compatible: "nxp,pca9685-pwm" 6 - #pwm-cells: Should be 2. See pwm.yaml in t 6 - #pwm-cells: Should be 2. See pwm.yaml in this directory for a description of 7 the cells format. 7 the cells format. 8 The index 16 is the ALLCALL channel, that 8 The index 16 is the ALLCALL channel, that sets all PWM channels at the same 9 time. 9 time. 10 10 11 Optional properties: 11 Optional properties: 12 - invert (bool): boolean to enable inverted 12 - invert (bool): boolean to enable inverted logic 13 - open-drain (bool): boolean to configure ou 13 - open-drain (bool): boolean to configure outputs with open-drain structure; 14 if omitted use totem-po 14 if omitted use totem-pole structure 15 15 16 Example: 16 Example: 17 17 18 For LEDs that are directly connected to the PC 18 For LEDs that are directly connected to the PCA, the following setting is 19 applicable: 19 applicable: 20 20 21 pca: pca@41 { 21 pca: pca@41 { 22 compatible = "nxp,pca9685-pwm"; 22 compatible = "nxp,pca9685-pwm"; 23 #pwm-cells = <2>; 23 #pwm-cells = <2>; 24 reg = <0x41>; 24 reg = <0x41>; 25 invert; 25 invert; 26 open-drain; 26 open-drain; 27 }; 27 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.