richtek,rt4831-backlight.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/backlight/richtek,rt4831-backlight.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Richtek RT4831 Backlight
  7. maintainers:
  8. - ChiYuan Huang <cy_huang@richtek.com>
  9. description: |
  10. RT4831 is a mutifunctional device that can provide power to the LCD display
  11. and LCD backlight.
  12. For the LCD backlight, it can provide four channel WLED driving capability.
  13. Each channel driving current is up to 30mA
  14. Datasheet is available at
  15. https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf
  16. allOf:
  17. - $ref: common.yaml#
  18. properties:
  19. compatible:
  20. const: richtek,rt4831-backlight
  21. default-brightness:
  22. minimum: 0
  23. maximum: 2048
  24. max-brightness:
  25. minimum: 0
  26. maximum: 2048
  27. richtek,pwm-enable:
  28. description: |
  29. Specify the backlight dimming following by PWM duty or by SW control.
  30. type: boolean
  31. richtek,bled-ovp-sel:
  32. description: |
  33. Backlight OVP level selection, currently support 17V/21V/25V/29V.
  34. $ref: /schemas/types.yaml#/definitions/uint8
  35. default: 1
  36. minimum: 0
  37. maximum: 3
  38. richtek,bled-ocp-microamp:
  39. description: |
  40. Backlight over current protection level.
  41. enum: [900000, 1200000, 1500000, 1800000]
  42. richtek,channel-use:
  43. description: |
  44. Backlight LED channel to be used.
  45. BIT 0/1/2/3 is used to indicate led channel 1/2/3/4 enable or disable.
  46. $ref: /schemas/types.yaml#/definitions/uint8
  47. minimum: 1
  48. maximum: 15
  49. required:
  50. - compatible
  51. - richtek,channel-use
  52. additionalProperties: false