pwm-lp3943.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. TI/National Semiconductor LP3943 PWM controller
  2. Required properties:
  3. - compatible: "ti,lp3943-pwm"
  4. - #pwm-cells: Should be 2. See pwm.txt in this directory for a
  5. description of the cells format.
  6. Note that this hardware limits the period length to the
  7. range 6250~1600000.
  8. - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
  9. 0 = output 0
  10. 1 = output 1
  11. .
  12. .
  13. 15 = output 15
  14. Example:
  15. PWM 0 is for RGB LED brightness control
  16. PWM 1 is for brightness control of LP8557 backlight device
  17. &i2c3 {
  18. lp3943@60 {
  19. compatible = "ti,lp3943";
  20. reg = <0x60>;
  21. /*
  22. * PWM 0 : output 8, 9 and 10
  23. * PWM 1 : output 15
  24. */
  25. pwm3943: pwm {
  26. compatible = "ti,lp3943-pwm";
  27. #pwm-cells = <2>;
  28. ti,pwm0 = <8 9 10>;
  29. ti,pwm1 = <15>;
  30. };
  31. };
  32. };
  33. /* LEDs control with PWM 0 of LP3943 */
  34. pwmleds {
  35. compatible = "pwm-leds";
  36. rgb {
  37. label = "indi::rgb";
  38. pwms = <&pwm3943 0 10000>;
  39. max-brightness = <255>;
  40. };
  41. };
  42. &i2c4 {
  43. /* Backlight control with PWM 1 of LP3943 */
  44. backlight@2c {
  45. compatible = "ti,lp8557";
  46. reg = <0x2c>;
  47. pwms = <&pwm3943 1 10000>;
  48. pwm-names = "lp8557";
  49. };
  50. };