rohm,bd2606mvv.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/rohm,bd2606mvv.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ROHM BD2606MVV LED controller
  7. maintainers:
  8. - Andreas Kemnade <andreas@kemnade.info>
  9. description:
  10. The BD2606 MVV is a programmable LED controller connected via I2C that can
  11. drive 6 separate lines. Each of them can be individually switched on and off,
  12. but the brightness setting is shared between pairs of them.
  13. Datasheet is available at
  14. https://fscdn.rohm.com/en/products/databook/datasheet/ic/power/led_driver/bd2606mvv_1-e.pdf
  15. properties:
  16. compatible:
  17. const: rohm,bd2606mvv
  18. reg:
  19. maxItems: 1
  20. "#address-cells":
  21. const: 1
  22. "#size-cells":
  23. const: 0
  24. enable-gpios:
  25. maxItems: 1
  26. description: GPIO pin to enable/disable the device.
  27. patternProperties:
  28. "^led@[0-5]$":
  29. type: object
  30. $ref: common.yaml#
  31. unevaluatedProperties: false
  32. properties:
  33. reg:
  34. minimum: 0
  35. maximum: 5
  36. required:
  37. - reg
  38. additionalProperties: false
  39. examples:
  40. - |
  41. #include <dt-bindings/leds/common.h>
  42. i2c {
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. led-controller@66 {
  46. compatible = "rohm,bd2606mvv";
  47. reg = <0x66>;
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. led@0 {
  51. reg = <0x0>;
  52. color = <LED_COLOR_ID_RED>;
  53. function = LED_FUNCTION_POWER;
  54. };
  55. led@2 {
  56. reg = <0x2>;
  57. color = <LED_COLOR_ID_WHITE>;
  58. function = LED_FUNCTION_STATUS;
  59. };
  60. };
  61. };
  62. ...