led-backlight.yaml 1009 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: led-backlight
  7. maintainers:
  8. - Lee Jones <lee@kernel.org>
  9. - Daniel Thompson <daniel.thompson@linaro.org>
  10. - Jingoo Han <jingoohan1@gmail.com>
  11. description:
  12. This binding is used to describe a basic backlight device made of LEDs. It
  13. can also be used to describe a backlight device controlled by the output of
  14. a LED driver.
  15. allOf:
  16. - $ref: common.yaml#
  17. properties:
  18. compatible:
  19. const: led-backlight
  20. leds:
  21. description: A list of LED nodes
  22. $ref: /schemas/types.yaml#/definitions/phandle-array
  23. items:
  24. maxItems: 1
  25. required:
  26. - compatible
  27. - leds
  28. unevaluatedProperties: false
  29. examples:
  30. - |
  31. backlight {
  32. compatible = "led-backlight";
  33. leds = <&led1>, <&led2>;
  34. brightness-levels = <0 4 8 16 32 64 128 255>;
  35. default-brightness-level = <6>;
  36. };
  37. ...