ams,as3645a.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Analog devices AS3645A device tree bindings
  2. The AS3645A flash LED controller can drive two LEDs, one high current
  3. flash LED and one indicator LED. The high current flash LED can be
  4. used in torch mode as well.
  5. Ranges below noted as [a, b] are closed ranges between a and b, i.e. a
  6. and b are included in the range.
  7. Please also see common.txt in the same directory.
  8. Required properties
  9. ===================
  10. compatible : Must be "ams,as3645a".
  11. reg : The I2C address of the device. Typically 0x30.
  12. #address-cells : 1
  13. #size-cells : 0
  14. Required properties of the flash child node (0)
  15. ===============================================
  16. reg: 0
  17. flash-timeout-us: Flash timeout in microseconds. The value must be in
  18. the range [100000, 850000] and divisible by 50000.
  19. flash-max-microamp: Maximum flash current in microamperes. Has to be
  20. in the range between [200000, 500000] and
  21. divisible by 20000.
  22. led-max-microamp: Maximum torch (assist) current in microamperes. The
  23. value must be in the range between [20000, 160000] and
  24. divisible by 20000.
  25. ams,input-max-microamp: Maximum flash controller input current. The
  26. value must be in the range [1250000, 2000000]
  27. and divisible by 50000.
  28. Optional properties of the flash child node
  29. ===========================================
  30. label : The label of the flash LED.
  31. Required properties of the indicator child node (1)
  32. ===================================================
  33. reg: 1
  34. led-max-microamp: Maximum indicator current. The allowed values are
  35. 2500, 5000, 7500 and 10000.
  36. Optional properties of the indicator child node
  37. ===============================================
  38. label : The label of the indicator LED.
  39. Example
  40. =======
  41. as3645a@30 {
  42. #address-cells: 1
  43. #size-cells: 0
  44. reg = <0x30>;
  45. compatible = "ams,as3645a";
  46. flash@0 {
  47. reg = <0x0>;
  48. flash-timeout-us = <150000>;
  49. flash-max-microamp = <320000>;
  50. led-max-microamp = <60000>;
  51. ams,input-max-microamp = <1750000>;
  52. label = "as3645a:flash";
  53. };
  54. indicator@1 {
  55. reg = <0x1>;
  56. led-max-microamp = <10000>;
  57. label = "as3645a:indicator";
  58. };
  59. };