ti,lp8864.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/backlight/ti,lp8864.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments - LP8864/LP8866 4/6-Channel LED Driver family
  7. maintainers:
  8. - Andrew Davis <afd@ti.com>
  9. - Alexander Sverdlin <alexander.sverdlin@siemens.com>
  10. description: |
  11. LP8866-Q1, LP8866S-Q1, LP8864-Q1, LP8864S-Q1 are display LED-backlight drivers
  12. with 4/6 channels. LED brightness can be controlled globally through the I2C
  13. interface or PWM input.
  14. For more product information please see the links below:
  15. https://www.ti.com/product/LP8864-Q1
  16. https://www.ti.com/product/LP8864S-Q1
  17. https://www.ti.com/product/LP8866-Q1
  18. https://www.ti.com/product/LP8866S-Q1
  19. properties:
  20. compatible:
  21. const: ti,lp8864
  22. reg:
  23. maxItems: 1
  24. description: I2C slave address
  25. enable-gpios:
  26. maxItems: 1
  27. description: GPIO pin to enable (active high) / disable the device
  28. vled-supply:
  29. description: LED supply
  30. led:
  31. type: object
  32. $ref: common.yaml#
  33. properties:
  34. function: true
  35. color: true
  36. label: true
  37. linux,default-trigger: true
  38. additionalProperties: false
  39. required:
  40. - compatible
  41. - reg
  42. - led
  43. additionalProperties: false
  44. examples:
  45. - |
  46. #include <dt-bindings/gpio/gpio.h>
  47. #include <dt-bindings/leds/common.h>
  48. i2c {
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. led-controller@3a {
  52. compatible = "ti,lp8864";
  53. reg = <0x3a>;
  54. enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
  55. vled-supply = <&vbatt>;
  56. led {
  57. function = LED_FUNCTION_BACKLIGHT;
  58. color = <LED_COLOR_ID_WHITE>;
  59. linux,default-trigger = "backlight";
  60. };
  61. };
  62. };
  63. ...