pwm-backlight.txt 1006 B

12345678910111213141516171819202122232425262728
  1. pwm-backlight bindings
  2. Required properties:
  3. - compatible: "pwm-backlight"
  4. - pwms: OF device-tree PWM specification (see PWM binding[0])
  5. - brightness-levels: Array of distinct brightness levels. Typically these
  6. are in the range from 0 to 255, but any range starting at 0 will do.
  7. The actual brightness level (PWM duty cycle) will be interpolated
  8. from these values. 0 means a 0% duty cycle (darkest/off), while the
  9. last value in the array represents a 100% duty cycle (brightest).
  10. - default-brightness-level: the default brightness level (index into the
  11. array defined by the "brightness-levels" property)
  12. Optional properties:
  13. - pwm-names: a list of names for the PWM devices specified in the
  14. "pwms" property (see PWM binding[0])
  15. [0]: Documentation/devicetree/bindings/pwm/pwm.txt
  16. Example:
  17. backlight {
  18. compatible = "pwm-backlight";
  19. pwms = <&pwm 0 5000000>;
  20. brightness-levels = <0 4 8 16 32 64 128 255>;
  21. default-brightness-level = <6>;
  22. };