Back to home page

OSCL-LXR

 
 

    


0001 TI/National Semiconductor LP3943 PWM controller
0002 
0003 Required properties:
0004   - compatible: "ti,lp3943-pwm"
0005   - #pwm-cells: Should be 2. See pwm.yaml in this directory for a
0006                 description of the cells format.
0007                 Note that this hardware limits the period length to the
0008                 range 6250~1600000.
0009   - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
0010     0 = output 0
0011     1 = output 1
0012     .
0013     .
0014     15 = output 15
0015 
0016 Example:
0017 PWM 0 is for RGB LED brightness control
0018 PWM 1 is for brightness control of LP8557 backlight device
0019 
0020 &i2c3 {
0021         lp3943@60 {
0022                 compatible = "ti,lp3943";
0023                 reg = <0x60>;
0024 
0025                 /*
0026                  * PWM 0 : output 8, 9 and 10
0027                  * PWM 1 : output 15
0028                  */
0029                 pwm3943: pwm {
0030                         compatible = "ti,lp3943-pwm";
0031                         #pwm-cells = <2>;
0032                         ti,pwm0 = <8 9 10>;
0033                         ti,pwm1 = <15>;
0034                 };
0035         };
0036 
0037 };
0038 
0039 /* LEDs control with PWM 0 of LP3943 */
0040 pwmleds {
0041         compatible = "pwm-leds";
0042         rgb {
0043                 label = "indi::rgb";
0044                 pwms = <&pwm3943 0 10000>;
0045                 max-brightness = <255>;
0046         };
0047 };
0048 
0049 &i2c4 {
0050         /* Backlight control with PWM 1 of LP3943 */
0051         backlight@2c {
0052                 compatible = "ti,lp8557";
0053                 reg = <0x2c>;
0054 
0055                 pwms = <&pwm3943 1 10000>;
0056                 pwm-names = "lp8557";
0057         };
0058 };