lp855x-backlight.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/backlight/lp855x-backlight.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments LP855X backlight controllers
  7. maintainers:
  8. - Artur Weber <aweber.kernel@gmail.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - ti,lp8550
  13. - ti,lp8551
  14. - ti,lp8552
  15. - ti,lp8553
  16. - ti,lp8555
  17. - ti,lp8556
  18. - ti,lp8557
  19. reg:
  20. maxItems: 1
  21. dev-ctrl:
  22. $ref: /schemas/types.yaml#/definitions/uint8
  23. description:
  24. Value of device control register. This is a device-specific value.
  25. bl-name:
  26. $ref: /schemas/types.yaml#/definitions/string
  27. description: Backlight device name.
  28. init-brt:
  29. $ref: /schemas/types.yaml#/definitions/uint8
  30. description: Initial value of backlight brightness.
  31. power-supply:
  32. description: Regulator which controls the 3V rail.
  33. enable-supply:
  34. description: Regulator which controls the EN/VDDIO input.
  35. pwms:
  36. maxItems: 1
  37. description: |
  38. PWM channel to use for controlling the backlight; setting this
  39. enables the PWM-based backlight control mode.
  40. pwm-names: true
  41. pwm-period:
  42. $ref: /schemas/types.yaml#/definitions/uint32
  43. description:
  44. PWM period value. Deprecated; set the period value in the pwms
  45. property instead.
  46. deprecated: true
  47. patternProperties:
  48. "^rom-[0-9a-f]{2}h$":
  49. type: object
  50. description: Nodes containing the values of configuration registers.
  51. additionalProperties: false
  52. properties:
  53. rom-addr:
  54. $ref: /schemas/types.yaml#/definitions/uint8
  55. description: Register address of ROM area to be updated.
  56. rom-val:
  57. $ref: /schemas/types.yaml#/definitions/uint8
  58. description: Value to write to the ROM register.
  59. required:
  60. - compatible
  61. - reg
  62. - dev-ctrl
  63. unevaluatedProperties: false
  64. examples:
  65. - |
  66. i2c {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. backlight@2c {
  70. compatible = "ti,lp8555";
  71. reg = <0x2c>;
  72. dev-ctrl = /bits/ 8 <0x00>;
  73. pwms = <&pwm 0 10000>;
  74. pwm-names = "lp8555";
  75. /* 4V OV, 4 output LED0 string enabled */
  76. rom-14h {
  77. rom-addr = /bits/ 8 <0x14>;
  78. rom-val = /bits/ 8 <0xcf>;
  79. };
  80. /* Heavy smoothing, 24ms ramp time step */
  81. rom-15h {
  82. rom-addr = /bits/ 8 <0x15>;
  83. rom-val = /bits/ 8 <0xc7>;
  84. };
  85. /* 4 output LED1 string enabled */
  86. rom-19h {
  87. rom-addr = /bits/ 8 <0x19>;
  88. rom-val = /bits/ 8 <0x0f>;
  89. };
  90. };
  91. };
  92. - |
  93. i2c {
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. backlight@2c {
  97. compatible = "ti,lp8556";
  98. reg = <0x2c>;
  99. bl-name = "lcd-bl";
  100. dev-ctrl = /bits/ 8 <0x85>;
  101. init-brt = /bits/ 8 <0x10>;
  102. };
  103. };
  104. - |
  105. i2c {
  106. #address-cells = <1>;
  107. #size-cells = <0>;
  108. backlight@2c {
  109. compatible = "ti,lp8557";
  110. reg = <0x2c>;
  111. enable-supply = <&backlight_vddio>;
  112. power-supply = <&backlight_vdd>;
  113. dev-ctrl = /bits/ 8 <0x41>;
  114. init-brt = /bits/ 8 <0x0a>;
  115. /* 4V OV, 4 output LED string enabled */
  116. rom-14h {
  117. rom-addr = /bits/ 8 <0x14>;
  118. rom-val = /bits/ 8 <0xcf>;
  119. };
  120. };
  121. };