lp855x.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. lp855x bindings
  2. Required properties:
  3. - compatible: "ti,lp8550", "ti,lp8551", "ti,lp8552", "ti,lp8553",
  4. "ti,lp8555", "ti,lp8556", "ti,lp8557"
  5. - reg: I2C slave address (u8)
  6. - dev-ctrl: Value of DEVICE CONTROL register (u8). It depends on the device.
  7. Optional properties:
  8. - bl-name: Backlight device name (string)
  9. - init-brt: Initial value of backlight brightness (u8)
  10. - pwm-period: PWM period value. Set only PWM input mode used (u32)
  11. - rom-addr: Register address of ROM area to be updated (u8)
  12. - rom-val: Register value to be updated (u8)
  13. Example:
  14. /* LP8555 */
  15. backlight@2c {
  16. compatible = "ti,lp8555";
  17. reg = <0x2c>;
  18. dev-ctrl = /bits/ 8 <0x00>;
  19. pwm-period = <10000>;
  20. /* 4V OV, 4 output LED0 string enabled */
  21. rom_14h {
  22. rom-addr = /bits/ 8 <0x14>;
  23. rom-val = /bits/ 8 <0xcf>;
  24. };
  25. /* Heavy smoothing, 24ms ramp time step */
  26. rom_15h {
  27. rom-addr = /bits/ 8 <0x15>;
  28. rom-val = /bits/ 8 <0xc7>;
  29. };
  30. /* 4 output LED1 string enabled */
  31. rom_19h {
  32. rom-addr = /bits/ 8 <0x19>;
  33. rom-val = /bits/ 8 <0x0f>;
  34. };
  35. };
  36. /* LP8556 */
  37. backlight@2c {
  38. compatible = "ti,lp8556";
  39. reg = <0x2c>;
  40. bl-name = "lcd-bl";
  41. dev-ctrl = /bits/ 8 <0x85>;
  42. init-brt = /bits/ 8 <0x10>;
  43. };
  44. /* LP8557 */
  45. backlight@2c {
  46. compatible = "ti,lp8557";
  47. reg = <0x2c>;
  48. dev-ctrl = /bits/ 8 <0x41>;
  49. init-brt = /bits/ 8 <0x0a>;
  50. /* 4V OV, 4 output LED string enabled */
  51. rom_14h {
  52. rom-addr = /bits/ 8 <0x14>;
  53. rom-val = /bits/ 8 <0xcf>;
  54. };
  55. };