gpio-backlight.yaml 824 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: gpio-backlight
  7. maintainers:
  8. - Lee Jones <lee@kernel.org>
  9. - Daniel Thompson <daniel.thompson@linaro.org>
  10. - Jingoo Han <jingoohan1@gmail.com>
  11. properties:
  12. compatible:
  13. const: gpio-backlight
  14. gpios:
  15. description: The gpio that is used for enabling/disabling the backlight.
  16. maxItems: 1
  17. default-on:
  18. description: enable the backlight at boot.
  19. type: boolean
  20. required:
  21. - compatible
  22. - gpios
  23. additionalProperties: false
  24. examples:
  25. - |
  26. #include <dt-bindings/gpio/gpio.h>
  27. backlight {
  28. compatible = "gpio-backlight";
  29. gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
  30. default-on;
  31. };
  32. ...