leds-rt4505.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/leds-rt4505.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Richtek RT4505 Single Channel LED Driver
  7. maintainers:
  8. - ChiYuan Huang <cy_huang@richtek.com>
  9. description: |
  10. The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for
  11. torch and flash mode, respectively.
  12. The data sheet can be found at:
  13. https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf
  14. properties:
  15. compatible:
  16. const: richtek,rt4505
  17. reg:
  18. description: I2C slave address of the controller.
  19. maxItems: 1
  20. led:
  21. type: object
  22. $ref: common.yaml#
  23. unevaluatedProperties: false
  24. required:
  25. - compatible
  26. - reg
  27. additionalProperties: false
  28. examples:
  29. - |
  30. #include <dt-bindings/leds/common.h>
  31. i2c {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. led-controller@63 {
  35. compatible = "richtek,rt4505";
  36. reg = <0x63>;
  37. rt4505_flash: led {
  38. function = LED_FUNCTION_FLASH;
  39. color = <LED_COLOR_ID_WHITE>;
  40. led-max-microamp = <375000>;
  41. flash-max-microamp = <1500000>;
  42. flash-max-timeout-us = <800000>;
  43. };
  44. };
  45. };