leds-msm-gpio-flash.txt 882 B

12345678910111213141516171819202122232425262728293031
  1. Qualcomm GPIO Flash Leds
  2. Qualcomm GPIO flash LEDs driver is used for
  3. controlling flash LEDs that are connected with 2 GPIOs. The 2 GPIOs are name
  4. flash_en and flash now.
  5. The flash LEDs has torch mode and flash mode. The flash mode is used for camera.
  6. The torch mode is used for torch.
  7. Required properties for each node:
  8. - compatible : should be "qcom,leds-gpio-flash"
  9. - qcom,flash-en : the GPIO pin number of flash-en function
  10. - qcom,flash-now : the GPIO pin number of flash-now function
  11. - linux,name : name of the led that is used in led framework
  12. - linux,default-trigger : name of the led trigger event
  13. No other optional properties for it.
  14. Example:
  15. flashlight {
  16. compatible = "leds-gpio-flash";
  17. status = "okay";
  18. qcom,flash-en = <&msmgpio 18 0>;
  19. qcom,flash-now = <&msmgpio 19 0>;
  20. linux,name = "flashlight";
  21. linux,default-trigger = "flashlight-trigger";
  22. };